public Builder mergeFrom(com.google.cloud.vertexai.api.LogprobsResult other) {
      if (other == com.google.cloud.vertexai.api.LogprobsResult.getDefaultInstance()) return this;
      if (topCandidatesBuilder_ == null) {
        if (!other.topCandidates_.isEmpty()) {
          if (topCandidates_.isEmpty()) {
            topCandidates_ = other.topCandidates_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureTopCandidatesIsMutable();
            topCandidates_.addAll(other.topCandidates_);
          }
          onChanged();
        }
      } else {
        if (!other.topCandidates_.isEmpty()) {
          if (topCandidatesBuilder_.isEmpty()) {
            topCandidatesBuilder_.dispose();
            topCandidatesBuilder_ = null;
            topCandidates_ = other.topCandidates_;
            bitField0_ = (bitField0_ & ~0x00000001);
            topCandidatesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getTopCandidatesFieldBuilder()
                    : null;
          } else {
            topCandidatesBuilder_.addAllMessages(other.topCandidates_);
          }
        }
      }
      if (chosenCandidatesBuilder_ == null) {
        if (!other.chosenCandidates_.isEmpty()) {
          if (chosenCandidates_.isEmpty()) {
            chosenCandidates_ = other.chosenCandidates_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureChosenCandidatesIsMutable();
            chosenCandidates_.addAll(other.chosenCandidates_);
          }
          onChanged();
        }
      } else {
        if (!other.chosenCandidates_.isEmpty()) {
          if (chosenCandidatesBuilder_.isEmpty()) {
            chosenCandidatesBuilder_.dispose();
            chosenCandidatesBuilder_ = null;
            chosenCandidates_ = other.chosenCandidates_;
            bitField0_ = (bitField0_ & ~0x00000002);
            chosenCandidatesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getChosenCandidatesFieldBuilder()
                    : null;
          } else {
            chosenCandidatesBuilder_.addAllMessages(other.chosenCandidates_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<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