public Builder mergeFrom(com.google.cloud.vertexai.api.ModalityTokenCount other) {
      if (other == com.google.cloud.vertexai.api.ModalityTokenCount.getDefaultInstance())
        return this;
      if (other.modality_ != 0) {
        setModalityValue(other.getModalityValue());
      }
      if (other.getTokenCount() != 0) {
        setTokenCount(other.getTokenCount());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
Represents token counting info for a single modality.
</pre>

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