private void ensureSafetyRatingsIsMutable() {
      if (!((bitField0_ & 0x00000040) != 0)) {
        safetyRatings_ =
            new java.util.ArrayList<com.google.cloud.vertexai.api.SafetyRating>(safetyRatings_);
        bitField0_ |= 0x00000040;
      }
    }
<pre>
Output only. The reason why the model stopped generating tokens.
If empty, the model has not stopped generating the tokens.
</pre>

<code>
.google.cloud.vertexai.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java