Package com.google.genai.types
Enum TextNormalization.Known
- All Implemented Interfaces:
Serializable,Comparable<TextNormalization.Known>
- Enclosing class:
- TextNormalization
Enum representing the known values for TextNormalization.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatically determines whether to apply text normalization based on the model and speech mode.Disables text normalization for pre-normalized or phonetic inputs.Enables text normalization for numbers, currencies, dates, and units.Unspecified text normalization mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextNormalization.KnownReturns the enum constant of this type with the specified name.static TextNormalization.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TEXT_NORMALIZATION_UNSPECIFIED
Unspecified text normalization mode. Defaults to `AUTO`. -
AUTO
Automatically determines whether to apply text normalization based on the model and speech mode. -
ENABLED
Enables text normalization for numbers, currencies, dates, and units. -
DISABLED
Disables text normalization for pre-normalized or phonetic inputs.
-
-
Method Details
-
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
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
-