Google Cloud Ai Platform V1 Client - Class BlockedReason (0.31.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class BlockedReason.

Blocked reason enumeration.

Protobuf type google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.BlockedReason

Namespace

Google \ Cloud \ AIPlatform \ V1 \ GenerateContentResponse \ PromptFeedback

Methods

static::name

Parameter
NameDescription
value mixed

static::value

Parameter
NameDescription
name mixed

Constants

BLOCKED_REASON_UNSPECIFIED

Value: 0

Unspecified blocked reason.

Generated from protobuf enum BLOCKED_REASON_UNSPECIFIED = 0;

SAFETY

Value: 1

Candidates blocked due to safety.

Generated from protobuf enum SAFETY = 1;

OTHER

Value: 2

Candidates blocked due to other reason.

Generated from protobuf enum OTHER = 2;