Class CustomPacingGoal (0.54.0)

public final class CustomPacingGoal extends GeneratedMessage implements CustomPacingGoalOrBuilder

An interval of a CustomPacingCurve. A custom pacing goal contains a start time and an amount. The goal will apply until either the next custom pacing goal's getStartTime or the line item's end time if it is the last goal.

Protobuf type google.ads.admanager.v1.CustomPacingGoal

Static Fields

AMOUNT_FIELD_NUMBER

public static final int AMOUNT_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

USE_LINE_ITEM_START_TIME_FIELD_NUMBER

public static final int USE_LINE_ITEM_START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomPacingGoal getDefaultInstance()
Returns
Type Description
CustomPacingGoal

getDescriptor()

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

newBuilder()

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

newBuilder(CustomPacingGoal prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAmount()

public long getAmount()

Optional. The amount associated with the goal. This field is required.

optional int64 amount = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The amount.

getDefaultInstanceForType()

public CustomPacingGoal getDefaultInstanceForType()
Returns
Type Description
CustomPacingGoal

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public Timestamp getStartTime()

Optional. The start date and time of the goal. This field is required unless use_line_item_start_time is true.

optional .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Optional. The start date and time of the goal. This field is required unless use_line_item_start_time is true.

optional .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getUseLineItemStartTime()

public boolean getUseLineItemStartTime()

Optional. Input only. Whether the [LineItem.start_time] should be used for the start date and time of this goal. This field is not persisted and if it is set to true, the [start_time] field will be populated by the line item's start time.

optional bool use_line_item_start_time = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

The useLineItemStartTime.

hasAmount()

public boolean hasAmount()

Optional. The amount associated with the goal. This field is required.

optional int64 amount = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the amount field is set.

hasStartTime()

public boolean hasStartTime()

Optional. The start date and time of the goal. This field is required unless use_line_item_start_time is true.

optional .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startTime field is set.

hasUseLineItemStartTime()

public boolean hasUseLineItemStartTime()

Optional. Input only. Whether the [LineItem.start_time] should be used for the start date and time of this goal. This field is not persisted and if it is set to true, the [start_time] field will be populated by the line item's start time.

optional bool use_line_item_start_time = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the useLineItemStartTime 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 CustomPacingGoal.Builder newBuilderForType()
Returns
Type Description
CustomPacingGoal.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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