Enum Class AskUserVariant
- All Implemented Interfaces:
Serializable, Comparable<AskUserVariant>, Constable
Selects how the built-in
ask_user tool collects user input.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses structured elicitation to collect user input.Uses the legacy question-and-answer experience. -
Method Summary
Modifier and TypeMethodDescriptionstatic AskUserVariantCreates anAskUserVariantfrom its wire-format value.getValue()Returns the wire-format value.static AskUserVariantReturns the enum constant of this class with the specified name.static AskUserVariant[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LEGACY
Uses the legacy question-and-answer experience. -
ELICITATION
Uses structured elicitation to collect user input.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the wire-format value.- Returns:
- the value used in JSON serialization
-
fromValue
Creates anAskUserVariantfrom its wire-format value.- Parameters:
value- the wire-format value- Returns:
- the matching variant, or
nullwhenvalueisnull - Throws:
IllegalArgumentException- if the value is notlegacyorelicitation
-