Package com.google.genai.types
Enum SafetyPolicy.Known
- All Implemented Interfaces:
Serializable,Comparable<SafetyPolicy.Known>
- Enclosing class:
- SafetyPolicy
Enum representing the known values for SafetyPolicy.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSafety policy for account creation.Safety policy for communication tools (e.g.Safety policy for data modification.Safety policy for financial transactions.Safety policy for legal terms and agreements.Unspecified safety policy.Safety policy for sensitive data modification.Safety policy for user consent management. -
Method Summary
Modifier and TypeMethodDescriptionstatic SafetyPolicy.KnownReturns the enum constant of this type with the specified name.static SafetyPolicy.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SAFETY_POLICY_UNSPECIFIED
Unspecified safety policy. -
FINANCIAL_TRANSACTIONS
Safety policy for financial transactions. -
SENSITIVE_DATA_MODIFICATION
Safety policy for sensitive data modification. -
COMMUNICATION_TOOL
Safety policy for communication tools (e.g. Gmail, Chat, Meet). -
ACCOUNT_CREATION
Safety policy for account creation. -
DATA_MODIFICATION
Safety policy for data modification. -
USER_CONSENT_MANAGEMENT
Safety policy for user consent management. -
LEGAL_TERMS_AND_AGREEMENTS
Safety policy for legal terms and agreements.
-
-
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
-