Enum 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.discoveryengine.v1.HarmCategory-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe harm category is civic integrity.The harm category is dangerous content.The harm category is harassment.The harm category is hate speech.The harm category is sexually explicit content.The harm category is unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe harm category is civic integrity.static final intThe harm category is dangerous content.static final intThe harm category is harassment.static final intThe harm category is hate speech.static final intThe harm category is sexually explicit content.static final intThe harm category is unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic HarmCategoryforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<HarmCategory>static HarmCategoryvalueOf(int value) Deprecated.static HarmCategoryvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static HarmCategoryReturns the enum constant of this type with the specified name.static HarmCategory[]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_UNSPECIFIED = 0; -
HARM_CATEGORY_HATE_SPEECH
The harm category is hate speech.
HARM_CATEGORY_HATE_SPEECH = 1; -
HARM_CATEGORY_DANGEROUS_CONTENT
The harm category is dangerous content.
HARM_CATEGORY_DANGEROUS_CONTENT = 2; -
HARM_CATEGORY_HARASSMENT
The harm category is harassment.
HARM_CATEGORY_HARASSMENT = 3; -
HARM_CATEGORY_SEXUALLY_EXPLICIT
The harm category is sexually explicit content.
HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; -
HARM_CATEGORY_CIVIC_INTEGRITY
The harm category is civic integrity.
HARM_CATEGORY_CIVIC_INTEGRITY = 5; -
UNRECOGNIZED
-
-
Field Details
-
HARM_CATEGORY_UNSPECIFIED_VALUE
public static final int HARM_CATEGORY_UNSPECIFIED_VALUEThe harm category is unspecified.
HARM_CATEGORY_UNSPECIFIED = 0;- See Also:
-
HARM_CATEGORY_HATE_SPEECH_VALUE
public static final int HARM_CATEGORY_HATE_SPEECH_VALUEThe 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_VALUEThe harm category is dangerous content.
HARM_CATEGORY_DANGEROUS_CONTENT = 2;- See Also:
-
HARM_CATEGORY_HARASSMENT_VALUE
public static final int HARM_CATEGORY_HARASSMENT_VALUEThe harm category is harassment.
HARM_CATEGORY_HARASSMENT = 3;- See Also:
-
HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE
public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUEThe harm category is sexually explicit content.
HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;- See Also:
-
HARM_CATEGORY_CIVIC_INTEGRITY_VALUE
public static final int HARM_CATEGORY_CIVIC_INTEGRITY_VALUEThe harm category is civic integrity.
HARM_CATEGORY_CIVIC_INTEGRITY = 5;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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 nameNullPointerException- if the argument is null
-