public Builder mergeFrom(com.google.cloud.vertexai.api.CountTokensResponse other) {
      if (other == com.google.cloud.vertexai.api.CountTokensResponse.getDefaultInstance())
        return this;
      if (other.getTotalTokens() != 0) {
        setTotalTokens(other.getTotalTokens());
      }
      if (other.getTotalBillableCharacters() != 0) {
        setTotalBillableCharacters(other.getTotalBillableCharacters());
      }
      if (promptTokensDetailsBuilder_ == null) {
        if (!other.promptTokensDetails_.isEmpty()) {
          if (promptTokensDetails_.isEmpty()) {
            promptTokensDetails_ = other.promptTokensDetails_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensurePromptTokensDetailsIsMutable();
            promptTokensDetails_.addAll(other.promptTokensDetails_);
          }
          onChanged();
        }
      } else {
        if (!other.promptTokensDetails_.isEmpty()) {
          if (promptTokensDetailsBuilder_.isEmpty()) {
            promptTokensDetailsBuilder_.dispose();
            promptTokensDetailsBuilder_ = null;
            promptTokensDetails_ = other.promptTokensDetails_;
            bitField0_ = (bitField0_ & ~0x00000004);
            promptTokensDetailsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getPromptTokensDetailsFieldBuilder()
                    : null;
          } else {
            promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
Response message for [PredictionService.CountTokens][].
</pre>

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