public Builder setSafetyRatings(
          int index, com.google.cloud.vertexai.api.SafetyRating.Builder builderForValue) {
        if (safetyRatingsBuilder_ == null) {
          ensureSafetyRatingsIsMutable();
          safetyRatings_.set(index, builderForValue.build());
          onChanged();
        } else {
          safetyRatingsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
<pre>
Output only. Safety ratings.
</pre>

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