Package com.google.genai.types
Enum ActivityHandling.Known
- All Implemented Interfaces:
Serializable
,Comparable<ActivityHandling.Known>
- Enclosing class:
- ActivityHandling
Enum representing the known values for ActivityHandling.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.The model's response will not be interrupted.If true, start of activity will interrupt the model's response (also called "barge in"). -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivityHandling.Known
Returns the enum constant of this type with the specified name.static ActivityHandling.Known[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACTIVITY_HANDLING_UNSPECIFIED
If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`. -
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
The model's response will not be interrupted.
-
-
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
-