Class MuxStream.Builder (1.4.0)

publicstaticfinalclass MuxStream.BuilderextendsGeneratedMessageV3.Builder<MuxStream.Builder>implementsMuxStreamOrBuilder

Multiplexing settings for output stream.

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

Implements

MuxStreamOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addAllElementaryStreams(Iterable<String> values)

publicMuxStream.BuilderaddAllElementaryStreams(Iterable<String>values)

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Parameter
Name Description
values Iterable<String>

The elementaryStreams to add.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

addElementaryStreams(String value)

publicMuxStream.BuilderaddElementaryStreams(Stringvalue)

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Parameter
Name Description
value String

The elementaryStreams to add.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

addElementaryStreamsBytes(ByteString value)

publicMuxStream.BuilderaddElementaryStreamsBytes(ByteStringvalue)

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Parameter
Name Description
value ByteString

The bytes of the elementaryStreams to add.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicMuxStream.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicMuxStreambuild()
Returns
Type Description

buildPartial()

publicMuxStreambuildPartial()
Returns
Type Description

clear()

publicMuxStream.Builderclear()
Returns
Type Description
Overrides

clearContainer()

publicMuxStream.BuilderclearContainer()

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

string container = 3;

Returns
Type Description
MuxStream.Builder

This builder for chaining.

clearElementaryStreams()

publicMuxStream.BuilderclearElementaryStreams()

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Returns
Type Description
MuxStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicMuxStream.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearFileName()

publicMuxStream.BuilderclearFileName()

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as mux_stream0000000123.ts.

string file_name = 2;

Returns
Type Description
MuxStream.Builder

This builder for chaining.

clearKey()

publicMuxStream.BuilderclearKey()

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the .m3u8 extension suffix.

string key = 1;

Returns
Type Description
MuxStream.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicMuxStream.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearSegmentSettings()

publicMuxStream.BuilderclearSegmentSettings()

Segment settings for ts, fmp4 and vtt.

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

Returns
Type Description

clone()

publicMuxStream.Builderclone()
Returns
Type Description
Overrides

getContainer()

publicStringgetContainer()

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

string container = 3;

Returns
Type Description
String

The container.

getContainerBytes()

publicByteStringgetContainerBytes()

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

string container = 3;

Returns
Type Description
ByteString

The bytes for container.

getDefaultInstanceForType()

publicMuxStreamgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getElementaryStreams(int index)

publicStringgetElementaryStreams(intindex)

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The elementaryStreams at the given index.

getElementaryStreamsBytes(int index)

publicByteStringgetElementaryStreamsBytes(intindex)

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the elementaryStreams at the given index.

getElementaryStreamsCount()

publicintgetElementaryStreamsCount()

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Returns
Type Description
int

The count of elementaryStreams.

getElementaryStreamsList()

publicProtocolStringListgetElementaryStreamsList()

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Returns
Type Description
ProtocolStringList

A list containing the elementaryStreams.

getFileName()

publicStringgetFileName()

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as mux_stream0000000123.ts.

string file_name = 2;

Returns
Type Description
String

The fileName.

getFileNameBytes()

publicByteStringgetFileNameBytes()

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as mux_stream0000000123.ts.

string file_name = 2;

Returns
Type Description
ByteString

The bytes for fileName.

getKey()

publicStringgetKey()

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the .m3u8 extension suffix.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

publicByteStringgetKeyBytes()

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the .m3u8 extension suffix.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getSegmentSettings()

publicSegmentSettingsgetSegmentSettings()

Segment settings for ts, fmp4 and vtt.

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

Returns
Type Description
SegmentSettings

The segmentSettings.

getSegmentSettingsBuilder()

publicSegmentSettings.BuildergetSegmentSettingsBuilder()

Segment settings for ts, fmp4 and vtt.

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

Returns
Type Description

getSegmentSettingsOrBuilder()

publicSegmentSettingsOrBuildergetSegmentSettingsOrBuilder()

Segment settings for ts, fmp4 and vtt.

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

Returns
Type Description

hasSegmentSettings()

publicbooleanhasSegmentSettings()

Segment settings for ts, fmp4 and vtt.

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

Returns
Type Description
boolean

Whether the segmentSettings field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(MuxStream other)

publicMuxStream.BuildermergeFrom(MuxStreamother)
Parameter
Name Description
other MuxStream
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicMuxStream.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicMuxStream.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeSegmentSettings(SegmentSettings value)

publicMuxStream.BuildermergeSegmentSettings(SegmentSettingsvalue)

Segment settings for ts, fmp4 and vtt.

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

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalMuxStream.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setContainer(String value)

publicMuxStream.BuildersetContainer(Stringvalue)

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

string container = 3;

Parameter
Name Description
value String

The container to set.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

setContainerBytes(ByteString value)

publicMuxStream.BuildersetContainerBytes(ByteStringvalue)

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

string container = 3;

Parameter
Name Description
value ByteString

The bytes for container to set.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

setElementaryStreams(int index, String value)

publicMuxStream.BuildersetElementaryStreams(intindex,Stringvalue)

List of ElementaryStream.keys multiplexed in this stream.

repeated string elementary_streams = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The elementaryStreams to set.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicMuxStream.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setFileName(String value)

publicMuxStream.BuildersetFileName(Stringvalue)

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as mux_stream0000000123.ts.

string file_name = 2;

Parameter
Name Description
value String

The fileName to set.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

setFileNameBytes(ByteString value)

publicMuxStream.BuildersetFileNameBytes(ByteStringvalue)

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as mux_stream0000000123.ts.

string file_name = 2;

Parameter
Name Description
value ByteString

The bytes for fileName to set.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

setKey(String value)

publicMuxStream.BuildersetKey(Stringvalue)

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the .m3u8 extension suffix.

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

setKeyBytes(ByteString value)

publicMuxStream.BuildersetKeyBytes(ByteStringvalue)

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the .m3u8 extension suffix.

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
MuxStream.Builder

This builder for chaining.

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

publicMuxStream.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setSegmentSettings(SegmentSettings value)

publicMuxStream.BuildersetSegmentSettings(SegmentSettingsvalue)

Segment settings for ts, fmp4 and vtt.

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

Parameter
Name Description
Returns
Type Description

setSegmentSettings(SegmentSettings.Builder builderForValue)

publicMuxStream.BuildersetSegmentSettings(SegmentSettings.BuilderbuilderForValue)

Segment settings for ts, fmp4 and vtt.

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

Parameter
Name Description
builderForValue SegmentSettings.Builder
Returns
Type Description

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalMuxStream.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.