Class SpeechToTextConfig.Builder

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

public static final class SpeechToTextConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpeechToTextConfig.Builder> implements SpeechToTextConfigOrBuilder
 Configures speech transcription for
 [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile].
 
Protobuf type google.cloud.dialogflow.v2.SpeechToTextConfig
  • 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<SpeechToTextConfig.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<SpeechToTextConfig.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<SpeechToTextConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SpeechToTextConfig.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<SpeechToTextConfig.Builder>
      Throws:
      IOException
    • getSpeechModelVariantValue

      public int getSpeechModelVariantValue()
       The speech model used in speech to text.
       `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
       `USE_ENHANCED`. It can be overridden in
       [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
       and
       [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
       request. If enhanced model variant is specified and an enhanced version of
       the specified model for the language does not exist, then it would emit an
       error.
       
      .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
      Specified by:
      getSpeechModelVariantValue in interface SpeechToTextConfigOrBuilder
      Returns:
      The enum numeric value on the wire for speechModelVariant.
    • setSpeechModelVariantValue

      public SpeechToTextConfig.Builder setSpeechModelVariantValue(int value)
       The speech model used in speech to text.
       `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
       `USE_ENHANCED`. It can be overridden in
       [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
       and
       [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
       request. If enhanced model variant is specified and an enhanced version of
       the specified model for the language does not exist, then it would emit an
       error.
       
      .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
      Parameters:
      value - The enum numeric value on the wire for speechModelVariant to set.
      Returns:
      This builder for chaining.
    • getSpeechModelVariant

      public SpeechModelVariant getSpeechModelVariant()
       The speech model used in speech to text.
       `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
       `USE_ENHANCED`. It can be overridden in
       [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
       and
       [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
       request. If enhanced model variant is specified and an enhanced version of
       the specified model for the language does not exist, then it would emit an
       error.
       
      .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
      Specified by:
      getSpeechModelVariant in interface SpeechToTextConfigOrBuilder
      Returns:
      The speechModelVariant.
    • setSpeechModelVariant

      public SpeechToTextConfig.Builder setSpeechModelVariant(SpeechModelVariant value)
       The speech model used in speech to text.
       `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
       `USE_ENHANCED`. It can be overridden in
       [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
       and
       [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
       request. If enhanced model variant is specified and an enhanced version of
       the specified model for the language does not exist, then it would emit an
       error.
       
      .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
      Parameters:
      value - The speechModelVariant to set.
      Returns:
      This builder for chaining.
    • clearSpeechModelVariant

      public SpeechToTextConfig.Builder clearSpeechModelVariant()
       The speech model used in speech to text.
       `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
       `USE_ENHANCED`. It can be overridden in
       [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
       and
       [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
       request. If enhanced model variant is specified and an enhanced version of
       the specified model for the language does not exist, then it would emit an
       error.
       
      .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
      Returns:
      This builder for chaining.
    • getModel

      public String getModel()
       Which Speech model to select. Select the
       model best suited to your domain to get best results. If a model is not
       explicitly specified, then Dialogflow auto-selects a model based on other
       parameters in the SpeechToTextConfig and Agent settings.
       If enhanced speech model is enabled for the agent and an enhanced
       version of the specified model for the language does not exist, then the
       speech is recognized using the standard version of the specified model.
       Refer to
       [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
       for more details.
       If you specify a model, the following models typically have the best
       performance:
      
       - phone_call (best for Agent Assist and telephony)
       - latest_short (best for Dialogflow non-telephony)
       - command_and_search
      
       Leave this field unspecified to use
       [Agent Speech
       settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
       for model selection.
       
      string model = 2;
      Specified by:
      getModel in interface SpeechToTextConfigOrBuilder
      Returns:
      The model.
    • getModelBytes

      public com.google.protobuf.ByteString getModelBytes()
       Which Speech model to select. Select the
       model best suited to your domain to get best results. If a model is not
       explicitly specified, then Dialogflow auto-selects a model based on other
       parameters in the SpeechToTextConfig and Agent settings.
       If enhanced speech model is enabled for the agent and an enhanced
       version of the specified model for the language does not exist, then the
       speech is recognized using the standard version of the specified model.
       Refer to
       [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
       for more details.
       If you specify a model, the following models typically have the best
       performance:
      
       - phone_call (best for Agent Assist and telephony)
       - latest_short (best for Dialogflow non-telephony)
       - command_and_search
      
       Leave this field unspecified to use
       [Agent Speech
       settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
       for model selection.
       
      string model = 2;
      Specified by:
      getModelBytes in interface SpeechToTextConfigOrBuilder
      Returns:
      The bytes for model.
    • setModel

      public SpeechToTextConfig.Builder setModel(String value)
       Which Speech model to select. Select the
       model best suited to your domain to get best results. If a model is not
       explicitly specified, then Dialogflow auto-selects a model based on other
       parameters in the SpeechToTextConfig and Agent settings.
       If enhanced speech model is enabled for the agent and an enhanced
       version of the specified model for the language does not exist, then the
       speech is recognized using the standard version of the specified model.
       Refer to
       [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
       for more details.
       If you specify a model, the following models typically have the best
       performance:
      
       - phone_call (best for Agent Assist and telephony)
       - latest_short (best for Dialogflow non-telephony)
       - command_and_search
      
       Leave this field unspecified to use
       [Agent Speech
       settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
       for model selection.
       
      string model = 2;
      Parameters:
      value - The model to set.
      Returns:
      This builder for chaining.
    • clearModel

      public SpeechToTextConfig.Builder clearModel()
       Which Speech model to select. Select the
       model best suited to your domain to get best results. If a model is not
       explicitly specified, then Dialogflow auto-selects a model based on other
       parameters in the SpeechToTextConfig and Agent settings.
       If enhanced speech model is enabled for the agent and an enhanced
       version of the specified model for the language does not exist, then the
       speech is recognized using the standard version of the specified model.
       Refer to
       [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
       for more details.
       If you specify a model, the following models typically have the best
       performance:
      
       - phone_call (best for Agent Assist and telephony)
       - latest_short (best for Dialogflow non-telephony)
       - command_and_search
      
       Leave this field unspecified to use
       [Agent Speech
       settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
       for model selection.
       
      string model = 2;
      Returns:
      This builder for chaining.
    • setModelBytes

      public SpeechToTextConfig.Builder setModelBytes(com.google.protobuf.ByteString value)
       Which Speech model to select. Select the
       model best suited to your domain to get best results. If a model is not
       explicitly specified, then Dialogflow auto-selects a model based on other
       parameters in the SpeechToTextConfig and Agent settings.
       If enhanced speech model is enabled for the agent and an enhanced
       version of the specified model for the language does not exist, then the
       speech is recognized using the standard version of the specified model.
       Refer to
       [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
       for more details.
       If you specify a model, the following models typically have the best
       performance:
      
       - phone_call (best for Agent Assist and telephony)
       - latest_short (best for Dialogflow non-telephony)
       - command_and_search
      
       Leave this field unspecified to use
       [Agent Speech
       settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
       for model selection.
       
      string model = 2;
      Parameters:
      value - The bytes for model to set.
      Returns:
      This builder for chaining.
    • getPhraseSetsList

      public com.google.protobuf.ProtocolStringList getPhraseSetsList()
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPhraseSetsList in interface SpeechToTextConfigOrBuilder
      Returns:
      A list containing the phraseSets.
    • getPhraseSetsCount

      public int getPhraseSetsCount()
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPhraseSetsCount in interface SpeechToTextConfigOrBuilder
      Returns:
      The count of phraseSets.
    • getPhraseSets

      public String getPhraseSets(int index)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPhraseSets in interface SpeechToTextConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The phraseSets at the given index.
    • getPhraseSetsBytes

      public com.google.protobuf.ByteString getPhraseSetsBytes(int index)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPhraseSetsBytes in interface SpeechToTextConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the phraseSets at the given index.
    • setPhraseSets

      public SpeechToTextConfig.Builder setPhraseSets(int index, String value)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The phraseSets to set.
      Returns:
      This builder for chaining.
    • addPhraseSets

      public SpeechToTextConfig.Builder addPhraseSets(String value)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The phraseSets to add.
      Returns:
      This builder for chaining.
    • addAllPhraseSets

      public SpeechToTextConfig.Builder addAllPhraseSets(Iterable<String> values)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The phraseSets to add.
      Returns:
      This builder for chaining.
    • clearPhraseSets

      public SpeechToTextConfig.Builder clearPhraseSets()
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addPhraseSetsBytes

      public SpeechToTextConfig.Builder addPhraseSetsBytes(com.google.protobuf.ByteString value)
       List of names of Cloud Speech phrase sets that are used for transcription.
       For phrase set limitations, please refer to [Cloud Speech API quotas and
       limits](https://cloud.google.com/speech-to-text/quotas#content).
       
      repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the phraseSets to add.
      Returns:
      This builder for chaining.
    • getAudioEncodingValue

      public int getAudioEncodingValue()
       Audio encoding of the audio content to process.
       
      .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;
      Specified by:
      getAudioEncodingValue in interface SpeechToTextConfigOrBuilder
      Returns:
      The enum numeric value on the wire for audioEncoding.
    • setAudioEncodingValue

      public SpeechToTextConfig.Builder setAudioEncodingValue(int value)
       Audio encoding of the audio content to process.
       
      .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;
      Parameters:
      value - The enum numeric value on the wire for audioEncoding to set.
      Returns:
      This builder for chaining.
    • getAudioEncoding

      public AudioEncoding getAudioEncoding()
       Audio encoding of the audio content to process.
       
      .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;
      Specified by:
      getAudioEncoding in interface SpeechToTextConfigOrBuilder
      Returns:
      The audioEncoding.
    • setAudioEncoding

      public SpeechToTextConfig.Builder setAudioEncoding(AudioEncoding value)
       Audio encoding of the audio content to process.
       
      .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;
      Parameters:
      value - The audioEncoding to set.
      Returns:
      This builder for chaining.
    • clearAudioEncoding

      public SpeechToTextConfig.Builder clearAudioEncoding()
       Audio encoding of the audio content to process.
       
      .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;
      Returns:
      This builder for chaining.
    • getSampleRateHertz

      public int getSampleRateHertz()
       Sample rate (in Hertz) of the audio content sent in the query.
       Refer to [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics) for
       more details.
       
      int32 sample_rate_hertz = 7;
      Specified by:
      getSampleRateHertz in interface SpeechToTextConfigOrBuilder
      Returns:
      The sampleRateHertz.
    • setSampleRateHertz

      public SpeechToTextConfig.Builder setSampleRateHertz(int value)
       Sample rate (in Hertz) of the audio content sent in the query.
       Refer to [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics) for
       more details.
       
      int32 sample_rate_hertz = 7;
      Parameters:
      value - The sampleRateHertz to set.
      Returns:
      This builder for chaining.
    • clearSampleRateHertz

      public SpeechToTextConfig.Builder clearSampleRateHertz()
       Sample rate (in Hertz) of the audio content sent in the query.
       Refer to [Cloud Speech API
       documentation](https://cloud.google.com/speech-to-text/docs/basics) for
       more details.
       
      int32 sample_rate_hertz = 7;
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       The language of the supplied audio. Dialogflow does not do
       translations. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes. Note that queries in
       the same session do not necessarily need to specify the same language.
       If not specified, the default language configured at
       [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is
       used.
       
      string language_code = 8;
      Specified by:
      getLanguageCode in interface SpeechToTextConfigOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       The language of the supplied audio. Dialogflow does not do
       translations. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes. Note that queries in
       the same session do not necessarily need to specify the same language.
       If not specified, the default language configured at
       [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is
       used.
       
      string language_code = 8;
      Specified by:
      getLanguageCodeBytes in interface SpeechToTextConfigOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public SpeechToTextConfig.Builder setLanguageCode(String value)
       The language of the supplied audio. Dialogflow does not do
       translations. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes. Note that queries in
       the same session do not necessarily need to specify the same language.
       If not specified, the default language configured at
       [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is
       used.
       
      string language_code = 8;
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public SpeechToTextConfig.Builder clearLanguageCode()
       The language of the supplied audio. Dialogflow does not do
       translations. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes. Note that queries in
       the same session do not necessarily need to specify the same language.
       If not specified, the default language configured at
       [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is
       used.
       
      string language_code = 8;
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public SpeechToTextConfig.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       The language of the supplied audio. Dialogflow does not do
       translations. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes. Note that queries in
       the same session do not necessarily need to specify the same language.
       If not specified, the default language configured at
       [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is
       used.
       
      string language_code = 8;
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • getEnableWordInfo

      public boolean getEnableWordInfo()
       If `true`, Dialogflow returns
       [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
       [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult]
       with information about the recognized speech words, e.g. start and end time
       offsets. If false or unspecified, Speech doesn't return any word-level
       information.
       
      bool enable_word_info = 9;
      Specified by:
      getEnableWordInfo in interface SpeechToTextConfigOrBuilder
      Returns:
      The enableWordInfo.
    • setEnableWordInfo

      public SpeechToTextConfig.Builder setEnableWordInfo(boolean value)
       If `true`, Dialogflow returns
       [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
       [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult]
       with information about the recognized speech words, e.g. start and end time
       offsets. If false or unspecified, Speech doesn't return any word-level
       information.
       
      bool enable_word_info = 9;
      Parameters:
      value - The enableWordInfo to set.
      Returns:
      This builder for chaining.
    • clearEnableWordInfo

      public SpeechToTextConfig.Builder clearEnableWordInfo()
       If `true`, Dialogflow returns
       [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
       [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult]
       with information about the recognized speech words, e.g. start and end time
       offsets. If false or unspecified, Speech doesn't return any word-level
       information.
       
      bool enable_word_info = 9;
      Returns:
      This builder for chaining.
    • getUseTimeoutBasedEndpointing

      public boolean getUseTimeoutBasedEndpointing()
       Use timeout based endpointing, interpreting endpointer sensitivity as
       seconds of timeout value.
       
      bool use_timeout_based_endpointing = 11;
      Specified by:
      getUseTimeoutBasedEndpointing in interface SpeechToTextConfigOrBuilder
      Returns:
      The useTimeoutBasedEndpointing.
    • setUseTimeoutBasedEndpointing

      public SpeechToTextConfig.Builder setUseTimeoutBasedEndpointing(boolean value)
       Use timeout based endpointing, interpreting endpointer sensitivity as
       seconds of timeout value.
       
      bool use_timeout_based_endpointing = 11;
      Parameters:
      value - The useTimeoutBasedEndpointing to set.
      Returns:
      This builder for chaining.
    • clearUseTimeoutBasedEndpointing

      public SpeechToTextConfig.Builder clearUseTimeoutBasedEndpointing()
       Use timeout based endpointing, interpreting endpointer sensitivity as
       seconds of timeout value.
       
      bool use_timeout_based_endpointing = 11;
      Returns:
      This builder for chaining.