public int getTokensCount() {
    return tokens_.size();
  }
<pre>
A list of tokens from the input.
</pre>

<code>repeated bytes tokens = 1;</code>

@return The count of tokens.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/TokensInfo.java