Class VideoCharacteristics.Builder (0.66.0)

public static final class VideoCharacteristics.Builder extends GeneratedMessageV3.Builder<VideoCharacteristics.Builder> implements VideoCharacteristicsOrBuilder

Standard characteristics of a video media view.

Protobuf type google.cloud.discoveryengine.v1alpha.VideoCharacteristics

Static Methods

getDescriptor()

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

Methods

addAllAudioCodecs(Iterable<String> values)

public VideoCharacteristics.Builder addAllAudioCodecs(Iterable<String> values)

Output only. Audio codecs used in the video.

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

Parameter
Name Description
values Iterable<String>

The audioCodecs to add.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

addAllVideoCodecs(Iterable<String> values)

public VideoCharacteristics.Builder addAllVideoCodecs(Iterable<String> values)

Output only. Video codecs used in the video.

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

Parameter
Name Description
values Iterable<String>

The videoCodecs to add.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

addAudioCodecs(String value)

public VideoCharacteristics.Builder addAudioCodecs(String value)

Output only. Audio codecs used in the video.

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

Parameter
Name Description
value String

The audioCodecs to add.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

addAudioCodecsBytes(ByteString value)

public VideoCharacteristics.Builder addAudioCodecsBytes(ByteString value)

Output only. Audio codecs used in the video.

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

Parameter
Name Description
value ByteString

The bytes of the audioCodecs to add.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVideoCodecs(String value)

public VideoCharacteristics.Builder addVideoCodecs(String value)

Output only. Video codecs used in the video.

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

Parameter
Name Description
value String

The videoCodecs to add.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

addVideoCodecsBytes(ByteString value)

public VideoCharacteristics.Builder addVideoCodecsBytes(ByteString value)

Output only. Video codecs used in the video.

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

Parameter
Name Description
value ByteString

The bytes of the videoCodecs to add.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

build()

public VideoCharacteristics build()
Returns
Type Description
VideoCharacteristics

buildPartial()

public VideoCharacteristics buildPartial()
Returns
Type Description
VideoCharacteristics

clear()

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

clearAudioBitrateKbps()

public VideoCharacteristics.Builder clearAudioBitrateKbps()

Output only. Bitrate of the audio in kbps.

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

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

clearAudioCodecs()

public VideoCharacteristics.Builder clearAudioCodecs()

Output only. Audio codecs used in the video.

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

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

clearDuration()

public VideoCharacteristics.Builder clearDuration()

Output only. Video duration.

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

Returns
Type Description
VideoCharacteristics.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFrameRate()

public VideoCharacteristics.Builder clearFrameRate()

Output only. Frame rate (frames per second).

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

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

clearHeight()

public VideoCharacteristics.Builder clearHeight()

Output only. Video height in pixels.

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

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVideoBitrateKbps()

public VideoCharacteristics.Builder clearVideoBitrateKbps()

Output only. Bitrate of the video in kbps.

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

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

clearVideoCodecs()

public VideoCharacteristics.Builder clearVideoCodecs()

Output only. Video codecs used in the video.

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

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

clearWidth()

public VideoCharacteristics.Builder clearWidth()

Output only. Video width in pixels.

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

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

clone()

public VideoCharacteristics.Builder clone()
Returns
Type Description
VideoCharacteristics.Builder
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

getDescriptorForType()

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

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.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Output only. Video duration.

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

Returns
Type Description
Builder

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDuration(Duration value)

public VideoCharacteristics.Builder mergeDuration(Duration value)

Output only. Video duration.

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

Parameter
Name Description
value Duration
Returns
Type Description
VideoCharacteristics.Builder

mergeFrom(VideoCharacteristics other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAudioBitrateKbps(int value)

public VideoCharacteristics.Builder setAudioBitrateKbps(int value)

Output only. Bitrate of the audio in kbps.

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

Parameter
Name Description
value int

The audioBitrateKbps to set.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

setAudioCodecs(int index, String value)

public VideoCharacteristics.Builder setAudioCodecs(int index, String value)

Output only. Audio codecs used in the video.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The audioCodecs to set.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

setDuration(Duration value)

public VideoCharacteristics.Builder setDuration(Duration value)

Output only. Video duration.

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

Parameter
Name Description
value Duration
Returns
Type Description
VideoCharacteristics.Builder

setDuration(Duration.Builder builderForValue)

public VideoCharacteristics.Builder setDuration(Duration.Builder builderForValue)

Output only. Video duration.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoCharacteristics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFrameRate(double value)

public VideoCharacteristics.Builder setFrameRate(double value)

Output only. Frame rate (frames per second).

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

Parameter
Name Description
value double

The frameRate to set.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

setHeight(int value)

public VideoCharacteristics.Builder setHeight(int value)

Output only. Video height in pixels.

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

Parameter
Name Description
value int

The height to set.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

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

public VideoCharacteristics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoCharacteristics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoCharacteristics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoCharacteristics.Builder
Overrides

setVideoBitrateKbps(int value)

public VideoCharacteristics.Builder setVideoBitrateKbps(int value)

Output only. Bitrate of the video in kbps.

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

Parameter
Name Description
value int

The videoBitrateKbps to set.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

setVideoCodecs(int index, String value)

public VideoCharacteristics.Builder setVideoCodecs(int index, String value)

Output only. Video codecs used in the video.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The videoCodecs to set.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.

setWidth(int value)

public VideoCharacteristics.Builder setWidth(int value)

Output only. Video width in pixels.

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

Parameter
Name Description
value int

The width to set.

Returns
Type Description
VideoCharacteristics.Builder

This builder for chaining.