Class DailyVolumeSettings.Builder (0.62.0)

public static final class DailyVolumeSettings.Builder extends GeneratedMessage.Builder<DailyVolumeSettings.Builder> implements DailyVolumeSettingsOrBuilder

Settings to specify daily ad opportunity counts that will be used as the expected future traffic volume for a forecast adjustment. For example: [10000, 20000, 5000] indicates expected traffic for the targeting specified on the parent traffic forecast segment of 10,000 ad opportunities for the first day, 20,000 ad opportunities for the second, and 5,000 for the third.

Protobuf type google.ads.admanager.v1.DailyVolumeSettings

Static Methods

getDescriptor()

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

Methods

addAdOpportunityCounts(long value)

public DailyVolumeSettings.Builder addAdOpportunityCounts(long value)

Required. The list of ad opportunity counts. Each value in this list represents the expected number of ad opportunities on the corresponding day of the adjustment date range. The number of values provided must match the number of days in the adjustment date range, inclusive. For example, an adjustment date range of June 5-June 7 would need 3 values in this list, one for June 5, one for June 6, and one for June 7.

repeated int64 ad_opportunity_counts = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The adOpportunityCounts to add.

Returns
Type Description
DailyVolumeSettings.Builder

This builder for chaining.

addAllAdOpportunityCounts(Iterable<? extends Long> values)

public DailyVolumeSettings.Builder addAllAdOpportunityCounts(Iterable<? extends Long> values)

Required. The list of ad opportunity counts. Each value in this list represents the expected number of ad opportunities on the corresponding day of the adjustment date range. The number of values provided must match the number of days in the adjustment date range, inclusive. For example, an adjustment date range of June 5-June 7 would need 3 values in this list, one for June 5, one for June 6, and one for June 7.

repeated int64 ad_opportunity_counts = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The adOpportunityCounts to add.

Returns
Type Description
DailyVolumeSettings.Builder

This builder for chaining.

build()

public DailyVolumeSettings build()
Returns
Type Description
DailyVolumeSettings

buildPartial()

public DailyVolumeSettings buildPartial()
Returns
Type Description
DailyVolumeSettings

clear()

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

clearAdOpportunityCounts()

public DailyVolumeSettings.Builder clearAdOpportunityCounts()

Required. The list of ad opportunity counts. Each value in this list represents the expected number of ad opportunities on the corresponding day of the adjustment date range. The number of values provided must match the number of days in the adjustment date range, inclusive. For example, an adjustment date range of June 5-June 7 would need 3 values in this list, one for June 5, one for June 6, and one for June 7.

repeated int64 ad_opportunity_counts = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyVolumeSettings.Builder

This builder for chaining.

getAdOpportunityCounts(int index)

public long getAdOpportunityCounts(int index)

Required. The list of ad opportunity counts. Each value in this list represents the expected number of ad opportunities on the corresponding day of the adjustment date range. The number of values provided must match the number of days in the adjustment date range, inclusive. For example, an adjustment date range of June 5-June 7 would need 3 values in this list, one for June 5, one for June 6, and one for June 7.

repeated int64 ad_opportunity_counts = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The adOpportunityCounts at the given index.

getAdOpportunityCountsCount()

public int getAdOpportunityCountsCount()

Required. The list of ad opportunity counts. Each value in this list represents the expected number of ad opportunities on the corresponding day of the adjustment date range. The number of values provided must match the number of days in the adjustment date range, inclusive. For example, an adjustment date range of June 5-June 7 would need 3 values in this list, one for June 5, one for June 6, and one for June 7.

repeated int64 ad_opportunity_counts = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of adOpportunityCounts.

getAdOpportunityCountsList()

public List<Long> getAdOpportunityCountsList()

Required. The list of ad opportunity counts. Each value in this list represents the expected number of ad opportunities on the corresponding day of the adjustment date range. The number of values provided must match the number of days in the adjustment date range, inclusive. For example, an adjustment date range of June 5-June 7 would need 3 values in this list, one for June 5, one for June 6, and one for June 7.

repeated int64 ad_opportunity_counts = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Long>

A list containing the adOpportunityCounts.

getDefaultInstanceForType()

public DailyVolumeSettings getDefaultInstanceForType()
Returns
Type Description
DailyVolumeSettings

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DailyVolumeSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAdOpportunityCounts(int index, long value)

public DailyVolumeSettings.Builder setAdOpportunityCounts(int index, long value)

Required. The list of ad opportunity counts. Each value in this list represents the expected number of ad opportunities on the corresponding day of the adjustment date range. The number of values provided must match the number of days in the adjustment date range, inclusive. For example, an adjustment date range of June 5-June 7 would need 3 values in this list, one for June 5, one for June 6, and one for June 7.

repeated int64 ad_opportunity_counts = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value long

The adOpportunityCounts to set.

Returns
Type Description
DailyVolumeSettings.Builder

This builder for chaining.