@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < candidates_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, candidates_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<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