Enum SpeechModelVariant

java.lang.Object
java.lang.Enum<SpeechModelVariant>
com.google.cloud.dialogflow.v2.SpeechModelVariant
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<SpeechModelVariant>

@Generated public enum SpeechModelVariant extends Enum<SpeechModelVariant> implements com.google.protobuf.ProtocolMessageEnum
 Variant of the specified [Speech
 model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.

 See the [Cloud Speech
 documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 for which models have different variants. For example, the "phone_call" model
 has both a standard and an enhanced variant. When you use an enhanced model,
 you will generally receive higher quality results than for a standard model.
 
Protobuf enum google.cloud.dialogflow.v2.SpeechModelVariant
  • Enum Constant Details

    • SPEECH_MODEL_VARIANT_UNSPECIFIED

      public static final SpeechModelVariant SPEECH_MODEL_VARIANT_UNSPECIFIED
       No model variant specified. In this case Dialogflow defaults to
       USE_BEST_AVAILABLE.
       
      SPEECH_MODEL_VARIANT_UNSPECIFIED = 0;
    • USE_BEST_AVAILABLE

      public static final SpeechModelVariant USE_BEST_AVAILABLE
       Use the best available variant of the [Speech model][model] that the caller
       is eligible for.
      
       Please see the [Dialogflow
       docs](https://cloud.google.com/dialogflow/docs/data-logging) for
       how to make your project eligible for enhanced models.
       
      USE_BEST_AVAILABLE = 1;
    • USE_STANDARD

      public static final SpeechModelVariant USE_STANDARD
       Use standard model variant even if an enhanced model is available.  See the
       [Cloud Speech
       documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
       for details about enhanced models.
       
      USE_STANDARD = 2;
    • USE_ENHANCED

      public static final SpeechModelVariant USE_ENHANCED
       Use an enhanced model variant:
      
       * If an enhanced variant does not exist for the given
       [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request
       language, Dialogflow falls back to the standard variant.
      
       The [Cloud Speech
       documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
       describes which models have enhanced variants.
      
       * If the API caller isn't eligible for enhanced models, Dialogflow returns
       an error. Please see the [Dialogflow
       docs](https://cloud.google.com/dialogflow/docs/data-logging)
       for how to make your project eligible.
       
      USE_ENHANCED = 3;
    • UNRECOGNIZED

      public static final SpeechModelVariant UNRECOGNIZED
  • Field Details

    • SPEECH_MODEL_VARIANT_UNSPECIFIED_VALUE

      public static final int SPEECH_MODEL_VARIANT_UNSPECIFIED_VALUE
       No model variant specified. In this case Dialogflow defaults to
       USE_BEST_AVAILABLE.
       
      SPEECH_MODEL_VARIANT_UNSPECIFIED = 0;
      See Also:
    • USE_BEST_AVAILABLE_VALUE

      public static final int USE_BEST_AVAILABLE_VALUE
       Use the best available variant of the [Speech model][model] that the caller
       is eligible for.
      
       Please see the [Dialogflow
       docs](https://cloud.google.com/dialogflow/docs/data-logging) for
       how to make your project eligible for enhanced models.
       
      USE_BEST_AVAILABLE = 1;
      See Also:
    • USE_STANDARD_VALUE

      public static final int USE_STANDARD_VALUE
       Use standard model variant even if an enhanced model is available.  See the
       [Cloud Speech
       documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
       for details about enhanced models.
       
      USE_STANDARD = 2;
      See Also:
    • USE_ENHANCED_VALUE

      public static final int USE_ENHANCED_VALUE
       Use an enhanced model variant:
      
       * If an enhanced variant does not exist for the given
       [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request
       language, Dialogflow falls back to the standard variant.
      
       The [Cloud Speech
       documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
       describes which models have enhanced variants.
      
       * If the API caller isn't eligible for enhanced models, Dialogflow returns
       an error. Please see the [Dialogflow
       docs](https://cloud.google.com/dialogflow/docs/data-logging)
       for how to make your project eligible.
       
      USE_ENHANCED = 3;
      See Also:
  • Method Details

    • values

      public static SpeechModelVariant[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SpeechModelVariant valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static SpeechModelVariant valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static SpeechModelVariant forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<SpeechModelVariant> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static SpeechModelVariant valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null