Enum SafetyPolicy.Known

java.lang.Object
java.lang.Enum<SafetyPolicy.Known>
com.google.genai.types.SafetyPolicy.Known
All Implemented Interfaces:
Serializable, Comparable<SafetyPolicy.Known>
Enclosing class:
SafetyPolicy

public static enum SafetyPolicy.Known extends Enum<SafetyPolicy.Known>
Enum representing the known values for SafetyPolicy.
  • Enum Constant Details

    • SAFETY_POLICY_UNSPECIFIED

      public static final SafetyPolicy.Known SAFETY_POLICY_UNSPECIFIED
      The safety policy is unspecified.
    • FINANCIAL_TRANSACTIONS

      public static final SafetyPolicy.Known FINANCIAL_TRANSACTIONS
      Policy that restricts financial transactions.
    • SENSITIVE_DATA_MODIFICATION

      public static final SafetyPolicy.Known SENSITIVE_DATA_MODIFICATION
      Policy that restricts modification of sensitive data.
    • COMMUNICATION_TOOL

      public static final SafetyPolicy.Known COMMUNICATION_TOOL
      Policy that restricts the use of communication tools.
    • ACCOUNT_CREATION

      public static final SafetyPolicy.Known ACCOUNT_CREATION
      Policy that restricts the creation of accounts.
    • DATA_MODIFICATION

      public static final SafetyPolicy.Known DATA_MODIFICATION
      Policy that restricts general data modification.
  • Method Details

    • values

      public static SafetyPolicy.Known[] 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

      public static SafetyPolicy.Known valueOf(String name)
      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 name
      NullPointerException - if the argument is null