Package com.google.genai.types
Enum MatchOperation.Known
- All Implemented Interfaces:
Serializable,Comparable<MatchOperation.Known>
- Enclosing class:
- MatchOperation
Enum representing the known values for MatchOperation.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription`expression` is an exact match of target.Default value.`expression` is a substring of target.Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`. -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchOperation.KnownReturns the enum constant of this type with the specified name.static MatchOperation.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MATCH_OPERATION_UNSPECIFIED
Default value. This value is unused. -
REGEX_CONTAINS
Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`. -
PARTIAL_MATCH
`expression` is a substring of target. -
EXACT_MATCH
`expression` is an exact match of target.
-
-
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
-