Package com.google.cloud.aiplatform.v1
Interface GenerateContentResponse.PromptFeedbackOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GenerateContentResponse.PromptFeedback,GenerateContentResponse.PromptFeedback.Builder
- Enclosing class:
- GenerateContentResponse
public static interface GenerateContentResponse.PromptFeedbackOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOutput only.Output only.com.google.protobuf.ByteStringOutput only.intOutput only.getSafetyRatings(int index) Output only.intOutput only.Output only.getSafetyRatingsOrBuilder(int index) Output only.List<? extends SafetyRatingOrBuilder>Output only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getBlockReasonValue
int getBlockReasonValue()Output only. Blocked reason.
.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.BlockedReason block_reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for blockReason.
-
getBlockReason
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:
- The blockReason.
-
getSafetyRatingsList
List<SafetyRating> getSafetyRatingsList()Output only. Safety ratings.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSafetyRatings
Output only. Safety ratings.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSafetyRatingsCount
int getSafetyRatingsCount()Output only. Safety ratings.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSafetyRatingsOrBuilderList
List<? extends SafetyRatingOrBuilder> getSafetyRatingsOrBuilderList()Output only. Safety ratings.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSafetyRatingsOrBuilder
Output only. Safety ratings.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getBlockReasonMessage
String getBlockReasonMessage()Output only. A readable block reason message.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The blockReasonMessage.
-
getBlockReasonMessageBytes
com.google.protobuf.ByteString getBlockReasonMessageBytes()Output only. A readable block reason message.
string block_reason_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for blockReasonMessage.
-