public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
            getCountTokensMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.CountTokensRequest,
                    com.google.cloud.vertexai.api.CountTokensResponse>(
                    service, METHODID_COUNT_TOKENS)))
        .addMethod(
            getComputeTokensMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.ComputeTokensRequest,
                    com.google.cloud.vertexai.api.ComputeTokensResponse>(
                    service, METHODID_COMPUTE_TOKENS)))
        .build();
  }
<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