Class MuxStream.Builder (0.11.0)

public static final class MuxStream.Builder extends GeneratedMessageV3.Builder<MuxStream.Builder> implements MuxStreamOrBuilder

Multiplexing settings for output stream.

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

Implements

MuxStreamOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllElementaryStreams(Iterable<String> values)

public MuxStream.Builder addAllElementaryStreams(Iterable<String> values)

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Parameter
NameDescription
valuesIterable<String>

The elementaryStreams to add.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

addElementaryStreams(String value)

public MuxStream.Builder addElementaryStreams(String value)

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Parameter
NameDescription
valueString

The elementaryStreams to add.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

addElementaryStreamsBytes(ByteString value)

public MuxStream.Builder addElementaryStreamsBytes(ByteString value)

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Parameter
NameDescription
valueByteString

The bytes of the elementaryStreams to add.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MuxStream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MuxStream.Builder
Overrides

build()

public MuxStream build()
Returns
TypeDescription
MuxStream

buildPartial()

public MuxStream buildPartial()
Returns
TypeDescription
MuxStream

clear()

public MuxStream.Builder clear()
Returns
TypeDescription
MuxStream.Builder
Overrides

clearContainer()

public MuxStream.Builder clearContainer()

The container format. The default is fmp4. Supported container formats:

  • fmp4 - the corresponding file extension is .m4s
  • ts - the corresponding file extension is .ts

string container = 3;

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

clearElementaryStreams()

public MuxStream.Builder clearElementaryStreams()

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MuxStream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MuxStream.Builder
Overrides

clearKey()

public MuxStream.Builder clearKey()

A unique key for this multiplexed stream.

string key = 1;

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MuxStream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MuxStream.Builder
Overrides

clearSegmentSettings()

public MuxStream.Builder clearSegmentSettings()

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Returns
TypeDescription
MuxStream.Builder

clone()

public MuxStream.Builder clone()
Returns
TypeDescription
MuxStream.Builder
Overrides

getContainer()

public String getContainer()

The container format. The default is fmp4. Supported container formats:

  • fmp4 - the corresponding file extension is .m4s
  • ts - the corresponding file extension is .ts

string container = 3;

Returns
TypeDescription
String

The container.

getContainerBytes()

public ByteString getContainerBytes()

The container format. The default is fmp4. Supported container formats:

  • fmp4 - the corresponding file extension is .m4s
  • ts - the corresponding file extension is .ts

string container = 3;

Returns
TypeDescription
ByteString

The bytes for container.

getDefaultInstanceForType()

public MuxStream getDefaultInstanceForType()
Returns
TypeDescription
MuxStream

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getElementaryStreams(int index)

public String getElementaryStreams(int index)

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The elementaryStreams at the given index.

getElementaryStreamsBytes(int index)

public ByteString getElementaryStreamsBytes(int index)

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the elementaryStreams at the given index.

getElementaryStreamsCount()

public int getElementaryStreamsCount()

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Returns
TypeDescription
int

The count of elementaryStreams.

getElementaryStreamsList()

public ProtocolStringList getElementaryStreamsList()

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the elementaryStreams.

getKey()

public String getKey()

A unique key for this multiplexed stream.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

A unique key for this multiplexed stream.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getSegmentSettings()

public SegmentSettings getSegmentSettings()

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Returns
TypeDescription
SegmentSettings

The segmentSettings.

getSegmentSettingsBuilder()

public SegmentSettings.Builder getSegmentSettingsBuilder()

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Returns
TypeDescription
SegmentSettings.Builder

getSegmentSettingsOrBuilder()

public SegmentSettingsOrBuilder getSegmentSettingsOrBuilder()

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Returns
TypeDescription
SegmentSettingsOrBuilder

hasSegmentSettings()

public boolean hasSegmentSettings()

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Returns
TypeDescription
boolean

Whether the segmentSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MuxStream other)

public MuxStream.Builder mergeFrom(MuxStream other)
Parameter
NameDescription
otherMuxStream
Returns
TypeDescription
MuxStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MuxStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MuxStream.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MuxStream.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MuxStream.Builder
Overrides

mergeSegmentSettings(SegmentSettings value)

public MuxStream.Builder mergeSegmentSettings(SegmentSettings value)

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Parameter
NameDescription
valueSegmentSettings
Returns
TypeDescription
MuxStream.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MuxStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MuxStream.Builder
Overrides

setContainer(String value)

public MuxStream.Builder setContainer(String value)

The container format. The default is fmp4. Supported container formats:

  • fmp4 - the corresponding file extension is .m4s
  • ts - the corresponding file extension is .ts

string container = 3;

Parameter
NameDescription
valueString

The container to set.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

setContainerBytes(ByteString value)

public MuxStream.Builder setContainerBytes(ByteString value)

The container format. The default is fmp4. Supported container formats:

  • fmp4 - the corresponding file extension is .m4s
  • ts - the corresponding file extension is .ts

string container = 3;

Parameter
NameDescription
valueByteString

The bytes for container to set.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

setElementaryStreams(int index, String value)

public MuxStream.Builder setElementaryStreams(int index, String value)

List of ElementaryStream keys multiplexed in this stream.

  • For fmp4 container, must contain either one video or one audio stream.
  • For ts container, must contain exactly one audio stream and up to one video stream.

repeated string elementary_streams = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The elementaryStreams to set.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MuxStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MuxStream.Builder
Overrides

setKey(String value)

public MuxStream.Builder setKey(String value)

A unique key for this multiplexed stream.

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public MuxStream.Builder setKeyBytes(ByteString value)

A unique key for this multiplexed stream.

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
MuxStream.Builder

This builder for chaining.

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

public MuxStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MuxStream.Builder
Overrides

setSegmentSettings(SegmentSettings value)

public MuxStream.Builder setSegmentSettings(SegmentSettings value)

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Parameter
NameDescription
valueSegmentSettings
Returns
TypeDescription
MuxStream.Builder

setSegmentSettings(SegmentSettings.Builder builderForValue)

public MuxStream.Builder setSegmentSettings(SegmentSettings.Builder builderForValue)

Segment settings for fmp4 and ts.

.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;

Parameter
NameDescription
builderForValueSegmentSettings.Builder
Returns
TypeDescription
MuxStream.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MuxStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MuxStream.Builder
Overrides