Package com.google.genai.types
Enum Outcome.Known
- All Implemented Interfaces:
Serializable
,Comparable<Outcome.Known>
- Enclosing class:
- Outcome
Enum representing the known values for Outcome.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCode execution ran for too long, and was cancelled.Code execution finished but with a failure.Code execution completed successfully.Unspecified status. -
Method Summary
Modifier and TypeMethodDescriptionstatic Outcome.Known
Returns the enum constant of this type with the specified name.static Outcome.Known[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OUTCOME_UNSPECIFIED
Unspecified status. This value should not be used. -
OUTCOME_OK
Code execution completed successfully. -
OUTCOME_FAILED
Code execution finished but with a failure. `stderr` should contain the reason. -
OUTCOME_DEADLINE_EXCEEDED
Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
-
-
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
-