Enum Outcome.Known

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

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

    • OUTCOME_UNSPECIFIED

      public static final Outcome.Known OUTCOME_UNSPECIFIED
      Unspecified status. This value should not be used.
    • OUTCOME_OK

      public static final Outcome.Known OUTCOME_OK
      Code execution completed successfully.
    • OUTCOME_FAILED

      public static final Outcome.Known OUTCOME_FAILED
      Code execution finished but with a failure. `stderr` should contain the reason.
    • OUTCOME_DEADLINE_EXCEEDED

      public static final Outcome.Known 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

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