public java.util.List<
              ? extends com.google.cloud.vertexai.api.LogprobsResult.CandidateOrBuilder>
          getCandidatesOrBuilderList() {
        if (candidatesBuilder_ != null) {
          return candidatesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(candidates_);
        }
      }
<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