Enum HarmCategory (3.36.0)

public enum HarmCategory extends Enum<HarmCategory> implements ProtocolMessageEnum

Harm categories that will block the content.

Protobuf enum google.cloud.aiplatform.v1beta1.HarmCategory

Implements

ProtocolMessageEnum

Static Fields

NameDescription
HARM_CATEGORY_DANGEROUS_CONTENT

The harm category is dangerous content.

HARM_CATEGORY_DANGEROUS_CONTENT = 2;

HARM_CATEGORY_DANGEROUS_CONTENT_VALUE

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_HARASSMENT_VALUE

The harm category is harassment.

HARM_CATEGORY_HARASSMENT = 3;

HARM_CATEGORY_HATE_SPEECH

The harm category is hate speech.

HARM_CATEGORY_HATE_SPEECH = 1;

HARM_CATEGORY_HATE_SPEECH_VALUE

The harm category is hate speech.

HARM_CATEGORY_HATE_SPEECH = 1;

HARM_CATEGORY_SEXUALLY_EXPLICIT

The harm category is sexually explicit content.

HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;

HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE

The harm category is sexually explicit content.

HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;

HARM_CATEGORY_UNSPECIFIED

The harm category is unspecified.

HARM_CATEGORY_UNSPECIFIED = 0;

HARM_CATEGORY_UNSPECIFIED_VALUE

The harm category is unspecified.

HARM_CATEGORY_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()