public Builder addSafetyRatings(com.google.cloud.vertexai.api.SafetyRating value) {
      if (safetyRatingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSafetyRatingsIsMutable();
        safetyRatings_.add(value);
        onChanged();
      } else {
        safetyRatingsBuilder_.addMessage(value);
      }
      return this;
    }
<pre>
Output only. List of ratings for the safety of a response candidate.

There is at most one rating per category.
</pre>

<code>
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java