Class TotalVolumeSettings (0.62.0)

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

AD_OPPORTUNITY_COUNT_FIELD_NUMBER

public static final int AD_OPPORTUNITY_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TotalVolumeSettings getDefaultInstance()
Returns
Type Description
TotalVolumeSettings

getDescriptor()

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

newBuilder()

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

newBuilder(TotalVolumeSettings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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