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 ConstantDescriptionAccount creation safety policy.Communication tool safety policy.Data modification safety policy.Financial transactions safety policy.Legal terms and agreements safety policy.Unspecified safety policy.Sensitive data modification safety policy.User consent management safety policy. -
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. This value should not be used. -
FINANCIAL_TRANSACTIONS
Financial transactions safety policy. -
SENSITIVE_DATA_MODIFICATION
Sensitive data modification safety policy. -
COMMUNICATION_TOOL
Communication tool safety policy. -
ACCOUNT_CREATION
Account creation safety policy. -
DATA_MODIFICATION
Data modification safety policy. -
USER_CONSENT_MANAGEMENT
User consent management safety policy. -
LEGAL_TERMS_AND_AGREEMENTS
Legal terms and agreements safety policy.
-
-
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
-