Class MuxStream

  • All Implemented Interfaces:
    MuxStreamOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class MuxStream
    extends com.google.protobuf.GeneratedMessageV3
    implements MuxStreamOrBuilder
     Multiplexing settings for output stream.
     
    Protobuf type google.cloud.video.transcoder.v1.MuxStream
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MuxStream.Builder
      Multiplexing settings for output stream.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getKey

        public String getKey()
         A unique key for this multiplexed stream. HLS media manifests will be
         named `MuxStream.key` with the `.m3u8` extension suffix.
         
        string key = 1;
        Specified by:
        getKey in interface MuxStreamOrBuilder
        Returns:
        The key.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         A unique key for this multiplexed stream. HLS media manifests will be
         named `MuxStream.key` with the `.m3u8` extension suffix.
         
        string key = 1;
        Specified by:
        getKeyBytes in interface MuxStreamOrBuilder
        Returns:
        The bytes for key.
      • getFileName

        public String getFileName()
         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;
        Specified by:
        getFileName in interface MuxStreamOrBuilder
        Returns:
        The fileName.
      • getFileNameBytes

        public com.google.protobuf.ByteString getFileNameBytes()
         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;
        Specified by:
        getFileNameBytes in interface MuxStreamOrBuilder
        Returns:
        The bytes for fileName.
      • getContainer

        public String getContainer()
         The container format. The default is `mp4`
        
         Supported container formats:
        
         - `ts`
         - `fmp4`- the corresponding file extension is `.m4s`
         - `mp4`
         - `vtt`
        
         See also:
         [Supported input and output
         formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)
         
        string container = 3;
        Specified by:
        getContainer in interface MuxStreamOrBuilder
        Returns:
        The container.
      • getContainerBytes

        public com.google.protobuf.ByteString getContainerBytes()
         The container format. The default is `mp4`
        
         Supported container formats:
        
         - `ts`
         - `fmp4`- the corresponding file extension is `.m4s`
         - `mp4`
         - `vtt`
        
         See also:
         [Supported input and output
         formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)
         
        string container = 3;
        Specified by:
        getContainerBytes in interface MuxStreamOrBuilder
        Returns:
        The bytes for container.
      • getElementaryStreamsList

        public com.google.protobuf.ProtocolStringList getElementaryStreamsList()
         List of `ElementaryStream.key`s multiplexed in this stream.
         
        repeated string elementary_streams = 4;
        Specified by:
        getElementaryStreamsList in interface MuxStreamOrBuilder
        Returns:
        A list containing the elementaryStreams.
      • getElementaryStreamsCount

        public int getElementaryStreamsCount()
         List of `ElementaryStream.key`s multiplexed in this stream.
         
        repeated string elementary_streams = 4;
        Specified by:
        getElementaryStreamsCount in interface MuxStreamOrBuilder
        Returns:
        The count of elementaryStreams.
      • getElementaryStreams

        public String getElementaryStreams​(int index)
         List of `ElementaryStream.key`s multiplexed in this stream.
         
        repeated string elementary_streams = 4;
        Specified by:
        getElementaryStreams in interface MuxStreamOrBuilder
        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`s multiplexed in this stream.
         
        repeated string elementary_streams = 4;
        Specified by:
        getElementaryStreamsBytes in interface MuxStreamOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the elementaryStreams at the given index.
      • hasSegmentSettings

        public boolean hasSegmentSettings()
         Segment settings for `ts`, `fmp4` and `vtt`.
         
        .google.cloud.video.transcoder.v1.SegmentSettings segment_settings = 5;
        Specified by:
        hasSegmentSettings in interface MuxStreamOrBuilder
        Returns:
        Whether the segmentSettings field is set.
      • getSegmentSettings

        public SegmentSettings getSegmentSettings()
         Segment settings for `ts`, `fmp4` and `vtt`.
         
        .google.cloud.video.transcoder.v1.SegmentSettings segment_settings = 5;
        Specified by:
        getSegmentSettings in interface MuxStreamOrBuilder
        Returns:
        The segmentSettings.
      • getEncryptionId

        public String getEncryptionId()
         Identifier of the encryption configuration to use. If omitted, output will
         be unencrypted.
         
        string encryption_id = 7;
        Specified by:
        getEncryptionId in interface MuxStreamOrBuilder
        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 = 7;
        Specified by:
        getEncryptionIdBytes in interface MuxStreamOrBuilder
        Returns:
        The bytes for encryptionId.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MuxStream parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MuxStream parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MuxStream parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MuxStream parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MuxStream parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MuxStream parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MuxStream parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

        public MuxStream.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MuxStream.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected MuxStream.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static MuxStream getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<MuxStream> parser()
      • getParserForType

        public com.google.protobuf.Parser<MuxStream> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MuxStream getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder