Class MuxStream.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MuxStream.Builder>
com.google.cloud.video.livestream.v1.MuxStream.Builder
- All Implemented Interfaces:
MuxStreamOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MuxStream
public static final class MuxStream.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MuxStream.Builder>
implements MuxStreamOrBuilder
Multiplexing settings for output stream.Protobuf type
google.cloud.video.livestream.v1.MuxStream-
Method Summary
Modifier and TypeMethodDescriptionaddAllElementaryStreams(Iterable<String> values) List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamaddElementaryStreams(String value) List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamaddElementaryStreamsBytes(com.google.protobuf.ByteString value) List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streambuild()clear()The container format.List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamIdentifier of the encryption configuration to use.clearKey()A unique key for this multiplexed stream.Segment settings for `fmp4` and `ts`.The container format.com.google.protobuf.ByteStringThe container format.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetElementaryStreams(int index) List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamcom.google.protobuf.ByteStringgetElementaryStreamsBytes(int index) List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamintList of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamcom.google.protobuf.ProtocolStringListList of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamIdentifier of the encryption configuration to use.com.google.protobuf.ByteStringIdentifier of the encryption configuration to use.getKey()A unique key for this multiplexed stream.com.google.protobuf.ByteStringA unique key for this multiplexed stream.Segment settings for `fmp4` and `ts`.Segment settings for `fmp4` and `ts`.Segment settings for `fmp4` and `ts`.booleanSegment settings for `fmp4` and `ts`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Segment settings for `fmp4` and `ts`.setContainer(String value) The container format.setContainerBytes(com.google.protobuf.ByteString value) The container format.setElementaryStreams(int index, String value) List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this streamsetEncryptionId(String value) Identifier of the encryption configuration to use.setEncryptionIdBytes(com.google.protobuf.ByteString value) Identifier of the encryption configuration to use.A unique key for this multiplexed stream.setKeyBytes(com.google.protobuf.ByteString value) A unique key for this multiplexed stream.Segment settings for `fmp4` and `ts`.setSegmentSettings(SegmentSettings.Builder builderForValue) Segment settings for `fmp4` and `ts`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MuxStream.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MuxStream.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MuxStream.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MuxStream.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MuxStream.Builder>
-
mergeFrom
public MuxStream.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MuxStream.Builder>- Throws:
IOException
-
getKey
A unique key for this multiplexed 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 = 1;- Specified by:
getKeyin interfaceMuxStreamOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()A unique key for this multiplexed 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 = 1;- Specified by:
getKeyBytesin interfaceMuxStreamOrBuilder- Returns:
- The bytes for key.
-
setKey
A unique key for this multiplexed 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 = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
A unique key for this multiplexed 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 = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
A unique key for this multiplexed 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 = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getContainerin interfaceMuxStreamOrBuilder- Returns:
- The container.
-
getContainerBytes
public com.google.protobuf.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;- Specified by:
getContainerBytesin interfaceMuxStreamOrBuilder- Returns:
- The bytes for container.
-
setContainer
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;- Parameters:
value- The container to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setContainerBytes
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;- Parameters:
value- The bytes for container to set.- Returns:
- This builder for chaining.
-
getElementaryStreamsList
public com.google.protobuf.ProtocolStringList getElementaryStreamsList()List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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;- Specified by:
getElementaryStreamsListin interfaceMuxStreamOrBuilder- Returns:
- A list containing the elementaryStreams.
-
getElementaryStreamsCount
public int getElementaryStreamsCount()List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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;- Specified by:
getElementaryStreamsCountin interfaceMuxStreamOrBuilder- Returns:
- The count of elementaryStreams.
-
getElementaryStreams
List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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;- Specified by:
getElementaryStreamsin interfaceMuxStreamOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The elementaryStreams at the given index.
-
getElementaryStreamsBytes
public com.google.protobuf.ByteString getElementaryStreamsBytes(int index) List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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;- Specified by:
getElementaryStreamsBytesin interfaceMuxStreamOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the elementaryStreams at the given index.
-
setElementaryStreams
List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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:
index- The index to set the value at.value- The elementaryStreams to set.- Returns:
- This builder for chaining.
-
addElementaryStreams
List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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:
value- The elementaryStreams to add.- Returns:
- This builder for chaining.
-
addAllElementaryStreams
List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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:
values- The elementaryStreams to add.- Returns:
- This builder for chaining.
-
clearElementaryStreams
List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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:
- This builder for chaining.
-
addElementaryStreamsBytes
List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s 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:
value- The bytes of the elementaryStreams to add.- Returns:
- This builder for chaining.
-
hasSegmentSettings
public boolean hasSegmentSettings()Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;- Specified by:
hasSegmentSettingsin interfaceMuxStreamOrBuilder- Returns:
- Whether the segmentSettings field is set.
-
getSegmentSettings
Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;- Specified by:
getSegmentSettingsin interfaceMuxStreamOrBuilder- Returns:
- The segmentSettings.
-
setSegmentSettings
Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5; -
setSegmentSettings
Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5; -
mergeSegmentSettings
Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5; -
clearSegmentSettings
Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5; -
getSegmentSettingsBuilder
Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5; -
getSegmentSettingsOrBuilder
Segment settings for `fmp4` and `ts`.
.google.cloud.video.livestream.v1.SegmentSettings segment_settings = 5;- Specified by:
getSegmentSettingsOrBuilderin interfaceMuxStreamOrBuilder
-
getEncryptionId
Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
string encryption_id = 6;- Specified by:
getEncryptionIdin interfaceMuxStreamOrBuilder- Returns:
- The encryptionId.
-
getEncryptionIdBytes
public com.google.protobuf.ByteString getEncryptionIdBytes()Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
string encryption_id = 6;- Specified by:
getEncryptionIdBytesin interfaceMuxStreamOrBuilder- Returns:
- The bytes for encryptionId.
-
setEncryptionId
Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
string encryption_id = 6;- Parameters:
value- The encryptionId to set.- Returns:
- This builder for chaining.
-
clearEncryptionId
Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
string encryption_id = 6;- Returns:
- This builder for chaining.
-
setEncryptionIdBytes
Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
string encryption_id = 6;- Parameters:
value- The bytes for encryptionId to set.- Returns:
- This builder for chaining.
-