Class VideoFormat.Builder (0.48.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoFormat.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoFormat.Builder
Overrides

build()

public VideoFormat build()
Returns
Type Description
VideoFormat

buildPartial()

public VideoFormat buildPartial()
Returns
Type Description
VideoFormat

clear()

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

clearCodec()

public VideoFormat.Builder clearCodec()

Video codec used in this video stream.

string codec = 1;

Returns
Type Description
VideoFormat.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VideoFormat.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoFormat.Builder
Overrides

clearFrameRate()

public VideoFormat.Builder clearFrameRate()

The frame rate of the input video stream.

double frame_rate = 4;

Returns
Type Description
VideoFormat.Builder

This builder for chaining.

clearHeightPixels()

public VideoFormat.Builder clearHeightPixels()

The height of the video stream in pixels.

int32 height_pixels = 3;

Returns
Type Description
VideoFormat.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoFormat.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoFormat.Builder
Overrides

clearWidthPixels()

public VideoFormat.Builder clearWidthPixels()

The width of the video stream in pixels.

int32 width_pixels = 2;

Returns
Type Description
VideoFormat.Builder

This builder for chaining.

clone()

public VideoFormat.Builder clone()
Returns
Type Description
VideoFormat.Builder
Overrides

getCodec()

public String getCodec()

Video codec used in this video stream.

string codec = 1;

Returns
Type Description
String

The codec.

getCodecBytes()

public ByteString getCodecBytes()

Video codec used in this video stream.

string codec = 1;

Returns
Type Description
ByteString

The bytes for codec.

getDefaultInstanceForType()

public VideoFormat getDefaultInstanceForType()
Returns
Type Description
VideoFormat

getDescriptorForType()

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

getFrameRate()

public double getFrameRate()

The frame rate of the input video stream.

double frame_rate = 4;

Returns
Type Description
double

The frameRate.

getHeightPixels()

public int getHeightPixels()

The height of the video stream in pixels.

int32 height_pixels = 3;

Returns
Type Description
int

The heightPixels.

getWidthPixels()

public int getWidthPixels()

The width of the video stream in pixels.

int32 width_pixels = 2;

Returns
Type Description
int

The widthPixels.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VideoFormat other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoFormat.Builder
Overrides

setCodec(String value)

public VideoFormat.Builder setCodec(String value)

Video codec used in this video stream.

string codec = 1;

Parameter
Name Description
value String

The codec to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for codec to set.

Returns
Type Description
VideoFormat.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VideoFormat.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value double

The frameRate to set.

Returns
Type Description
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
Name Description
value int

The heightPixels to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoFormat.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoFormat.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value int

The widthPixels to set.

Returns
Type Description
VideoFormat.Builder

This builder for chaining.