public static final class DailyVolumeSettings.Builder extends GeneratedMessage.Builder<DailyVolumeSettings.Builder> implements DailyVolumeSettingsOrBuilderSettings 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DailyVolumeSettings.BuilderImplements
DailyVolumeSettingsOrBuilderStatic 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 |
longThe 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 |
|
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 |
intThe 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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DailyVolumeSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DailyVolumeSettings.Builder |
|
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 |
intThe index to set the value at. |
value |
longThe adOpportunityCounts to set. |
| Returns | |
|---|---|
| Type | Description |
DailyVolumeSettings.Builder |
This builder for chaining. |