Enum HarmCategory

java.lang.Object
java.lang.Enum<HarmCategory>
com.google.cloud.aiplatform.v1.HarmCategory
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<HarmCategory>

@Generated public enum HarmCategory extends Enum<HarmCategory> implements com.google.protobuf.ProtocolMessageEnum
 Harm categories that will block the content.
 
Protobuf enum google.cloud.aiplatform.v1.HarmCategory
  • Enum Constant Details

    • HARM_CATEGORY_UNSPECIFIED

      public static final HarmCategory HARM_CATEGORY_UNSPECIFIED
       The harm category is unspecified.
       
      HARM_CATEGORY_UNSPECIFIED = 0;
    • HARM_CATEGORY_HATE_SPEECH

      public static final HarmCategory HARM_CATEGORY_HATE_SPEECH
       The harm category is hate speech.
       
      HARM_CATEGORY_HATE_SPEECH = 1;
    • HARM_CATEGORY_DANGEROUS_CONTENT

      public static final HarmCategory HARM_CATEGORY_DANGEROUS_CONTENT
       The harm category is dangerous content.
       
      HARM_CATEGORY_DANGEROUS_CONTENT = 2;
    • HARM_CATEGORY_HARASSMENT

      public static final HarmCategory HARM_CATEGORY_HARASSMENT
       The harm category is harassment.
       
      HARM_CATEGORY_HARASSMENT = 3;
    • HARM_CATEGORY_SEXUALLY_EXPLICIT

      public static final HarmCategory HARM_CATEGORY_SEXUALLY_EXPLICIT
       The harm category is sexually explicit content.
       
      HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;
    • HARM_CATEGORY_CIVIC_INTEGRITY

      @Deprecated public static final HarmCategory HARM_CATEGORY_CIVIC_INTEGRITY
      Deprecated.
       Deprecated: Election filter is not longer supported.
       The harm category is civic integrity.
       
      HARM_CATEGORY_CIVIC_INTEGRITY = 5 [deprecated = true];
    • HARM_CATEGORY_JAILBREAK

      public static final HarmCategory HARM_CATEGORY_JAILBREAK
       The harm category is for jailbreak prompts.
       
      HARM_CATEGORY_JAILBREAK = 6;
    • UNRECOGNIZED

      public static final HarmCategory UNRECOGNIZED
  • Field Details

    • HARM_CATEGORY_UNSPECIFIED_VALUE

      public static final int HARM_CATEGORY_UNSPECIFIED_VALUE
       The harm category is unspecified.
       
      HARM_CATEGORY_UNSPECIFIED = 0;
      See Also:
    • HARM_CATEGORY_HATE_SPEECH_VALUE

      public static final int HARM_CATEGORY_HATE_SPEECH_VALUE
       The harm category is hate speech.
       
      HARM_CATEGORY_HATE_SPEECH = 1;
      See Also:
    • HARM_CATEGORY_DANGEROUS_CONTENT_VALUE

      public static final int HARM_CATEGORY_DANGEROUS_CONTENT_VALUE
       The harm category is dangerous content.
       
      HARM_CATEGORY_DANGEROUS_CONTENT = 2;
      See Also:
    • HARM_CATEGORY_HARASSMENT_VALUE

      public static final int HARM_CATEGORY_HARASSMENT_VALUE
       The harm category is harassment.
       
      HARM_CATEGORY_HARASSMENT = 3;
      See Also:
    • HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE

      public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE
       The harm category is sexually explicit content.
       
      HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;
      See Also:
    • HARM_CATEGORY_CIVIC_INTEGRITY_VALUE

      @Deprecated public static final int HARM_CATEGORY_CIVIC_INTEGRITY_VALUE
      Deprecated.
       Deprecated: Election filter is not longer supported.
       The harm category is civic integrity.
       
      HARM_CATEGORY_CIVIC_INTEGRITY = 5 [deprecated = true];
      See Also:
    • HARM_CATEGORY_JAILBREAK_VALUE

      public static final int HARM_CATEGORY_JAILBREAK_VALUE
       The harm category is for jailbreak prompts.
       
      HARM_CATEGORY_JAILBREAK = 6;
      See Also:
  • Method Details

    • values

      public static HarmCategory[] 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 HarmCategory 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static HarmCategory valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static HarmCategory forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<HarmCategory> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static HarmCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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