Class AudioFormat.Builder

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

public static final class AudioFormat.Builder extends com.google.protobuf.GeneratedMessage.Builder<AudioFormat.Builder> implements AudioFormatOrBuilder
 Properties of the audio format.
 
Protobuf type google.cloud.video.livestream.v1.AudioFormat
  • Method Summary

    Modifier and Type
    Method
    Description
    A list of channel names specifying the layout of the audio channels.
    A list of channel names specifying the layout of the audio channels.
    addChannelLayoutBytes(com.google.protobuf.ByteString value)
    A list of channel names specifying the layout of the audio channels.
     
     
     
    The number of audio channels.
    A list of channel names specifying the layout of the audio channels.
    Audio codec used in this audio stream.
    int
    The number of audio channels.
    getChannelLayout(int index)
    A list of channel names specifying the layout of the audio channels.
    com.google.protobuf.ByteString
    A list of channel names specifying the layout of the audio channels.
    int
    A list of channel names specifying the layout of the audio channels.
    com.google.protobuf.ProtocolStringList
    A list of channel names specifying the layout of the audio channels.
    Audio codec used in this audio stream.
    com.google.protobuf.ByteString
    Audio codec used in this audio stream.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setChannelCount(int value)
    The number of audio channels.
    setChannelLayout(int index, String value)
    A list of channel names specifying the layout of the audio channels.
    Audio codec used in this audio stream.
    setCodecBytes(com.google.protobuf.ByteString value)
    Audio codec used in this audio stream.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AudioFormat.Builder>
    • clear

      public AudioFormat.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<AudioFormat.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<AudioFormat.Builder>
    • getDefaultInstanceForType

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

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

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

      public AudioFormat.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<AudioFormat.Builder>
    • mergeFrom

      public AudioFormat.Builder mergeFrom(AudioFormat other)
    • isInitialized

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

      public AudioFormat.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<AudioFormat.Builder>
      Throws:
      IOException
    • getCodec

      public String getCodec()
       Audio codec used in this audio stream.
       
      string codec = 1;
      Specified by:
      getCodec in interface AudioFormatOrBuilder
      Returns:
      The codec.
    • getCodecBytes

      public com.google.protobuf.ByteString getCodecBytes()
       Audio codec used in this audio stream.
       
      string codec = 1;
      Specified by:
      getCodecBytes in interface AudioFormatOrBuilder
      Returns:
      The bytes for codec.
    • setCodec

      public AudioFormat.Builder setCodec(String value)
       Audio codec used in this audio stream.
       
      string codec = 1;
      Parameters:
      value - The codec to set.
      Returns:
      This builder for chaining.
    • clearCodec

      public AudioFormat.Builder clearCodec()
       Audio codec used in this audio stream.
       
      string codec = 1;
      Returns:
      This builder for chaining.
    • setCodecBytes

      public AudioFormat.Builder setCodecBytes(com.google.protobuf.ByteString value)
       Audio codec used in this audio stream.
       
      string codec = 1;
      Parameters:
      value - The bytes for codec to set.
      Returns:
      This builder for chaining.
    • getChannelCount

      public int getChannelCount()
       The number of audio channels.
       
      int32 channel_count = 2;
      Specified by:
      getChannelCount in interface AudioFormatOrBuilder
      Returns:
      The channelCount.
    • setChannelCount

      public AudioFormat.Builder setChannelCount(int value)
       The number of audio channels.
       
      int32 channel_count = 2;
      Parameters:
      value - The channelCount to set.
      Returns:
      This builder for chaining.
    • clearChannelCount

      public AudioFormat.Builder clearChannelCount()
       The number of audio channels.
       
      int32 channel_count = 2;
      Returns:
      This builder for chaining.
    • getChannelLayoutList

      public com.google.protobuf.ProtocolStringList getChannelLayoutList()
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Specified by:
      getChannelLayoutList in interface AudioFormatOrBuilder
      Returns:
      A list containing the channelLayout.
    • getChannelLayoutCount

      public int getChannelLayoutCount()
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Specified by:
      getChannelLayoutCount in interface AudioFormatOrBuilder
      Returns:
      The count of channelLayout.
    • getChannelLayout

      public String getChannelLayout(int index)
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Specified by:
      getChannelLayout in interface AudioFormatOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The channelLayout at the given index.
    • getChannelLayoutBytes

      public com.google.protobuf.ByteString getChannelLayoutBytes(int index)
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Specified by:
      getChannelLayoutBytes in interface AudioFormatOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the channelLayout at the given index.
    • setChannelLayout

      public AudioFormat.Builder setChannelLayout(int index, String value)
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Parameters:
      index - The index to set the value at.
      value - The channelLayout to set.
      Returns:
      This builder for chaining.
    • addChannelLayout

      public AudioFormat.Builder addChannelLayout(String value)
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Parameters:
      value - The channelLayout to add.
      Returns:
      This builder for chaining.
    • addAllChannelLayout

      public AudioFormat.Builder addAllChannelLayout(Iterable<String> values)
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Parameters:
      values - The channelLayout to add.
      Returns:
      This builder for chaining.
    • clearChannelLayout

      public AudioFormat.Builder clearChannelLayout()
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Returns:
      This builder for chaining.
    • addChannelLayoutBytes

      public AudioFormat.Builder addChannelLayoutBytes(com.google.protobuf.ByteString value)
       A list of channel names specifying the layout of the audio channels.
       
      repeated string channel_layout = 3;
      Parameters:
      value - The bytes of the channelLayout to add.
      Returns:
      This builder for chaining.