Class RecognitionConfig.Builder

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

public static final class RecognitionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RecognitionConfig.Builder> implements RecognitionConfigOrBuilder
 Provides information to the Recognizer that specifies how to process the
 recognition request.
 
Protobuf type google.cloud.speech.v2.RecognitionConfig
  • 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<RecognitionConfig.Builder>
    • clear

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

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

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

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

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

      public RecognitionConfig.Builder mergeFrom(RecognitionConfig other)
    • isInitialized

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

      public RecognitionConfig.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<RecognitionConfig.Builder>
      Throws:
      IOException
    • getDecodingConfigCase

      public RecognitionConfig.DecodingConfigCase getDecodingConfigCase()
      Specified by:
      getDecodingConfigCase in interface RecognitionConfigOrBuilder
    • clearDecodingConfig

      public RecognitionConfig.Builder clearDecodingConfig()
    • hasAutoDecodingConfig

      public boolean hasAutoDecodingConfig()
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      Specified by:
      hasAutoDecodingConfig in interface RecognitionConfigOrBuilder
      Returns:
      Whether the autoDecodingConfig field is set.
    • getAutoDecodingConfig

      public AutoDetectDecodingConfig getAutoDecodingConfig()
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      Specified by:
      getAutoDecodingConfig in interface RecognitionConfigOrBuilder
      Returns:
      The autoDecodingConfig.
    • setAutoDecodingConfig

      public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig value)
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    • setAutoDecodingConfig

      public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue)
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    • mergeAutoDecodingConfig

      public RecognitionConfig.Builder mergeAutoDecodingConfig(AutoDetectDecodingConfig value)
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    • clearAutoDecodingConfig

      public RecognitionConfig.Builder clearAutoDecodingConfig()
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    • getAutoDecodingConfigBuilder

      public AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder()
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    • getAutoDecodingConfigOrBuilder

      public AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder()
       Automatically detect decoding parameters.
       Preferred for supported formats.
       
      .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      Specified by:
      getAutoDecodingConfigOrBuilder in interface RecognitionConfigOrBuilder
    • hasExplicitDecodingConfig

      public boolean hasExplicitDecodingConfig()
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      Specified by:
      hasExplicitDecodingConfig in interface RecognitionConfigOrBuilder
      Returns:
      Whether the explicitDecodingConfig field is set.
    • getExplicitDecodingConfig

      public ExplicitDecodingConfig getExplicitDecodingConfig()
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      Specified by:
      getExplicitDecodingConfig in interface RecognitionConfigOrBuilder
      Returns:
      The explicitDecodingConfig.
    • setExplicitDecodingConfig

      public RecognitionConfig.Builder setExplicitDecodingConfig(ExplicitDecodingConfig value)
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    • setExplicitDecodingConfig

      public RecognitionConfig.Builder setExplicitDecodingConfig(ExplicitDecodingConfig.Builder builderForValue)
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    • mergeExplicitDecodingConfig

      public RecognitionConfig.Builder mergeExplicitDecodingConfig(ExplicitDecodingConfig value)
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    • clearExplicitDecodingConfig

      public RecognitionConfig.Builder clearExplicitDecodingConfig()
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    • getExplicitDecodingConfigBuilder

      public ExplicitDecodingConfig.Builder getExplicitDecodingConfigBuilder()
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    • getExplicitDecodingConfigOrBuilder

      public ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder()
       Explicitly specified decoding parameters.
       Required if using headerless PCM audio (linear16, mulaw, alaw).
       
      .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      Specified by:
      getExplicitDecodingConfigOrBuilder in interface RecognitionConfigOrBuilder
    • getModel

      public String getModel()
       Optional. Which model to use for recognition requests. Select the model
       best suited to your domain to get best results.
      
       Guidance for choosing which model to use can be found in the [Transcription
       Models
       Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
       and the models supported in each region can be found in the [Table Of
       Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
       
      string model = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModel in interface RecognitionConfigOrBuilder
      Returns:
      The model.
    • getModelBytes

      public com.google.protobuf.ByteString getModelBytes()
       Optional. Which model to use for recognition requests. Select the model
       best suited to your domain to get best results.
      
       Guidance for choosing which model to use can be found in the [Transcription
       Models
       Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
       and the models supported in each region can be found in the [Table Of
       Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
       
      string model = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelBytes in interface RecognitionConfigOrBuilder
      Returns:
      The bytes for model.
    • setModel

      public RecognitionConfig.Builder setModel(String value)
       Optional. Which model to use for recognition requests. Select the model
       best suited to your domain to get best results.
      
       Guidance for choosing which model to use can be found in the [Transcription
       Models
       Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
       and the models supported in each region can be found in the [Table Of
       Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
       
      string model = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The model to set.
      Returns:
      This builder for chaining.
    • clearModel

      public RecognitionConfig.Builder clearModel()
       Optional. Which model to use for recognition requests. Select the model
       best suited to your domain to get best results.
      
       Guidance for choosing which model to use can be found in the [Transcription
       Models
       Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
       and the models supported in each region can be found in the [Table Of
       Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
       
      string model = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setModelBytes

      public RecognitionConfig.Builder setModelBytes(com.google.protobuf.ByteString value)
       Optional. Which model to use for recognition requests. Select the model
       best suited to your domain to get best results.
      
       Guidance for choosing which model to use can be found in the [Transcription
       Models
       Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
       and the models supported in each region can be found in the [Table Of
       Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
       
      string model = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for model to set.
      Returns:
      This builder for chaining.
    • getLanguageCodesList

      public com.google.protobuf.ProtocolStringList getLanguageCodesList()
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodesList in interface RecognitionConfigOrBuilder
      Returns:
      A list containing the languageCodes.
    • getLanguageCodesCount

      public int getLanguageCodesCount()
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodesCount in interface RecognitionConfigOrBuilder
      Returns:
      The count of languageCodes.
    • getLanguageCodes

      public String getLanguageCodes(int index)
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodes in interface RecognitionConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The languageCodes at the given index.
    • getLanguageCodesBytes

      public com.google.protobuf.ByteString getLanguageCodesBytes(int index)
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodesBytes in interface RecognitionConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the languageCodes at the given index.
    • setLanguageCodes

      public RecognitionConfig.Builder setLanguageCodes(int index, String value)
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The languageCodes to set.
      Returns:
      This builder for chaining.
    • addLanguageCodes

      public RecognitionConfig.Builder addLanguageCodes(String value)
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCodes to add.
      Returns:
      This builder for chaining.
    • addAllLanguageCodes

      public RecognitionConfig.Builder addAllLanguageCodes(Iterable<String> values)
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The languageCodes to add.
      Returns:
      This builder for chaining.
    • clearLanguageCodes

      public RecognitionConfig.Builder clearLanguageCodes()
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addLanguageCodesBytes

      public RecognitionConfig.Builder addLanguageCodesBytes(com.google.protobuf.ByteString value)
       Optional. The language of the supplied audio as a
       [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
       Language tags are normalized to BCP-47 before they are used eg "en-us"
       becomes "en-US".
      
       Supported languages for each model are listed in the [Table of Supported
       Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
      
       If additional languages are provided, recognition result will contain
       recognition in the most likely language detected. The recognition result
       will include the language tag of the language detected in the audio.
       
      repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the languageCodes to add.
      Returns:
      This builder for chaining.
    • hasFeatures

      public boolean hasFeatures()
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
      Specified by:
      hasFeatures in interface RecognitionConfigOrBuilder
      Returns:
      Whether the features field is set.
    • getFeatures

      public RecognitionFeatures getFeatures()
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
      Specified by:
      getFeatures in interface RecognitionConfigOrBuilder
      Returns:
      The features.
    • setFeatures

      public RecognitionConfig.Builder setFeatures(RecognitionFeatures value)
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
    • setFeatures

      public RecognitionConfig.Builder setFeatures(RecognitionFeatures.Builder builderForValue)
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
    • mergeFeatures

      public RecognitionConfig.Builder mergeFeatures(RecognitionFeatures value)
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
    • clearFeatures

      public RecognitionConfig.Builder clearFeatures()
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
    • getFeaturesBuilder

      public RecognitionFeatures.Builder getFeaturesBuilder()
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
    • getFeaturesOrBuilder

      public RecognitionFeaturesOrBuilder getFeaturesOrBuilder()
       Speech recognition features to enable.
       
      .google.cloud.speech.v2.RecognitionFeatures features = 2;
      Specified by:
      getFeaturesOrBuilder in interface RecognitionConfigOrBuilder
    • hasAdaptation

      public boolean hasAdaptation()
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
      Specified by:
      hasAdaptation in interface RecognitionConfigOrBuilder
      Returns:
      Whether the adaptation field is set.
    • getAdaptation

      public SpeechAdaptation getAdaptation()
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
      Specified by:
      getAdaptation in interface RecognitionConfigOrBuilder
      Returns:
      The adaptation.
    • setAdaptation

      public RecognitionConfig.Builder setAdaptation(SpeechAdaptation value)
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
    • setAdaptation

      public RecognitionConfig.Builder setAdaptation(SpeechAdaptation.Builder builderForValue)
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
    • mergeAdaptation

      public RecognitionConfig.Builder mergeAdaptation(SpeechAdaptation value)
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
    • clearAdaptation

      public RecognitionConfig.Builder clearAdaptation()
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
    • getAdaptationBuilder

      public SpeechAdaptation.Builder getAdaptationBuilder()
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
    • getAdaptationOrBuilder

      public SpeechAdaptationOrBuilder getAdaptationOrBuilder()
       Speech adaptation context that weights recognizer predictions for specific
       words and phrases.
       
      .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
      Specified by:
      getAdaptationOrBuilder in interface RecognitionConfigOrBuilder
    • hasTranscriptNormalization

      public boolean hasTranscriptNormalization()
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTranscriptNormalization in interface RecognitionConfigOrBuilder
      Returns:
      Whether the transcriptNormalization field is set.
    • getTranscriptNormalization

      public TranscriptNormalization getTranscriptNormalization()
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTranscriptNormalization in interface RecognitionConfigOrBuilder
      Returns:
      The transcriptNormalization.
    • setTranscriptNormalization

      public RecognitionConfig.Builder setTranscriptNormalization(TranscriptNormalization value)
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setTranscriptNormalization

      public RecognitionConfig.Builder setTranscriptNormalization(TranscriptNormalization.Builder builderForValue)
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTranscriptNormalization

      public RecognitionConfig.Builder mergeTranscriptNormalization(TranscriptNormalization value)
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearTranscriptNormalization

      public RecognitionConfig.Builder clearTranscriptNormalization()
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getTranscriptNormalizationBuilder

      public TranscriptNormalization.Builder getTranscriptNormalizationBuilder()
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getTranscriptNormalizationOrBuilder

      public TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder()
       Optional. Use transcription normalization to automatically replace parts of
       the transcript with phrases of your choosing. For StreamingRecognize, this
       normalization only applies to stable partial transcripts (stability > 0.8)
       and final transcripts.
       
      .google.cloud.speech.v2.TranscriptNormalization transcript_normalization = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTranscriptNormalizationOrBuilder in interface RecognitionConfigOrBuilder
    • hasTranslationConfig

      public boolean hasTranslationConfig()
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTranslationConfig in interface RecognitionConfigOrBuilder
      Returns:
      Whether the translationConfig field is set.
    • getTranslationConfig

      public TranslationConfig getTranslationConfig()
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTranslationConfig in interface RecognitionConfigOrBuilder
      Returns:
      The translationConfig.
    • setTranslationConfig

      public RecognitionConfig.Builder setTranslationConfig(TranslationConfig value)
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
    • setTranslationConfig

      public RecognitionConfig.Builder setTranslationConfig(TranslationConfig.Builder builderForValue)
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTranslationConfig

      public RecognitionConfig.Builder mergeTranslationConfig(TranslationConfig value)
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
    • clearTranslationConfig

      public RecognitionConfig.Builder clearTranslationConfig()
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getTranslationConfigBuilder

      public TranslationConfig.Builder getTranslationConfigBuilder()
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getTranslationConfigOrBuilder

      public TranslationConfigOrBuilder getTranslationConfigOrBuilder()
       Optional. Optional configuration used to automatically run translation on
       the given audio to the desired language for supported models.
       
      .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTranslationConfigOrBuilder in interface RecognitionConfigOrBuilder
    • hasDenoiserConfig

      public boolean hasDenoiserConfig()
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDenoiserConfig in interface RecognitionConfigOrBuilder
      Returns:
      Whether the denoiserConfig field is set.
    • getDenoiserConfig

      public DenoiserConfig getDenoiserConfig()
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDenoiserConfig in interface RecognitionConfigOrBuilder
      Returns:
      The denoiserConfig.
    • setDenoiserConfig

      public RecognitionConfig.Builder setDenoiserConfig(DenoiserConfig value)
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
    • setDenoiserConfig

      public RecognitionConfig.Builder setDenoiserConfig(DenoiserConfig.Builder builderForValue)
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDenoiserConfig

      public RecognitionConfig.Builder mergeDenoiserConfig(DenoiserConfig value)
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
    • clearDenoiserConfig

      public RecognitionConfig.Builder clearDenoiserConfig()
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
    • getDenoiserConfigBuilder

      public DenoiserConfig.Builder getDenoiserConfigBuilder()
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
    • getDenoiserConfigOrBuilder

      public DenoiserConfigOrBuilder getDenoiserConfigOrBuilder()
       Optional. Optional denoiser config. May not be supported for all models
       and may have no effect.
       
      .google.cloud.speech.v2.DenoiserConfig denoiser_config = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDenoiserConfigOrBuilder in interface RecognitionConfigOrBuilder