@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (modality_ != com.google.cloud.vertexai.api.Modality.MODALITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(1, modality_);
    }
    if (tokenCount_ != 0) {
      output.writeInt32(2, tokenCount_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Number of tokens.
</pre>

<code>int32 token_count = 2;</code>

@return The tokenCount.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ModalityTokenCount.java