Class VideoCharacteristics (0.66.0)

public final class VideoCharacteristics extends GeneratedMessageV3 implements VideoCharacteristicsOrBuilder

Standard characteristics of a video media view.

Protobuf type google.cloud.discoveryengine.v1alpha.VideoCharacteristics

Static Fields

AUDIO_BITRATE_KBPS_FIELD_NUMBER

public static final int AUDIO_BITRATE_KBPS_FIELD_NUMBER
Field Value
Type Description
int

AUDIO_CODECS_FIELD_NUMBER

public static final int AUDIO_CODECS_FIELD_NUMBER
Field Value
Type Description
int

DURATION_FIELD_NUMBER

public static final int DURATION_FIELD_NUMBER
Field Value
Type Description
int

FRAME_RATE_FIELD_NUMBER

public static final int FRAME_RATE_FIELD_NUMBER
Field Value
Type Description
int

HEIGHT_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER
Field Value
Type Description
int

VIDEO_BITRATE_KBPS_FIELD_NUMBER

public static final int VIDEO_BITRATE_KBPS_FIELD_NUMBER
Field Value
Type Description
int

VIDEO_CODECS_FIELD_NUMBER

public static final int VIDEO_CODECS_FIELD_NUMBER
Field Value
Type Description
int

WIDTH_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VideoCharacteristics getDefaultInstance()
Returns
Type Description
VideoCharacteristics

getDescriptor()

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

newBuilder()

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

newBuilder(VideoCharacteristics prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAudioBitrateKbps()

public int getAudioBitrateKbps()

Output only. Bitrate of the audio in kbps.

int32 audio_bitrate_kbps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The audioBitrateKbps.

getAudioCodecs(int index)

public String getAudioCodecs(int index)

Output only. Audio codecs used in the video.

repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The audioCodecs at the given index.

getAudioCodecsBytes(int index)

public ByteString getAudioCodecsBytes(int index)

Output only. Audio codecs used in the video.

repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the audioCodecs at the given index.

getAudioCodecsCount()

public int getAudioCodecsCount()

Output only. Audio codecs used in the video.

repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of audioCodecs.

getAudioCodecsList()

public ProtocolStringList getAudioCodecsList()

Output only. Audio codecs used in the video.

repeated string audio_codecs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the audioCodecs.

getDefaultInstanceForType()

public VideoCharacteristics getDefaultInstanceForType()
Returns
Type Description
VideoCharacteristics

getDuration()

public Duration getDuration()

Output only. Video duration.

.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The duration.

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Output only. Video duration.

.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getFrameRate()

public double getFrameRate()

Output only. Frame rate (frames per second).

double frame_rate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
double

The frameRate.

getHeight()

public int getHeight()

Output only. Video height in pixels.

int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The height.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVideoBitrateKbps()

public int getVideoBitrateKbps()

Output only. Bitrate of the video in kbps.

int32 video_bitrate_kbps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The videoBitrateKbps.

getVideoCodecs(int index)

public String getVideoCodecs(int index)

Output only. Video codecs used in the video.

repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The videoCodecs at the given index.

getVideoCodecsBytes(int index)

public ByteString getVideoCodecsBytes(int index)

Output only. Video codecs used in the video.

repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the videoCodecs at the given index.

getVideoCodecsCount()

public int getVideoCodecsCount()

Output only. Video codecs used in the video.

repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of videoCodecs.

getVideoCodecsList()

public ProtocolStringList getVideoCodecsList()

Output only. Video codecs used in the video.

repeated string video_codecs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the videoCodecs.

getWidth()

public int getWidth()

Output only. Video width in pixels.

int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The width.

hasDuration()

public boolean hasDuration()

Output only. Video duration.

.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the duration field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VideoCharacteristics.Builder newBuilderForType()
Returns
Type Description
VideoCharacteristics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VideoCharacteristics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VideoCharacteristics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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