Class CustomPacingCurve (0.54.0)

public final class CustomPacingCurve extends GeneratedMessage implements CustomPacingCurveOrBuilder

A curve consisting of CustomPacingGoal objects that is used to pace line item delivery.

Protobuf type google.ads.admanager.v1.CustomPacingCurve

Static Fields

CUSTOM_PACING_GOALS_FIELD_NUMBER

public static final int CUSTOM_PACING_GOALS_FIELD_NUMBER
Field Value
Type Description
int

CUSTOM_PACING_GOAL_UNIT_FIELD_NUMBER

public static final int CUSTOM_PACING_GOAL_UNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomPacingCurve getDefaultInstance()
Returns
Type Description
CustomPacingCurve

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CustomPacingCurve.Builder newBuilder()
Returns
Type Description
CustomPacingCurve.Builder

newBuilder(CustomPacingCurve prototype)

public static CustomPacingCurve.Builder newBuilder(CustomPacingCurve prototype)
Parameter
Name Description
prototype CustomPacingCurve
Returns
Type Description
CustomPacingCurve.Builder

parseDelimitedFrom(InputStream input)

public static CustomPacingCurve parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomPacingCurve parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomPacingCurve parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomPacingCurve parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomPacingCurve parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomPacingCurve parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomPacingCurve parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomPacingCurve parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomPacingCurve parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomPacingCurve parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomPacingCurve parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomPacingCurve parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomPacingCurve
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomPacingCurve> parser()
Returns
Type Description
Parser<CustomPacingCurve>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCustomPacingGoalUnit()

public CustomPacingGoalUnitEnum.CustomPacingGoalUnit getCustomPacingGoalUnit()

Required. The unit of the CustomPacingGoal.amount values.

optional .google.ads.admanager.v1.CustomPacingGoalUnitEnum.CustomPacingGoalUnit custom_pacing_goal_unit = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomPacingGoalUnitEnum.CustomPacingGoalUnit

The customPacingGoalUnit.

getCustomPacingGoalUnitValue()

public int getCustomPacingGoalUnitValue()

Required. The unit of the CustomPacingGoal.amount values.

optional .google.ads.admanager.v1.CustomPacingGoalUnitEnum.CustomPacingGoalUnit custom_pacing_goal_unit = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for customPacingGoalUnit.

getCustomPacingGoals(int index)

public CustomPacingGoal getCustomPacingGoals(int index)

Required. The list of goals that make up the custom pacing curve.

repeated .google.ads.admanager.v1.CustomPacingGoal custom_pacing_goals = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CustomPacingGoal

getCustomPacingGoalsCount()

public int getCustomPacingGoalsCount()

Required. The list of goals that make up the custom pacing curve.

repeated .google.ads.admanager.v1.CustomPacingGoal custom_pacing_goals = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getCustomPacingGoalsList()

public List<CustomPacingGoal> getCustomPacingGoalsList()

Required. The list of goals that make up the custom pacing curve.

repeated .google.ads.admanager.v1.CustomPacingGoal custom_pacing_goals = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CustomPacingGoal>

getCustomPacingGoalsOrBuilder(int index)

public CustomPacingGoalOrBuilder getCustomPacingGoalsOrBuilder(int index)

Required. The list of goals that make up the custom pacing curve.

repeated .google.ads.admanager.v1.CustomPacingGoal custom_pacing_goals = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CustomPacingGoalOrBuilder

getCustomPacingGoalsOrBuilderList()

public List<? extends CustomPacingGoalOrBuilder> getCustomPacingGoalsOrBuilderList()

Required. The list of goals that make up the custom pacing curve.

repeated .google.ads.admanager.v1.CustomPacingGoal custom_pacing_goals = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.CustomPacingGoalOrBuilder>

getDefaultInstanceForType()

public CustomPacingCurve getDefaultInstanceForType()
Returns
Type Description
CustomPacingCurve

getParserForType()

public Parser<CustomPacingCurve> getParserForType()
Returns
Type Description
Parser<CustomPacingCurve>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCustomPacingGoalUnit()

public boolean hasCustomPacingGoalUnit()

Required. The unit of the CustomPacingGoal.amount values.

optional .google.ads.admanager.v1.CustomPacingGoalUnitEnum.CustomPacingGoalUnit custom_pacing_goal_unit = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the customPacingGoalUnit field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CustomPacingCurve.Builder newBuilderForType()
Returns
Type Description
CustomPacingCurve.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CustomPacingCurve.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomPacingCurve.Builder
Overrides

toBuilder()

public CustomPacingCurve.Builder toBuilder()
Returns
Type Description
CustomPacingCurve.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException