public Builder setTopCandidates(
        int index, com.google.cloud.vertexai.api.LogprobsResult.TopCandidates value) {
      if (topCandidatesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTopCandidatesIsMutable();
        topCandidates_.set(index, value);
        onChanged();
      } else {
        topCandidatesBuilder_.setMessage(index, value);
      }
      return this;
    }
<pre>
Length = total number of decoding steps.
</pre>

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