Enum ActivityHandling.Known

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

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

    • ACTIVITY_HANDLING_UNSPECIFIED

      public static final ActivityHandling.Known ACTIVITY_HANDLING_UNSPECIFIED
      If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.
    • START_OF_ACTIVITY_INTERRUPTS

      public static final ActivityHandling.Known START_OF_ACTIVITY_INTERRUPTS
      If true, start of activity will interrupt the model's response (also called "barge in"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.
    • NO_INTERRUPTION

      public static final ActivityHandling.Known NO_INTERRUPTION
      The model's response will not be interrupted.
  • Method Details

    • values

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