Package com.google.genai.types
Enum DocumentState.Known
- All Implemented Interfaces:
Serializable,Comparable<DocumentState.Known>
- Enclosing class:
- DocumentState
Enum representing the known values for DocumentState.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll `Chunks` of the `Document` is processed and available for querying.Some `Chunks` of the `Document` failed processing.Some `Chunks` of the `Document` are being processed (embedding and vector storage).The default value. -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentState.KnownReturns the enum constant of this type with the specified name.static DocumentState.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
The default value. This value is used if the state is omitted. -
STATE_PENDING
Some `Chunks` of the `Document` are being processed (embedding and vector storage). -
STATE_ACTIVE
All `Chunks` of the `Document` is processed and available for querying. -
STATE_FAILED
Some `Chunks` of the `Document` failed processing. -
DOCUMENT_STATE_UNSPECIFIED
-
-
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
-