Class VideoFormat.Builder (0.39.0)

public static final class VideoFormat.Builder extends GeneratedMessageV3.Builder<VideoFormat.Builder> implements VideoFormatOrBuilder

Properties of the video format.

Protobuf type google.cloud.video.livestream.v1.VideoFormat

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoFormat.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoFormat.Builder
Overrides

build()

public VideoFormat build()
Returns
TypeDescription
VideoFormat

buildPartial()

public VideoFormat buildPartial()
Returns
TypeDescription
VideoFormat

clear()

public VideoFormat.Builder clear()
Returns
TypeDescription
VideoFormat.Builder
Overrides

clearCodec()

public VideoFormat.Builder clearCodec()

Video codec used in this video stream.

string codec = 1;

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VideoFormat.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VideoFormat.Builder
Overrides

clearFrameRate()

public VideoFormat.Builder clearFrameRate()

The frame rate of the input video stream.

double frame_rate = 4;

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

clearHeightPixels()

public VideoFormat.Builder clearHeightPixels()

The height of the video stream in pixels.

int32 height_pixels = 3;

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoFormat.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VideoFormat.Builder
Overrides

clearWidthPixels()

public VideoFormat.Builder clearWidthPixels()

The width of the video stream in pixels.

int32 width_pixels = 2;

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

clone()

public VideoFormat.Builder clone()
Returns
TypeDescription
VideoFormat.Builder
Overrides

getCodec()

public String getCodec()

Video codec used in this video stream.

string codec = 1;

Returns
TypeDescription
String

The codec.

getCodecBytes()

public ByteString getCodecBytes()

Video codec used in this video stream.

string codec = 1;

Returns
TypeDescription
ByteString

The bytes for codec.

getDefaultInstanceForType()

public VideoFormat getDefaultInstanceForType()
Returns
TypeDescription
VideoFormat

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFrameRate()

public double getFrameRate()

The frame rate of the input video stream.

double frame_rate = 4;

Returns
TypeDescription
double

The frameRate.

getHeightPixels()

public int getHeightPixels()

The height of the video stream in pixels.

int32 height_pixels = 3;

Returns
TypeDescription
int

The heightPixels.

getWidthPixels()

public int getWidthPixels()

The width of the video stream in pixels.

int32 width_pixels = 2;

Returns
TypeDescription
int

The widthPixels.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VideoFormat other)

public VideoFormat.Builder mergeFrom(VideoFormat other)
Parameter
NameDescription
otherVideoFormat
Returns
TypeDescription
VideoFormat.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoFormat.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoFormat.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VideoFormat.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VideoFormat.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoFormat.Builder
Overrides

setCodec(String value)

public VideoFormat.Builder setCodec(String value)

Video codec used in this video stream.

string codec = 1;

Parameter
NameDescription
valueString

The codec to set.

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

setCodecBytes(ByteString value)

public VideoFormat.Builder setCodecBytes(ByteString value)

Video codec used in this video stream.

string codec = 1;

Parameter
NameDescription
valueByteString

The bytes for codec to set.

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VideoFormat.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoFormat.Builder
Overrides

setFrameRate(double value)

public VideoFormat.Builder setFrameRate(double value)

The frame rate of the input video stream.

double frame_rate = 4;

Parameter
NameDescription
valuedouble

The frameRate to set.

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

setHeightPixels(int value)

public VideoFormat.Builder setHeightPixels(int value)

The height of the video stream in pixels.

int32 height_pixels = 3;

Parameter
NameDescription
valueint

The heightPixels to set.

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VideoFormat.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VideoFormat.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoFormat.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoFormat.Builder
Overrides

setWidthPixels(int value)

public VideoFormat.Builder setWidthPixels(int value)

The width of the video stream in pixels.

int32 width_pixels = 2;

Parameter
NameDescription
valueint

The widthPixels to set.

Returns
TypeDescription
VideoFormat.Builder

This builder for chaining.