Class DailyVolumeSettings (0.62.0)

public final class DailyVolumeSettings extends GeneratedMessage 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 Fields

AD_OPPORTUNITY_COUNTS_FIELD_NUMBER

public static final int AD_OPPORTUNITY_COUNTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DailyVolumeSettings getDefaultInstance()
Returns
Type Description
DailyVolumeSettings

getDescriptor()

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

newBuilder()

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

newBuilder(DailyVolumeSettings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 DailyVolumeSettings.Builder newBuilderForType()
Returns
Type Description
DailyVolumeSettings.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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