Package com.google.genai.types
Enum HarmCategory.Known
- All Implemented Interfaces:
Serializable,Comparable<HarmCategory.Known>
- Enclosing class:
- HarmCategory
Enum representing the known values for HarmCategory.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated: Election filter is not longer supported.The harm category is dangerous content.The harm category is harassment.The harm category is hate speech.The harm category is image dangerous content.The harm category is image harassment.The harm category is image hate.The harm category is image sexually explicit content.The harm category is sexually explicit content.The harm category is unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic HarmCategory.KnownReturns the enum constant of this type with the specified name.static HarmCategory.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARM_CATEGORY_UNSPECIFIED
The harm category is unspecified. -
HARM_CATEGORY_HATE_SPEECH
The harm category is hate speech. -
HARM_CATEGORY_DANGEROUS_CONTENT
The harm category is dangerous content. -
HARM_CATEGORY_HARASSMENT
The harm category is harassment. -
HARM_CATEGORY_SEXUALLY_EXPLICIT
The harm category is sexually explicit content. -
HARM_CATEGORY_CIVIC_INTEGRITY
Deprecated: Election filter is not longer supported. The harm category is civic integrity. -
HARM_CATEGORY_IMAGE_HATE
The harm category is image hate. -
HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT
The harm category is image dangerous content. -
HARM_CATEGORY_IMAGE_HARASSMENT
The harm category is image harassment. -
HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT
The harm category is image sexually explicit content.
-
-
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
-