Class VideoSettings (0.58.0)

public final class VideoSettings extends GeneratedMessage implements VideoSettingsOrBuilder

Information about the video settings of an encoding profile.

Protobuf type google.ads.admanager.v1.VideoSettings

Static Fields

BITRATE_FIELD_NUMBER

public static final int BITRATE_FIELD_NUMBER
Field Value
Type Description
int

CODEC_FIELD_NUMBER

public static final int CODEC_FIELD_NUMBER
Field Value
Type Description
int

FRAMES_PER_SECOND_FIELD_NUMBER

public static final int FRAMES_PER_SECOND_FIELD_NUMBER
Field Value
Type Description
int

RESOLUTION_FIELD_NUMBER

public static final int RESOLUTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VideoSettings getDefaultInstance()
Returns
Type Description
VideoSettings

getDescriptor()

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

newBuilder()

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

newBuilder(VideoSettings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBitrate()

public long getBitrate()

Required. The bitrate of the video, in bits per second. This value must be between 32kbps and 250 Mbps.

optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The bitrate.

getCodec()

public String getCodec()

Required. The RFC6381 codec string of the video.

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

Returns
Type Description
String

The codec.

getCodecBytes()

public ByteString getCodecBytes()

Required. The RFC6381 codec string of the video.

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

Returns
Type Description
ByteString

The bytes for codec.

getDefaultInstanceForType()

public VideoSettings getDefaultInstanceForType()
Returns
Type Description
VideoSettings

getFramesPerSecond()

public double getFramesPerSecond()

Required. The frames per second of the video. This value will be truncated to three decimal places.

optional double frames_per_second = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The framesPerSecond.

getParserForType()

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

getResolution()

public Size getResolution()

Required. The resolution of the video, in pixels.

optional .google.ads.admanager.v1.Size resolution = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Size

The resolution.

getResolutionOrBuilder()

public SizeOrBuilder getResolutionOrBuilder()

Required. The resolution of the video, in pixels.

optional .google.ads.admanager.v1.Size resolution = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SizeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBitrate()

public boolean hasBitrate()

Required. The bitrate of the video, in bits per second. This value must be between 32kbps and 250 Mbps.

optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the bitrate field is set.

hasCodec()

public boolean hasCodec()

Required. The RFC6381 codec string of the video.

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

Returns
Type Description
boolean

Whether the codec field is set.

hasFramesPerSecond()

public boolean hasFramesPerSecond()

Required. The frames per second of the video. This value will be truncated to three decimal places.

optional double frames_per_second = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the framesPerSecond field is set.

hasResolution()

public boolean hasResolution()

Required. The resolution of the video, in pixels.

optional .google.ads.admanager.v1.Size resolution = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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