Class VideoSettings.Builder (0.58.0)

public static final class VideoSettings.Builder extends GeneratedMessage.Builder<VideoSettings.Builder> implements VideoSettingsOrBuilder

Information about the video settings of an encoding profile.

Protobuf type google.ads.admanager.v1.VideoSettings

Static Methods

getDescriptor()

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

Methods

build()

public VideoSettings build()
Returns
Type Description
VideoSettings

buildPartial()

public VideoSettings buildPartial()
Returns
Type Description
VideoSettings

clear()

public VideoSettings.Builder clear()
Returns
Type Description
VideoSettings.Builder
Overrides

clearBitrate()

public VideoSettings.Builder clearBitrate()

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
VideoSettings.Builder

This builder for chaining.

clearCodec()

public VideoSettings.Builder clearCodec()

Required. The RFC6381 codec string of the video.

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

Returns
Type Description
VideoSettings.Builder

This builder for chaining.

clearFramesPerSecond()

public VideoSettings.Builder clearFramesPerSecond()

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
VideoSettings.Builder

This builder for chaining.

clearResolution()

public VideoSettings.Builder clearResolution()

Required. The resolution of the video, in pixels.

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

Returns
Type Description
VideoSettings.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

getResolutionBuilder()

public Size.Builder getResolutionBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VideoSettings other)

public VideoSettings.Builder mergeFrom(VideoSettings other)
Parameter
Name Description
other VideoSettings
Returns
Type Description
VideoSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VideoSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VideoSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoSettings.Builder
Overrides

mergeResolution(Size value)

public VideoSettings.Builder mergeResolution(Size value)

Required. The resolution of the video, in pixels.

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

Parameter
Name Description
value Size
Returns
Type Description
VideoSettings.Builder

setBitrate(long value)

public VideoSettings.Builder setBitrate(long value)

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];

Parameter
Name Description
value long

The bitrate to set.

Returns
Type Description
VideoSettings.Builder

This builder for chaining.

setCodec(String value)

public VideoSettings.Builder setCodec(String value)

Required. The RFC6381 codec string of the video.

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

Parameter
Name Description
value String

The codec to set.

Returns
Type Description
VideoSettings.Builder

This builder for chaining.

setCodecBytes(ByteString value)

public VideoSettings.Builder setCodecBytes(ByteString value)

Required. The RFC6381 codec string of the video.

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

Parameter
Name Description
value ByteString

The bytes for codec to set.

Returns
Type Description
VideoSettings.Builder

This builder for chaining.

setFramesPerSecond(double value)

public VideoSettings.Builder setFramesPerSecond(double value)

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];

Parameter
Name Description
value double

The framesPerSecond to set.

Returns
Type Description
VideoSettings.Builder

This builder for chaining.

setResolution(Size value)

public VideoSettings.Builder setResolution(Size value)

Required. The resolution of the video, in pixels.

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

Parameter
Name Description
value Size
Returns
Type Description
VideoSettings.Builder

setResolution(Size.Builder builderForValue)

public VideoSettings.Builder setResolution(Size.Builder builderForValue)

Required. The resolution of the video, in pixels.

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

Parameter
Name Description
builderForValue Size.Builder
Returns
Type Description
VideoSettings.Builder