Class PrerollSettings (0.54.0)

public final class PrerollSettings extends GeneratedMessage implements PrerollSettingsOrBuilder

Settings for ad breaks on a livestream that are specific to preroll.

Protobuf type google.ads.admanager.v1.PrerollSettings

Static Fields

AD_TAG_FIELD_NUMBER

public static final int AD_TAG_FIELD_NUMBER
Field Value
Type Description
int

MAX_AD_POD_DURATION_FIELD_NUMBER

public static final int MAX_AD_POD_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PrerollSettings getDefaultInstance()
Returns
Type Description
PrerollSettings

getDescriptor()

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

newBuilder()

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

newBuilder(PrerollSettings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdTag()

public String getAdTag()

Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.

optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The adTag.

getAdTagBytes()

public ByteString getAdTagBytes()

Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.

optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for adTag.

getDefaultInstanceForType()

public PrerollSettings getDefaultInstanceForType()
Returns
Type Description
PrerollSettings

getMaxAdPodDuration()

public Duration getMaxAdPodDuration()

Required. The maximum duration for an ad break.

optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The maxAdPodDuration.

getMaxAdPodDurationOrBuilder()

public DurationOrBuilder getMaxAdPodDurationOrBuilder()

Required. The maximum duration for an ad break.

optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAdTag()

public boolean hasAdTag()

Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.

optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adTag field is set.

hasMaxAdPodDuration()

public boolean hasMaxAdPodDuration()

Required. The maximum duration for an ad break.

optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the maxAdPodDuration 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 PrerollSettings.Builder newBuilderForType()
Returns
Type Description
PrerollSettings.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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