Enum DocumentState.Known

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

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

    • STATE_UNSPECIFIED

      public static final DocumentState.Known STATE_UNSPECIFIED
      The default value. This value is used if the state is omitted.
    • STATE_PENDING

      public static final DocumentState.Known STATE_PENDING
      Some `Chunks` of the `Document` are being processed (embedding and vector storage).
    • STATE_ACTIVE

      public static final DocumentState.Known STATE_ACTIVE
      All `Chunks` of the `Document` is processed and available for querying.
    • STATE_FAILED

      public static final DocumentState.Known STATE_FAILED
      Some `Chunks` of the `Document` failed processing.
    • DOCUMENT_STATE_UNSPECIFIED

      public static final DocumentState.Known DOCUMENT_STATE_UNSPECIFIED
  • Method Details

    • values

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