Class TotalVolumeSettings.Builder (0.62.0)

public static final class TotalVolumeSettings.Builder extends GeneratedMessage.Builder<TotalVolumeSettings.Builder> implements TotalVolumeSettingsOrBuilder

Settings to specify a single total traffic volume that will be used as the expected total future volume for a forecast adjustment. For example, an adOpportunityCount of 3,000 indicates a forecast goal for the targeting specified on the parent traffic forecast segment of 3,000 ad opportunities over the entire duration of the adjustment.

Protobuf type google.ads.admanager.v1.TotalVolumeSettings

Static Methods

getDescriptor()

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

Methods

build()

public TotalVolumeSettings build()
Returns
Type Description
TotalVolumeSettings

buildPartial()

public TotalVolumeSettings buildPartial()
Returns
Type Description
TotalVolumeSettings

clear()

public TotalVolumeSettings.Builder clear()
Returns
Type Description
TotalVolumeSettings.Builder
Overrides

clearAdOpportunityCount()

public TotalVolumeSettings.Builder clearAdOpportunityCount()

Required. The total ad opportunity count over the entire forecast adjustment date range.

optional int64 ad_opportunity_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TotalVolumeSettings.Builder

This builder for chaining.

getAdOpportunityCount()

public long getAdOpportunityCount()

Required. The total ad opportunity count over the entire forecast adjustment date range.

optional int64 ad_opportunity_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The adOpportunityCount.

getDefaultInstanceForType()

public TotalVolumeSettings getDefaultInstanceForType()
Returns
Type Description
TotalVolumeSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAdOpportunityCount()

public boolean hasAdOpportunityCount()

Required. The total ad opportunity count over the entire forecast adjustment date range.

optional int64 ad_opportunity_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adOpportunityCount field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TotalVolumeSettings other)

public TotalVolumeSettings.Builder mergeFrom(TotalVolumeSettings other)
Parameter
Name Description
other TotalVolumeSettings
Returns
Type Description
TotalVolumeSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TotalVolumeSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TotalVolumeSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TotalVolumeSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TotalVolumeSettings.Builder
Overrides

setAdOpportunityCount(long value)

public TotalVolumeSettings.Builder setAdOpportunityCount(long value)

Required. The total ad opportunity count over the entire forecast adjustment date range.

optional int64 ad_opportunity_count = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The adOpportunityCount to set.

Returns
Type Description
TotalVolumeSettings.Builder

This builder for chaining.