Class ExplicitDecodingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExplicitDecodingConfig.Builder>
com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder
All Implemented Interfaces:
ExplicitDecodingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExplicitDecodingConfig

public static final class ExplicitDecodingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExplicitDecodingConfig.Builder> implements ExplicitDecodingConfigOrBuilder
 Explicitly specified decoding parameters.
 
Protobuf type google.cloud.speech.v2.ExplicitDecodingConfig
  • 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<ExplicitDecodingConfig.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<ExplicitDecodingConfig.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<ExplicitDecodingConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ExplicitDecodingConfig.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<ExplicitDecodingConfig.Builder>
      Throws:
      IOException
    • getEncodingValue

      public int getEncodingValue()
       Required. Encoding of the audio data sent for recognition.
       
      .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEncodingValue in interface ExplicitDecodingConfigOrBuilder
      Returns:
      The enum numeric value on the wire for encoding.
    • setEncodingValue

      public ExplicitDecodingConfig.Builder setEncodingValue(int value)
       Required. Encoding of the audio data sent for recognition.
       
      .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for encoding to set.
      Returns:
      This builder for chaining.
    • getEncoding

       Required. Encoding of the audio data sent for recognition.
       
      .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEncoding in interface ExplicitDecodingConfigOrBuilder
      Returns:
      The encoding.
    • setEncoding

       Required. Encoding of the audio data sent for recognition.
       
      .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The encoding to set.
      Returns:
      This builder for chaining.
    • clearEncoding

      public ExplicitDecodingConfig.Builder clearEncoding()
       Required. Encoding of the audio data sent for recognition.
       
      .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getSampleRateHertz

      public int getSampleRateHertz()
       Optional. Sample rate in Hertz of the audio data sent for recognition.
       Valid values are: 8000-48000, and 16000 is optimal. For best results, set
       the sampling rate of the audio source to 16000 Hz. If that's not possible,
       use the native sample rate of the audio source (instead of resampling).
       Note that this field is marked as OPTIONAL for backward compatibility
       reasons. It is (and has always been) effectively REQUIRED.
       
      int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSampleRateHertz in interface ExplicitDecodingConfigOrBuilder
      Returns:
      The sampleRateHertz.
    • setSampleRateHertz

      public ExplicitDecodingConfig.Builder setSampleRateHertz(int value)
       Optional. Sample rate in Hertz of the audio data sent for recognition.
       Valid values are: 8000-48000, and 16000 is optimal. For best results, set
       the sampling rate of the audio source to 16000 Hz. If that's not possible,
       use the native sample rate of the audio source (instead of resampling).
       Note that this field is marked as OPTIONAL for backward compatibility
       reasons. It is (and has always been) effectively REQUIRED.
       
      int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sampleRateHertz to set.
      Returns:
      This builder for chaining.
    • clearSampleRateHertz

      public ExplicitDecodingConfig.Builder clearSampleRateHertz()
       Optional. Sample rate in Hertz of the audio data sent for recognition.
       Valid values are: 8000-48000, and 16000 is optimal. For best results, set
       the sampling rate of the audio source to 16000 Hz. If that's not possible,
       use the native sample rate of the audio source (instead of resampling).
       Note that this field is marked as OPTIONAL for backward compatibility
       reasons. It is (and has always been) effectively REQUIRED.
       
      int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getAudioChannelCount

      public int getAudioChannelCount()
       Optional. Number of channels present in the audio data sent for
       recognition. Note that this field is marked as OPTIONAL for backward
       compatibility reasons. It is (and has always been) effectively REQUIRED.
      
       The maximum allowed value is 8.
       
      int32 audio_channel_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAudioChannelCount in interface ExplicitDecodingConfigOrBuilder
      Returns:
      The audioChannelCount.
    • setAudioChannelCount

      public ExplicitDecodingConfig.Builder setAudioChannelCount(int value)
       Optional. Number of channels present in the audio data sent for
       recognition. Note that this field is marked as OPTIONAL for backward
       compatibility reasons. It is (and has always been) effectively REQUIRED.
      
       The maximum allowed value is 8.
       
      int32 audio_channel_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The audioChannelCount to set.
      Returns:
      This builder for chaining.
    • clearAudioChannelCount

      public ExplicitDecodingConfig.Builder clearAudioChannelCount()
       Optional. Number of channels present in the audio data sent for
       recognition. Note that this field is marked as OPTIONAL for backward
       compatibility reasons. It is (and has always been) effectively REQUIRED.
      
       The maximum allowed value is 8.
       
      int32 audio_channel_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.