Enum SpeechModelVariant
- java.lang.Object
-
- java.lang.Enum<SpeechModelVariant>
-
- com.google.cloud.dialogflow.cx.v3.SpeechModelVariant
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<SpeechModelVariant>
public enum SpeechModelVariant extends Enum<SpeechModelVariant> implements com.google.protobuf.ProtocolMessageEnum
Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.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 enumgoogle.cloud.dialogflow.cx.v3.SpeechModelVariant
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SPEECH_MODEL_VARIANT_UNSPECIFIED
No model variant specified.UNRECOGNIZED
USE_BEST_AVAILABLE
Use the best available variant of the [Speech model][InputAudioConfig.model] that the caller is eligible for.USE_ENHANCED
Use an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls back to the standard variant.USE_STANDARD
Use standard model variant even if an enhanced model is available.
-
Field Summary
Fields Modifier and Type Field Description static int
SPEECH_MODEL_VARIANT_UNSPECIFIED_VALUE
No model variant specified.static int
USE_BEST_AVAILABLE_VALUE
Use the best available variant of the [Speech model][InputAudioConfig.model] that the caller is eligible for.static int
USE_ENHANCED_VALUE
Use an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls back to the standard variant.static int
USE_STANDARD_VALUE
Use standard model variant even if an enhanced model is available.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SpeechModelVariant
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<SpeechModelVariant>
internalGetValueMap()
static SpeechModelVariant
valueOf(int value)
Deprecated.static SpeechModelVariant
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static SpeechModelVariant
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpeechModelVariant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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][InputAudioConfig.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.cx.v3.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 Detail
-
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:
- Constant Field Values
-
USE_BEST_AVAILABLE_VALUE
public static final int USE_BEST_AVAILABLE_VALUE
Use the best available variant of the [Speech model][InputAudioConfig.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:
- Constant Field Values
-
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:
- Constant Field Values
-
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.cx.v3.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:
- Constant Field Values
-
-
Method Detail
-
values
public static SpeechModelVariant[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpeechModelVariant c : SpeechModelVariant.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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 nameNullPointerException
- if the argument is null
-
-