public
final
class
Goal
extends
GeneratedMessageV3
implements
GoalOrBuilder
Defines the criteria a LineItem needs to satisfy to meet its delivery goal.
Protobuf type google.ads.admanager.v1.Goal
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GoalImplements
GoalOrBuilderStatic Fields
GOAL_TYPE_FIELD_NUMBER
public
static
final
int
GOAL_TYPE_FIELD_NUMBER
UNITS_FIELD_NUMBER
public
static
final
int
UNITS_FIELD_NUMBER
UNIT_TYPE_FIELD_NUMBER
public
static
final
int
UNIT_TYPE_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Goal
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Goal
.
Builder
newBuilder
()
newBuilder(Goal prototype)
public
static
Goal
.
Builder
newBuilder
(
Goal
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Goal
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Goal
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Goal
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Goal
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Goal
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Goal
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Goal
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Goal
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Goal
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Goal
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Goal
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Goal
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Goal>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getDefaultInstanceForType()
public
Goal
getDefaultInstanceForType
()
getGoalType()
public
GoalTypeEnum
.
GoalType
getGoalType
()
The type of the goal for the LineItem. It defines the period over which the goal should be reached.
.google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1;
getGoalTypeValue()
public
int
getGoalTypeValue
()
The type of the goal for the LineItem. It defines the period over which the goal should be reached.
.google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1;
getParserForType()
public
Parser<Goal>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
getUnitType()
public
UnitTypeEnum
.
UnitType
getUnitType
()
The type of the goal unit for the LineItem.
.google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2;
getUnitTypeValue()
public
int
getUnitTypeValue
()
The type of the goal unit for the LineItem.
.google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2;
getUnits()
public
long
getUnits
()
If this is a primary goal, it represents the number or percentage of impressions or clicks that will be reserved. If the line item is of type LineItemTypeEnum.LineItemType.SPONSORSHIP , it represents the percentage of available impressions reserved. If the line item is of type LineItemTypeEnum.LineItemType.BULK or LineItemTypeEnum.LineItemType.PRICE_PRIORITY , it represents the number of remaining impressions reserved. If the line item is of type LineItemTypeEnum.LineItemType.NETWORK or LineItemTypeEnum.LineItemType.HOUSE , it represents the percentage of remaining impressions reserved. <p>If this is an impression cap goal, it represents the number of impressions or conversions that the line item will stop serving at if reached. For valid line item types, see [LineItem.impressions_cap][].
int64 units = 3;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Goal
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Goal
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
Goal
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)