Interface SafetyRatingOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SafetyRating, SafetyRating.Builder

@Generated public interface SafetyRatingOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getCategoryValue

      int getCategoryValue()
       Output only. Harm category.
       
      .google.cloud.aiplatform.v1.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The enum numeric value on the wire for category.
    • getCategory

      HarmCategory getCategory()
       Output only. Harm category.
       
      .google.cloud.aiplatform.v1.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The category.
    • getProbabilityValue

      int getProbabilityValue()
       Output only. Harm probability levels in the content.
       
      .google.cloud.aiplatform.v1.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The enum numeric value on the wire for probability.
    • getProbability

       Output only. Harm probability levels in the content.
       
      .google.cloud.aiplatform.v1.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The probability.
    • getProbabilityScore

      float getProbabilityScore()
       Output only. Harm probability score.
       
      float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The probabilityScore.
    • getSeverityValue

      int getSeverityValue()
       Output only. Harm severity levels in the content.
       
      .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The enum numeric value on the wire for severity.
    • getSeverity

       Output only. Harm severity levels in the content.
       
      .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The severity.
    • getSeverityScore

      float getSeverityScore()
       Output only. Harm severity score.
       
      float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The severityScore.
    • getBlocked

      boolean getBlocked()
       Output only. Indicates whether the content was filtered out because of this
       rating.
       
      bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The blocked.