public Builder addAllChosenCandidates(
        java.lang.Iterable<? extends com.google.cloud.vertexai.api.LogprobsResult.Candidate>
            values) {
      if (chosenCandidatesBuilder_ == null) {
        ensureChosenCandidatesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chosenCandidates_);
        onChanged();
      } else {
        chosenCandidatesBuilder_.addAllMessages(values);
      }
      return this;
    }
<pre>
Length = total number of decoding steps.
The chosen candidates may or may not be in top_candidates.
</pre>

<code>repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/LogprobsResult.java