Enum GenerateContentResponse.PromptFeedback.BlockedReason (3.43.0)

public enum GenerateContentResponse.PromptFeedback.BlockedReason extends Enum<GenerateContentResponse.PromptFeedback.BlockedReason> implements ProtocolMessageEnum

Blocked reason enumeration.

Protobuf enum google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason

Implements

ProtocolMessageEnum

Static Fields

Name Description
BLOCKED_REASON_UNSPECIFIED

Unspecified blocked reason.

BLOCKED_REASON_UNSPECIFIED = 0;

BLOCKED_REASON_UNSPECIFIED_VALUE

Unspecified blocked reason.

BLOCKED_REASON_UNSPECIFIED = 0;

BLOCKLIST

Candidates blocked due to the terms which are included from the terminology blocklist.

BLOCKLIST = 3;

BLOCKLIST_VALUE

Candidates blocked due to the terms which are included from the terminology blocklist.

BLOCKLIST = 3;

OTHER

Candidates blocked due to other reason.

OTHER = 2;

OTHER_VALUE

Candidates blocked due to other reason.

OTHER = 2;

PROHIBITED_CONTENT

Candidates blocked due to prohibited content.

PROHIBITED_CONTENT = 4;

PROHIBITED_CONTENT_VALUE

Candidates blocked due to prohibited content.

PROHIBITED_CONTENT = 4;

SAFETY

Candidates blocked due to safety.

SAFETY = 1;

SAFETY_VALUE

Candidates blocked due to safety.

SAFETY = 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()