Interface GenerateContentResponse.PromptFeedbackOrBuilder (3.38.0)

public static interface GenerateContentResponse.PromptFeedbackOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBlockReason()

public abstract GenerateContentResponse.PromptFeedback.BlockedReason getBlockReason()

Output only. Blocked reason.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for blockReasonMessage.

getBlockReasonValue()

public abstract int getBlockReasonValue()

Output only. Blocked reason.

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

Returns
TypeDescription
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.aiplatform.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
SafetyRating

getSafetyRatingsCount()

public abstract int getSafetyRatingsCount()

Output only. Safety ratings.

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

Returns
TypeDescription
int

getSafetyRatingsList()

public abstract List<SafetyRating> getSafetyRatingsList()

Output only. Safety ratings.

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

Returns
TypeDescription
List<SafetyRating>

getSafetyRatingsOrBuilder(int index)

public abstract SafetyRatingOrBuilder getSafetyRatingsOrBuilder(int index)

Output only. Safety ratings.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SafetyRatingOrBuilder

getSafetyRatingsOrBuilderList()

public abstract List<? extends SafetyRatingOrBuilder> getSafetyRatingsOrBuilderList()

Output only. Safety ratings.

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

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1.SafetyRatingOrBuilder>