Interface GenerateContentResponse.PromptFeedbackOrBuilder (1.13.0)

public static interface GenerateContentResponse.PromptFeedbackOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBlockReason()

public abstract GenerateContentResponse.PromptFeedback.BlockedReason getBlockReason()

Output only. Blocked reason.

.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateContentResponse.PromptFeedback.BlockedReason

The blockReason.

getBlockReasonMessage()

public abstract String getBlockReasonMessage()

Output only. A readable block reason message.

string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The blockReasonMessage.

getBlockReasonMessageBytes()

public abstract ByteString getBlockReasonMessageBytes()

Output only. A readable block reason message.

string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for blockReasonMessage.

getBlockReasonValue()

public abstract int getBlockReasonValue()

Output only. Blocked reason.

.google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for blockReason.

getSafetyRatings(int index)

public abstract SafetyRating getSafetyRatings(int index)

Output only. Safety ratings.

repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SafetyRating

getSafetyRatingsCount()

public abstract int getSafetyRatingsCount()

Output only. Safety ratings.

repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getSafetyRatingsList()

public abstract List<SafetyRating> getSafetyRatingsList()

Output only. Safety ratings.

repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<SafetyRating>

getSafetyRatingsOrBuilder(int index)

public abstract SafetyRatingOrBuilder getSafetyRatingsOrBuilder(int index)

Output only. Safety ratings.

repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SafetyRatingOrBuilder

getSafetyRatingsOrBuilderList()

public abstract List<? extends SafetyRatingOrBuilder> getSafetyRatingsOrBuilderList()

Output only. Safety ratings.

repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.vertexai.api.SafetyRatingOrBuilder>