Enum SafetyRating.HarmProbability (1.40.0)

publicenumSafetyRating.HarmProbabilityextendsEnum<SafetyRating.HarmProbability>implementsProtocolMessageEnum

Harm probability levels in the content.

Protobuf enum google.cloud.vertexai.v1.SafetyRating.HarmProbability

Implements

ProtocolMessageEnum

Static Fields

Name Description
HARM_PROBABILITY_UNSPECIFIED

Harm probability unspecified.

HARM_PROBABILITY_UNSPECIFIED = 0;

HARM_PROBABILITY_UNSPECIFIED_VALUE

Harm probability unspecified.

HARM_PROBABILITY_UNSPECIFIED = 0;

HIGH

High level of harm.

HIGH = 4;

HIGH_VALUE

High level of harm.

HIGH = 4;

LOW

Low level of harm.

LOW = 2;

LOW_VALUE

Low level of harm.

LOW = 2;

MEDIUM

Medium level of harm.

MEDIUM = 3;

MEDIUM_VALUE

Medium level of harm.

MEDIUM = 3;

NEGLIGIBLE

Negligible level of harm.

NEGLIGIBLE = 1;

NEGLIGIBLE_VALUE

Negligible level of harm.

NEGLIGIBLE = 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.