Enum Type.Known

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

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

    • TYPE_UNSPECIFIED

      public static final Type.Known TYPE_UNSPECIFIED
      Not specified, should not be used.
    • STRING

      public static final Type.Known STRING
      OpenAPI string type
    • NUMBER

      public static final Type.Known NUMBER
      OpenAPI number type
    • INTEGER

      public static final Type.Known INTEGER
      OpenAPI integer type
    • BOOLEAN

      public static final Type.Known BOOLEAN
      OpenAPI boolean type
    • ARRAY

      public static final Type.Known ARRAY
      OpenAPI array type
    • OBJECT

      public static final Type.Known OBJECT
      OpenAPI object type
    • NULL

      public static final Type.Known NULL
      Null type
  • Method Details

    • values

      public static Type.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 Type.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