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
      Unspecified safety policy.
    • FINANCIAL_TRANSACTIONS

      public static final SafetyPolicy.Known FINANCIAL_TRANSACTIONS
      Safety policy for financial transactions.
    • SENSITIVE_DATA_MODIFICATION

      public static final SafetyPolicy.Known SENSITIVE_DATA_MODIFICATION
      Safety policy for sensitive data modification.
    • COMMUNICATION_TOOL

      public static final SafetyPolicy.Known COMMUNICATION_TOOL
      Safety policy for communication tools (e.g. Gmail, Chat, Meet).
    • ACCOUNT_CREATION

      public static final SafetyPolicy.Known ACCOUNT_CREATION
      Safety policy for account creation.
    • DATA_MODIFICATION

      public static final SafetyPolicy.Known DATA_MODIFICATION
      Safety policy for 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