public Builder mergeFrom(com.google.cloud.vertexai.api.Candidate other) {
      if (other == com.google.cloud.vertexai.api.Candidate.getDefaultInstance()) return this;
      if (other.getIndex() != 0) {
        setIndex(other.getIndex());
      }
      if (other.hasContent()) {
        mergeContent(other.getContent());
      }
      if (other.getScore() != 0D) {
        setScore(other.getScore());
      }
      if (other.getAvgLogprobs() != 0D) {
        setAvgLogprobs(other.getAvgLogprobs());
      }
      if (other.hasLogprobsResult()) {
        mergeLogprobsResult(other.getLogprobsResult());
      }
      if (other.finishReason_ != 0) {
        setFinishReasonValue(other.getFinishReasonValue());
      }
      if (safetyRatingsBuilder_ == null) {
        if (!other.safetyRatings_.isEmpty()) {
          if (safetyRatings_.isEmpty()) {
            safetyRatings_ = other.safetyRatings_;
            bitField0_ = (bitField0_ & ~0x00000040);
          } else {
            ensureSafetyRatingsIsMutable();
            safetyRatings_.addAll(other.safetyRatings_);
          }
          onChanged();
        }
      } else {
        if (!other.safetyRatings_.isEmpty()) {
          if (safetyRatingsBuilder_.isEmpty()) {
            safetyRatingsBuilder_.dispose();
            safetyRatingsBuilder_ = null;
            safetyRatings_ = other.safetyRatings_;
            bitField0_ = (bitField0_ & ~0x00000040);
            safetyRatingsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getSafetyRatingsFieldBuilder()
                    : null;
          } else {
            safetyRatingsBuilder_.addAllMessages(other.safetyRatings_);
          }
        }
      }
      if (other.hasFinishMessage()) {
        finishMessage_ = other.finishMessage_;
        bitField0_ |= 0x00000080;
        onChanged();
      }
      if (other.hasCitationMetadata()) {
        mergeCitationMetadata(other.getCitationMetadata());
      }
      if (other.hasGroundingMetadata()) {
        mergeGroundingMetadata(other.getGroundingMetadata());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
A response candidate generated from the model.
</pre>

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