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 ConstantDescriptionPolicy that restricts the creation of accounts.Policy that restricts the use of communication tools.Policy that restricts general data modification.Policy that restricts financial transactions.Policy that restricts interaction with legal terms and agreements.The safety policy is unspecified.Policy that restricts modification of sensitive data.Policy that restricts 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
The safety policy is unspecified. -
FINANCIAL_TRANSACTIONS
Policy that restricts financial transactions. -
SENSITIVE_DATA_MODIFICATION
Policy that restricts modification of sensitive data. -
COMMUNICATION_TOOL
Policy that restricts the use of communication tools. -
ACCOUNT_CREATION
Policy that restricts the creation of accounts. -
DATA_MODIFICATION
Policy that restricts general data modification. -
USER_CONSENT_MANAGEMENT
Policy that restricts user consent management. -
LEGAL_TERMS_AND_AGREEMENTS
Policy that restricts interaction with 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
-