Class 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.GeneratedMessageV3.Builder<SpeechToTextConfig.Builder>
    implements SpeechToTextConfigOrBuilder
     Configures speech transcription for
     [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile].
     
    Protobuf type google.cloud.dialogflow.v2beta1.SpeechToTextConfig
    • 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<SpeechToTextConfig.Builder>
      • clear

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

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v2beta1.AnalyzeContentRequest]
         and
         [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.AnalyzeContentRequest]
         and
         [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.AnalyzeContentRequest]
         and
         [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.AnalyzeContentRequest]
         and
         [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.AnalyzeContentRequest]
         and
         [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.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.v2beta1.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 a default
         model is used.
         Refer to
         [Cloud Speech API
         documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
         for more details.
         
        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 a default
         model is used.
         Refer to
         [Cloud Speech API
         documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
         for more details.
         
        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 a default
         model is used.
         Refer to
         [Cloud Speech API
         documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
         for more details.
         
        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 a default
         model is used.
         Refer to
         [Cloud Speech API
         documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
         for more details.
         
        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 a default
         model is used.
         Refer to
         [Cloud Speech API
         documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
         for more details.
         
        string model = 2;
        Parameters:
        value - The bytes for model to set.
        Returns:
        This builder for chaining.
      • getUseTimeoutBasedEndpointing

        public boolean getUseTimeoutBasedEndpointing()
         Use timeout based endpointing, interpreting endpointer sensitivy 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 sensitivy 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 sensitivy as
         seconds of timeout value.
         
        bool use_timeout_based_endpointing = 11;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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