@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_COUNT_TOKENS:
          serviceImpl.countTokens(
              (com.google.cloud.vertexai.api.CountTokensRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.CountTokensResponse>)
                  responseObserver);
          break;
        case METHODID_COMPUTE_TOKENS:
          serviceImpl.computeTokens(
              (com.google.cloud.vertexai.api.ComputeTokensRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.ComputeTokensResponse>)
                  responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }
<pre>
Return a list of tokens based on the input text.
</pre>
java-vertexai/grpc-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/LlmUtilityServiceGrpc.java