private void buildPartialRepeatedFields(com.google.cloud.vertexai.api.LogprobsResult result) {
      if (topCandidatesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          topCandidates_ = java.util.Collections.unmodifiableList(topCandidates_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.topCandidates_ = topCandidates_;
      } else {
        result.topCandidates_ = topCandidatesBuilder_.build();
      }
      if (chosenCandidatesBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          chosenCandidates_ = java.util.Collections.unmodifiableList(chosenCandidates_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.chosenCandidates_ = chosenCandidates_;
      } else {
        result.chosenCandidates_ = chosenCandidatesBuilder_.build();
      }
    }
<pre>
Logprobs Result
</pre>

Protobuf type {@code google.cloud.vertexai.v1.LogprobsResult}
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/LogprobsResult.java