Enum SafetySetting.HarmBlockMethod (3.52.0)

public enum SafetySetting.HarmBlockMethod extends Enum<SafetySetting.HarmBlockMethod> implements ProtocolMessageEnum

Probability vs severity.

Protobuf enum google.cloud.aiplatform.v1beta1.SafetySetting.HarmBlockMethod

Implements

ProtocolMessageEnum

Static Fields

Name Description
HARM_BLOCK_METHOD_UNSPECIFIED

The harm block method is unspecified.

HARM_BLOCK_METHOD_UNSPECIFIED = 0;

HARM_BLOCK_METHOD_UNSPECIFIED_VALUE

The harm block method is unspecified.

HARM_BLOCK_METHOD_UNSPECIFIED = 0;

PROBABILITY

The harm block method uses the probability score.

PROBABILITY = 2;

PROBABILITY_VALUE

The harm block method uses the probability score.

PROBABILITY = 2;

SEVERITY

The harm block method uses both probability and severity scores.

SEVERITY = 1;

SEVERITY_VALUE

The harm block method uses both probability and severity scores.

SEVERITY = 1;

UNRECOGNIZED

Static Methods

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()