Class VideoFormat (0.22.0)

public final class VideoFormat extends GeneratedMessageV3 implements VideoFormatOrBuilder

Properties of the video format.

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

Static Fields

CODEC_FIELD_NUMBER

public static final int CODEC_FIELD_NUMBER
Field Value
TypeDescription
int

FRAME_RATE_FIELD_NUMBER

public static final int FRAME_RATE_FIELD_NUMBER
Field Value
TypeDescription
int

HEIGHT_PIXELS_FIELD_NUMBER

public static final int HEIGHT_PIXELS_FIELD_NUMBER
Field Value
TypeDescription
int

WIDTH_PIXELS_FIELD_NUMBER

public static final int WIDTH_PIXELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VideoFormat getDefaultInstance()
Returns
TypeDescription
VideoFormat

getDescriptor()

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

newBuilder()

public static VideoFormat.Builder newBuilder()
Returns
TypeDescription
VideoFormat.Builder

newBuilder(VideoFormat prototype)

public static VideoFormat.Builder newBuilder(VideoFormat prototype)
Parameter
NameDescription
prototypeVideoFormat
Returns
TypeDescription
VideoFormat.Builder

parseDelimitedFrom(InputStream input)

public static VideoFormat parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VideoFormat parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VideoFormat parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VideoFormat parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VideoFormat parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VideoFormat parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VideoFormat parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VideoFormat parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VideoFormat parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VideoFormat parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VideoFormat parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VideoFormat parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VideoFormat> parser()
Returns
TypeDescription
Parser<VideoFormat>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<VideoFormat> getParserForType()
Returns
TypeDescription
Parser<VideoFormat>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWidthPixels()

public int getWidthPixels()

The width of the video stream in pixels.

int32 width_pixels = 2;

Returns
TypeDescription
int

The widthPixels.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VideoFormat.Builder newBuilderForType()
Returns
TypeDescription
VideoFormat.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VideoFormat.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VideoFormat.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VideoFormat.Builder toBuilder()
Returns
TypeDescription
VideoFormat.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException