Enum TextNormalization.Known

java.lang.Object
java.lang.Enum<TextNormalization.Known>
com.google.genai.types.TextNormalization.Known
All Implemented Interfaces:
Serializable, Comparable<TextNormalization.Known>
Enclosing class:
TextNormalization

public static enum TextNormalization.Known extends Enum<TextNormalization.Known>
Enum representing the known values for TextNormalization.
  • Enum Constant Details

    • TEXT_NORMALIZATION_UNSPECIFIED

      public static final TextNormalization.Known TEXT_NORMALIZATION_UNSPECIFIED
      Unspecified text normalization mode. Defaults to `AUTO`.
    • AUTO

      public static final TextNormalization.Known AUTO
      Automatically determines whether to apply text normalization based on the model and speech mode.
    • ENABLED

      public static final TextNormalization.Known ENABLED
      Enables text normalization for numbers, currencies, dates, and units.
    • DISABLED

      public static final TextNormalization.Known DISABLED
      Disables text normalization for pre-normalized or phonetic inputs.
  • Method Details

    • values

      public static TextNormalization.Known[] 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 TextNormalization.Known 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