private void buildPartial0(com.google.cloud.vertexai.api.Candidate result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.index_ = index_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.score_ = score_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.avgLogprobs_ = avgLogprobs_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.logprobsResult_ =
            logprobsResultBuilder_ == null ? logprobsResult_ : logprobsResultBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.finishReason_ = finishReason_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.finishMessage_ = finishMessage_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.citationMetadata_ =
            citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build();
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.groundingMetadata_ =
            groundingMetadataBuilder_ == null
                ? groundingMetadata_
                : groundingMetadataBuilder_.build();
        to_bitField0_ |= 0x00000010;
      }
      result.bitField0_ |= to_bitField0_;
    }
<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