Class DistributionStream.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DistributionStream.Builder>
com.google.cloud.video.livestream.v1.DistributionStream.Builder
All Implemented Interfaces:
DistributionStreamOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DistributionStream

public static final class DistributionStream.Builder extends com.google.protobuf.GeneratedMessage.Builder<DistributionStream.Builder> implements DistributionStreamOrBuilder
 Multiplexing settings for output streams used in
 [Distribution][google.cloud.video.livestream.v1.Distribution].
 
Protobuf type google.cloud.video.livestream.v1.DistributionStream
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DistributionStream.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DistributionStream.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DistributionStream.Builder>
    • getDefaultInstanceForType

      public DistributionStream getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DistributionStream build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DistributionStream buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DistributionStream.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistributionStream.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DistributionStream.Builder>
    • mergeFrom

      public DistributionStream.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistributionStream.Builder>
      Throws:
      IOException
    • getKey

      public String getKey()
       Required. A unique key for this distribution 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKey in interface DistributionStreamOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Required. A unique key for this distribution 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyBytes in interface DistributionStreamOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public DistributionStream.Builder setKey(String value)
       Required. A unique key for this distribution 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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public DistributionStream.Builder clearKey()
       Required. A unique key for this distribution 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 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public DistributionStream.Builder setKeyBytes(com.google.protobuf.ByteString value)
       Required. A unique key for this distribution 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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getContainer

      public String getContainer()
       Required. The container format.
      
       Supported container formats:
      
       - `ts`, must contain exactly one audio stream and up to one video stream.
       - `flv`, must contain at most one audio stream and at most one video
       stream.
       
      string container = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContainer in interface DistributionStreamOrBuilder
      Returns:
      The container.
    • getContainerBytes

      public com.google.protobuf.ByteString getContainerBytes()
       Required. The container format.
      
       Supported container formats:
      
       - `ts`, must contain exactly one audio stream and up to one video stream.
       - `flv`, must contain at most one audio stream and at most one video
       stream.
       
      string container = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContainerBytes in interface DistributionStreamOrBuilder
      Returns:
      The bytes for container.
    • setContainer

      public DistributionStream.Builder setContainer(String value)
       Required. The container format.
      
       Supported container formats:
      
       - `ts`, must contain exactly one audio stream and up to one video stream.
       - `flv`, must contain at most one audio stream and at most one video
       stream.
       
      string container = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The container to set.
      Returns:
      This builder for chaining.
    • clearContainer

      public DistributionStream.Builder clearContainer()
       Required. The container format.
      
       Supported container formats:
      
       - `ts`, must contain exactly one audio stream and up to one video stream.
       - `flv`, must contain at most one audio stream and at most one video
       stream.
       
      string container = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setContainerBytes

      public DistributionStream.Builder setContainerBytes(com.google.protobuf.ByteString value)
       Required. The container format.
      
       Supported container formats:
      
       - `ts`, must contain exactly one audio stream and up to one video stream.
       - `flv`, must contain at most one audio stream and at most one video
       stream.
       
      string container = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for container to set.
      Returns:
      This builder for chaining.
    • getElementaryStreamsList

      public com.google.protobuf.ProtocolStringList getElementaryStreamsList()
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getElementaryStreamsList in interface DistributionStreamOrBuilder
      Returns:
      A list containing the elementaryStreams.
    • getElementaryStreamsCount

      public int getElementaryStreamsCount()
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getElementaryStreamsCount in interface DistributionStreamOrBuilder
      Returns:
      The count of elementaryStreams.
    • getElementaryStreams

      public String getElementaryStreams(int index)
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getElementaryStreams in interface DistributionStreamOrBuilder
      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)
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getElementaryStreamsBytes in interface DistributionStreamOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the elementaryStreams at the given index.
    • setElementaryStreams

      public DistributionStream.Builder setElementaryStreams(int index, String value)
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The elementaryStreams to set.
      Returns:
      This builder for chaining.
    • addElementaryStreams

      public DistributionStream.Builder addElementaryStreams(String value)
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The elementaryStreams to add.
      Returns:
      This builder for chaining.
    • addAllElementaryStreams

      public DistributionStream.Builder addAllElementaryStreams(Iterable<String> values)
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The elementaryStreams to add.
      Returns:
      This builder for chaining.
    • clearElementaryStreams

      public DistributionStream.Builder clearElementaryStreams()
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addElementaryStreamsBytes

      public DistributionStream.Builder addElementaryStreamsBytes(com.google.protobuf.ByteString value)
       Required. List of `ElementaryStream`
       [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed
       in this stream. Must contain at least one audio stream and up to one video
       stream.
       
      repeated string elementary_streams = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the elementaryStreams to add.
      Returns:
      This builder for chaining.