Class ExplicitDecodingConfig.Builder

    • Method Detail

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ExplicitDecodingConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitDecodingConfig.Builder>
      • clearField

        public ExplicitDecodingConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitDecodingConfig.Builder>
      • clearOneof

        public ExplicitDecodingConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitDecodingConfig.Builder>
      • setRepeatedField

        public ExplicitDecodingConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitDecodingConfig.Builder>
      • addRepeatedField

        public ExplicitDecodingConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitDecodingConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setEncoding

        public ExplicitDecodingConfig.Builder setEncoding​(ExplicitDecodingConfig.AudioEncoding 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 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()
         Sample rate in Hertz of the audio data sent for recognition. Valid
         values are: 8000-48000. 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 re-sampling).
         Supported for the following encodings:
        
         * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
        
         * MULAW: Headerless 8-bit companded mulaw samples.
        
         * ALAW: Headerless 8-bit companded alaw samples.
         
        int32 sample_rate_hertz = 2;
        Specified by:
        getSampleRateHertz in interface ExplicitDecodingConfigOrBuilder
        Returns:
        The sampleRateHertz.
      • setSampleRateHertz

        public ExplicitDecodingConfig.Builder setSampleRateHertz​(int value)
         Sample rate in Hertz of the audio data sent for recognition. Valid
         values are: 8000-48000. 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 re-sampling).
         Supported for the following encodings:
        
         * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
        
         * MULAW: Headerless 8-bit companded mulaw samples.
        
         * ALAW: Headerless 8-bit companded alaw samples.
         
        int32 sample_rate_hertz = 2;
        Parameters:
        value - The sampleRateHertz to set.
        Returns:
        This builder for chaining.
      • clearSampleRateHertz

        public ExplicitDecodingConfig.Builder clearSampleRateHertz()
         Sample rate in Hertz of the audio data sent for recognition. Valid
         values are: 8000-48000. 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 re-sampling).
         Supported for the following encodings:
        
         * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
        
         * MULAW: Headerless 8-bit companded mulaw samples.
        
         * ALAW: Headerless 8-bit companded alaw samples.
         
        int32 sample_rate_hertz = 2;
        Returns:
        This builder for chaining.
      • getAudioChannelCount

        public int getAudioChannelCount()
         Number of channels present in the audio data sent for recognition.
         Supported for the following encodings:
        
         * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
        
         * MULAW: Headerless 8-bit companded mulaw samples.
        
         * ALAW: Headerless 8-bit companded alaw samples.
        
         The maximum allowed value is 8.
         
        int32 audio_channel_count = 3;
        Specified by:
        getAudioChannelCount in interface ExplicitDecodingConfigOrBuilder
        Returns:
        The audioChannelCount.
      • setAudioChannelCount

        public ExplicitDecodingConfig.Builder setAudioChannelCount​(int value)
         Number of channels present in the audio data sent for recognition.
         Supported for the following encodings:
        
         * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
        
         * MULAW: Headerless 8-bit companded mulaw samples.
        
         * ALAW: Headerless 8-bit companded alaw samples.
        
         The maximum allowed value is 8.
         
        int32 audio_channel_count = 3;
        Parameters:
        value - The audioChannelCount to set.
        Returns:
        This builder for chaining.
      • clearAudioChannelCount

        public ExplicitDecodingConfig.Builder clearAudioChannelCount()
         Number of channels present in the audio data sent for recognition.
         Supported for the following encodings:
        
         * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
        
         * MULAW: Headerless 8-bit companded mulaw samples.
        
         * ALAW: Headerless 8-bit companded alaw samples.
        
         The maximum allowed value is 8.
         
        int32 audio_channel_count = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ExplicitDecodingConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitDecodingConfig.Builder>
      • mergeUnknownFields

        public final ExplicitDecodingConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitDecodingConfig.Builder>