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 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

       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

      SafetyRating getSafetyRatings(int index)
       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

      SafetyRatingOrBuilder getSafetyRatingsOrBuilder(int index)
       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.