Enum SafetySetting.HarmBlockMethod (1.2.0)

publicenumSafetySetting.HarmBlockMethodextendsEnum<SafetySetting.HarmBlockMethod>implementsProtocolMessageEnum

Probability vs severity.

Protobuf enum google.cloud.vertexai.v1.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()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.