Class AdvancedSettings.SpeechSettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.SpeechSettings
All Implemented Interfaces:
AdvancedSettings.SpeechSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AdvancedSettings

public static final class AdvancedSettings.SpeechSettings extends com.google.protobuf.GeneratedMessage implements AdvancedSettings.SpeechSettingsOrBuilder
 Define behaviors of speech to text detection.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.SpeechSettings
See Also:
  • Field Details

    • ENDPOINTER_SENSITIVITY_FIELD_NUMBER

      public static final int ENDPOINTER_SENSITIVITY_FIELD_NUMBER
      See Also:
    • NO_SPEECH_TIMEOUT_FIELD_NUMBER

      public static final int NO_SPEECH_TIMEOUT_FIELD_NUMBER
      See Also:
    • USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER

      public static final int USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER
      See Also:
    • MODELS_FIELD_NUMBER

      public static final int MODELS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getEndpointerSensitivity

      public int getEndpointerSensitivity()
       Sensitivity of the speech model that detects the end of speech.
       Scale from 0 to 100.
       
      int32 endpointer_sensitivity = 1;
      Specified by:
      getEndpointerSensitivity in interface AdvancedSettings.SpeechSettingsOrBuilder
      Returns:
      The endpointerSensitivity.
    • hasNoSpeechTimeout

      public boolean hasNoSpeechTimeout()
       Timeout before detecting no speech.
       
      .google.protobuf.Duration no_speech_timeout = 2;
      Specified by:
      hasNoSpeechTimeout in interface AdvancedSettings.SpeechSettingsOrBuilder
      Returns:
      Whether the noSpeechTimeout field is set.
    • getNoSpeechTimeout

      public com.google.protobuf.Duration getNoSpeechTimeout()
       Timeout before detecting no speech.
       
      .google.protobuf.Duration no_speech_timeout = 2;
      Specified by:
      getNoSpeechTimeout in interface AdvancedSettings.SpeechSettingsOrBuilder
      Returns:
      The noSpeechTimeout.
    • getNoSpeechTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getNoSpeechTimeoutOrBuilder()
       Timeout before detecting no speech.
       
      .google.protobuf.Duration no_speech_timeout = 2;
      Specified by:
      getNoSpeechTimeoutOrBuilder in interface AdvancedSettings.SpeechSettingsOrBuilder
    • getUseTimeoutBasedEndpointing

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

      public int getModelsCount()
      Description copied from interface: AdvancedSettings.SpeechSettingsOrBuilder
       Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
       model will be selected for requests from its corresponding language.
       For more information, see
       [Speech
       models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
       
      map<string, string> models = 5;
      Specified by:
      getModelsCount in interface AdvancedSettings.SpeechSettingsOrBuilder
    • containsModels

      public boolean containsModels(String key)
       Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
       model will be selected for requests from its corresponding language.
       For more information, see
       [Speech
       models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
       
      map<string, string> models = 5;
      Specified by:
      containsModels in interface AdvancedSettings.SpeechSettingsOrBuilder
    • getModels

      @Deprecated public Map<String,String> getModels()
      Deprecated.
      Use getModelsMap() instead.
      Specified by:
      getModels in interface AdvancedSettings.SpeechSettingsOrBuilder
    • getModelsMap

      public Map<String,String> getModelsMap()
       Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
       model will be selected for requests from its corresponding language.
       For more information, see
       [Speech
       models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
       
      map<string, string> models = 5;
      Specified by:
      getModelsMap in interface AdvancedSettings.SpeechSettingsOrBuilder
    • getModelsOrDefault

      public String getModelsOrDefault(String key, String defaultValue)
       Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
       model will be selected for requests from its corresponding language.
       For more information, see
       [Speech
       models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
       
      map<string, string> models = 5;
      Specified by:
      getModelsOrDefault in interface AdvancedSettings.SpeechSettingsOrBuilder
    • getModelsOrThrow

      public String getModelsOrThrow(String key)
       Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
       model will be selected for requests from its corresponding language.
       For more information, see
       [Speech
       models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
       
      map<string, string> models = 5;
      Specified by:
      getModelsOrThrow in interface AdvancedSettings.SpeechSettingsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AdvancedSettings.SpeechSettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AdvancedSettings.SpeechSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdvancedSettings.SpeechSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AdvancedSettings.SpeechSettings.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AdvancedSettings.SpeechSettings.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AdvancedSettings.SpeechSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AdvancedSettings.SpeechSettings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AdvancedSettings.SpeechSettings> parser()
    • getParserForType

      public com.google.protobuf.Parser<AdvancedSettings.SpeechSettings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AdvancedSettings.SpeechSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder