@java.lang.Override
  public com.google.cloud.vertexai.api.Candidate.FinishReason getFinishReason() {
    com.google.cloud.vertexai.api.Candidate.FinishReason result =
        com.google.cloud.vertexai.api.Candidate.FinishReason.forNumber(finishReason_);
    return result == null
        ? com.google.cloud.vertexai.api.Candidate.FinishReason.UNRECOGNIZED
        : result;
  }
<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 The finishReason.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java