public static final class RecognitionConfig.Builder extends GeneratedMessageV3.Builder<RecognitionConfig.Builder> implements RecognitionConfigOrBuilder
   
   Provides information to the recognizer that specifies how to process the
 request.
 Protobuf type google.cloud.speech.v1beta1.RecognitionConfig
 
  
  
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  
  Methods
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value)
  
    public RecognitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
   
  
  
  Overrides
  
  
  build()
  
    public RecognitionConfig build()
   
  
  
  buildPartial()
  
    public RecognitionConfig buildPartial()
   
  
  
  clear()
  
    public RecognitionConfig.Builder clear()
   
  
  Overrides
  
  
  clearEncoding()
  
    public RecognitionConfig.Builder clearEncoding()
   
   Required Encoding of audio data sent in all RecognitionAudio messages.
 .google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;
 
  
  
  clearField(Descriptors.FieldDescriptor field)
  
    public RecognitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
   
  
  
  Overrides
  
  
  clearLanguageCode()
  
    public RecognitionConfig.Builder clearLanguageCode()
   
  
  
  
  clearMaxAlternatives()
  
    public RecognitionConfig.Builder clearMaxAlternatives()
   
   Optional Maximum number of recognition hypotheses to be returned.
 Specifically, the maximum number of SpeechRecognitionAlternative messages
 within each SpeechRecognitionResult.
 The server may return fewer than max_alternatives.
 Valid values are 0-30. A value of 0 or 1 will return a maximum of
 one. If omitted, will return a maximum of one.
 int32 max_alternatives = 4;
 
  
  
  clearOneof(Descriptors.OneofDescriptor oneof)
  
    public RecognitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
   
  
  
  Overrides
  
  
  clearProfanityFilter()
  
    public RecognitionConfig.Builder clearProfanityFilter()
   
   Optional If set to true, the server will attempt to filter out
 profanities, replacing all but the initial character in each filtered word
 with asterisks, e.g. "f***". If set to false or omitted, profanities
 won't be filtered out.
 bool profanity_filter = 5;
 
  
  
  clearSampleRate()
  
    public RecognitionConfig.Builder clearSampleRate()
   
   Required Sample rate in Hertz of the audio data sent in all
 RecognitionAudio messages. 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).
 int32 sample_rate = 2;
 
  
  
  clearSpeechContext()
  
    public RecognitionConfig.Builder clearSpeechContext()
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  clone()
  
    public RecognitionConfig.Builder clone()
   
  
  Overrides
  
  
  getDefaultInstanceForType()
  
    public RecognitionConfig getDefaultInstanceForType()
   
  
  
  getDescriptorForType()
  
    public Descriptors.Descriptor getDescriptorForType()
   
  
  Overrides
  
  
  getEncoding()
  
    public RecognitionConfig.AudioEncoding getEncoding()
   
   Required Encoding of audio data sent in all RecognitionAudio messages.
 .google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;
 
  
  
  getEncodingValue()
  
    public int getEncodingValue()
   
   Required Encoding of audio data sent in all RecognitionAudio messages.
 .google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  getLanguageCode()
  
    public String getLanguageCode()
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
         | 
      
    
  
  
  getLanguageCodeBytes()
  
    public ByteString getLanguageCodeBytes()
   
  
  
  
  getMaxAlternatives()
  
    public int getMaxAlternatives()
   
   Optional Maximum number of recognition hypotheses to be returned.
 Specifically, the maximum number of SpeechRecognitionAlternative messages
 within each SpeechRecognitionResult.
 The server may return fewer than max_alternatives.
 Valid values are 0-30. A value of 0 or 1 will return a maximum of
 one. If omitted, will return a maximum of one.
 int32 max_alternatives = 4;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  getProfanityFilter()
  
    public boolean getProfanityFilter()
   
   Optional If set to true, the server will attempt to filter out
 profanities, replacing all but the initial character in each filtered word
 with asterisks, e.g. "f***". If set to false or omitted, profanities
 won't be filtered out.
 bool profanity_filter = 5;
 
  
  
  getSampleRate()
  
    public int getSampleRate()
   
   Required Sample rate in Hertz of the audio data sent in all
 RecognitionAudio messages. 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).
 int32 sample_rate = 2;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  getSpeechContext()
  
    public SpeechContext getSpeechContext()
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  getSpeechContextBuilder()
  
    public SpeechContext.Builder getSpeechContextBuilder()
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  getSpeechContextOrBuilder()
  
    public SpeechContextOrBuilder getSpeechContextOrBuilder()
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  hasSpeechContext()
  
    public boolean hasSpeechContext()
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  
  Overrides
  
  
  mergeFrom(RecognitionConfig other)
  
    public RecognitionConfig.Builder mergeFrom(RecognitionConfig other)
   
  
  
  
  
  
    public RecognitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  Overrides
  
  
  
  mergeFrom(Message other)
  
    public RecognitionConfig.Builder mergeFrom(Message other)
   
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        other | 
        Message
  | 
      
    
  
  
  Overrides
  
  
  mergeSpeechContext(SpeechContext value)
  
    public RecognitionConfig.Builder mergeSpeechContext(SpeechContext value)
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  
  mergeUnknownFields(UnknownFieldSet unknownFields)
  
    public final RecognitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
   
  
  
  Overrides
  
  
  setEncoding(RecognitionConfig.AudioEncoding value)
  
    public RecognitionConfig.Builder setEncoding(RecognitionConfig.AudioEncoding value)
   
   Required Encoding of audio data sent in all RecognitionAudio messages.
 .google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;
 
  
  
  
  setEncodingValue(int value)
  
    public RecognitionConfig.Builder setEncodingValue(int value)
   
   Required Encoding of audio data sent in all RecognitionAudio messages.
 .google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        value | 
        int
  | 
      
    
  
  
  
  setField(Descriptors.FieldDescriptor field, Object value)
  
    public RecognitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
   
  
  
  Overrides
  
  
  setLanguageCode(String value)
  
    public RecognitionConfig.Builder setLanguageCode(String value)
   
  
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        value | 
        String
  | 
      
    
  
  
  
  setLanguageCodeBytes(ByteString value)
  
    public RecognitionConfig.Builder setLanguageCodeBytes(ByteString value)
   
  
  
  
  
  setMaxAlternatives(int value)
  
    public RecognitionConfig.Builder setMaxAlternatives(int value)
   
   Optional Maximum number of recognition hypotheses to be returned.
 Specifically, the maximum number of SpeechRecognitionAlternative messages
 within each SpeechRecognitionResult.
 The server may return fewer than max_alternatives.
 Valid values are 0-30. A value of 0 or 1 will return a maximum of
 one. If omitted, will return a maximum of one.
 int32 max_alternatives = 4;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        value | 
        int
  | 
      
    
  
  
  
  setProfanityFilter(boolean value)
  
    public RecognitionConfig.Builder setProfanityFilter(boolean value)
   
   Optional If set to true, the server will attempt to filter out
 profanities, replacing all but the initial character in each filtered word
 with asterisks, e.g. "f***". If set to false or omitted, profanities
 won't be filtered out.
 bool profanity_filter = 5;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        value | 
        boolean
  | 
      
    
  
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
  
    public RecognitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
   
  
  
  Overrides
  
  
  setSampleRate(int value)
  
    public RecognitionConfig.Builder setSampleRate(int value)
   
   Required Sample rate in Hertz of the audio data sent in all
 RecognitionAudio messages. 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).
 int32 sample_rate = 2;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        value | 
        int
  | 
      
    
  
  
  
  setSpeechContext(SpeechContext value)
  
    public RecognitionConfig.Builder setSpeechContext(SpeechContext value)
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  
  setSpeechContext(SpeechContext.Builder builderForValue)
  
    public RecognitionConfig.Builder setSpeechContext(SpeechContext.Builder builderForValue)
   
   Optional A means to provide context to assist the speech recognition.
 .google.cloud.speech.v1beta1.SpeechContext speech_context = 6;
 
  
  
  
  setUnknownFields(UnknownFieldSet unknownFields)
  
    public final RecognitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
   
  
  
  Overrides