Class ElementaryStream.Builder (0.49.0)

public static final class ElementaryStream.Builder extends GeneratedMessageV3.Builder<ElementaryStream.Builder> implements ElementaryStreamOrBuilder

Encoding of an input element such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ElementaryStream build()
Returns
Type Description
ElementaryStream

buildPartial()

public ElementaryStream buildPartial()
Returns
Type Description
ElementaryStream

clear()

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

clearAudioStream()

public ElementaryStream.Builder clearAudioStream()

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Returns
Type Description
ElementaryStream.Builder

clearElementaryStream()

public ElementaryStream.Builder clearElementaryStream()
Returns
Type Description
ElementaryStream.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public ElementaryStream.Builder clearKey()

A unique key for this elementary stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 4;

Returns
Type Description
ElementaryStream.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTextStream()

public ElementaryStream.Builder clearTextStream()

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Returns
Type Description
ElementaryStream.Builder

clearVideoStream()

public ElementaryStream.Builder clearVideoStream()

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Returns
Type Description
ElementaryStream.Builder

clone()

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

getAudioStream()

public AudioStream getAudioStream()

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Returns
Type Description
AudioStream

The audioStream.

getAudioStreamBuilder()

public AudioStream.Builder getAudioStreamBuilder()

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Returns
Type Description
AudioStream.Builder

getAudioStreamOrBuilder()

public AudioStreamOrBuilder getAudioStreamOrBuilder()

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Returns
Type Description
AudioStreamOrBuilder

getDefaultInstanceForType()

public ElementaryStream getDefaultInstanceForType()
Returns
Type Description
ElementaryStream

getDescriptorForType()

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

getElementaryStreamCase()

public ElementaryStream.ElementaryStreamCase getElementaryStreamCase()
Returns
Type Description
ElementaryStream.ElementaryStreamCase

getKey()

public String getKey()

A unique key for this elementary stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 4;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

A unique key for this elementary stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 4;

Returns
Type Description
ByteString

The bytes for key.

getTextStream()

public TextStream getTextStream()

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Returns
Type Description
TextStream

The textStream.

getTextStreamBuilder()

public TextStream.Builder getTextStreamBuilder()

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Returns
Type Description
TextStream.Builder

getTextStreamOrBuilder()

public TextStreamOrBuilder getTextStreamOrBuilder()

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Returns
Type Description
TextStreamOrBuilder

getVideoStream()

public VideoStream getVideoStream()

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Returns
Type Description
VideoStream

The videoStream.

getVideoStreamBuilder()

public VideoStream.Builder getVideoStreamBuilder()

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Returns
Type Description
VideoStream.Builder

getVideoStreamOrBuilder()

public VideoStreamOrBuilder getVideoStreamOrBuilder()

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Returns
Type Description
VideoStreamOrBuilder

hasAudioStream()

public boolean hasAudioStream()

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Returns
Type Description
boolean

Whether the audioStream field is set.

hasTextStream()

public boolean hasTextStream()

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Returns
Type Description
boolean

Whether the textStream field is set.

hasVideoStream()

public boolean hasVideoStream()

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Returns
Type Description
boolean

Whether the videoStream field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAudioStream(AudioStream value)

public ElementaryStream.Builder mergeAudioStream(AudioStream value)

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Parameter
Name Description
value AudioStream
Returns
Type Description
ElementaryStream.Builder

mergeFrom(ElementaryStream other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTextStream(TextStream value)

public ElementaryStream.Builder mergeTextStream(TextStream value)

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Parameter
Name Description
value TextStream
Returns
Type Description
ElementaryStream.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVideoStream(VideoStream value)

public ElementaryStream.Builder mergeVideoStream(VideoStream value)

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Parameter
Name Description
value VideoStream
Returns
Type Description
ElementaryStream.Builder

setAudioStream(AudioStream value)

public ElementaryStream.Builder setAudioStream(AudioStream value)

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Parameter
Name Description
value AudioStream
Returns
Type Description
ElementaryStream.Builder

setAudioStream(AudioStream.Builder builderForValue)

public ElementaryStream.Builder setAudioStream(AudioStream.Builder builderForValue)

Encoding of an audio stream.

.google.cloud.video.livestream.v1.AudioStream audio_stream = 2;

Parameter
Name Description
builderForValue AudioStream.Builder
Returns
Type Description
ElementaryStream.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public ElementaryStream.Builder setKey(String value)

A unique key for this elementary stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 4;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
ElementaryStream.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public ElementaryStream.Builder setKeyBytes(ByteString value)

A unique key for this elementary stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 4;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
ElementaryStream.Builder

This builder for chaining.

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

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

setTextStream(TextStream value)

public ElementaryStream.Builder setTextStream(TextStream value)

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Parameter
Name Description
value TextStream
Returns
Type Description
ElementaryStream.Builder

setTextStream(TextStream.Builder builderForValue)

public ElementaryStream.Builder setTextStream(TextStream.Builder builderForValue)

Encoding of a text stream. For example, closed captions or subtitles.

.google.cloud.video.livestream.v1.TextStream text_stream = 3;

Parameter
Name Description
builderForValue TextStream.Builder
Returns
Type Description
ElementaryStream.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVideoStream(VideoStream value)

public ElementaryStream.Builder setVideoStream(VideoStream value)

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Parameter
Name Description
value VideoStream
Returns
Type Description
ElementaryStream.Builder

setVideoStream(VideoStream.Builder builderForValue)

public ElementaryStream.Builder setVideoStream(VideoStream.Builder builderForValue)

Encoding of a video stream.

.google.cloud.video.livestream.v1.VideoStream video_stream = 1;

Parameter
Name Description
builderForValue VideoStream.Builder
Returns
Type Description
ElementaryStream.Builder