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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
GOAL_TYPE_FIELD_NUMBER
public static final int GOAL_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UNITS_FIELD_NUMBER
public static final int UNITS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UNIT_TYPE_FIELD_NUMBER
public static final int UNIT_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Goal getDefaultInstance()
Returns |
Type |
Description |
Goal |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Goal.Builder newBuilder()
newBuilder(Goal prototype)
public static Goal.Builder newBuilder(Goal prototype)
Parameter |
Name |
Description |
prototype |
Goal
|
public static Goal parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Goal |
|
public static Goal parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Goal |
|
parseFrom(byte[] data)
public static Goal parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Goal |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Goal parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Goal |
|
parseFrom(ByteString data)
public static Goal parseFrom(ByteString data)
Returns |
Type |
Description |
Goal |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Goal parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Goal |
|
public static Goal parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Goal |
|
public static Goal parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Goal |
|
public static Goal parseFrom(InputStream input)
Returns |
Type |
Description |
Goal |
|
public static Goal parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Goal |
|
parseFrom(ByteBuffer data)
public static Goal parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Goal |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Goal parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Goal |
|
parser()
public static Parser<Goal> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Goal getDefaultInstanceForType()
Returns |
Type |
Description |
Goal |
|
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;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for goalType.
|
getParserForType()
public Parser<Goal> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for unitType.
|
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;
Returns |
Type |
Description |
long |
The units.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Goal.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Goal.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Goal.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides