@java.lang.Override
    public com.google.cloud.vertexai.api.Modality getModality() {
      com.google.cloud.vertexai.api.Modality result =
          com.google.cloud.vertexai.api.Modality.forNumber(modality_);
      return result == null ? com.google.cloud.vertexai.api.Modality.UNRECOGNIZED : result;
    }
<pre>
The modality associated with this token count.
</pre>

<code>.google.cloud.vertexai.v1.Modality modality = 1;</code>

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