@java.lang.Override
  public boolean hasCandidateCount() {
    return ((bitField0_ & 0x00000008) != 0);
  }
<pre>
Optional. Number of candidates to generate.
</pre>

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

@return Whether the candidateCount field is set.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java