public Builder addCandidates(
          int index,
          com.google.cloud.vertexai.api.LogprobsResult.Candidate.Builder builderForValue) {
        if (candidatesBuilder_ == null) {
          ensureCandidatesIsMutable();
          candidates_.add(index, builderForValue.build());
          onChanged();
        } else {
          candidatesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
<pre>
Sorted by log probability in descending order.
</pre>

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