@java.lang.Override
  public int getCandidateCount() {
    return candidateCount_;
  }
<pre>
Optional. Number of candidates to generate.
</pre>

<code>optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The candidateCount.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java