Interface LlmUtilityServiceGrpc.AsyncService (3.73.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static interface LlmUtilityServiceGrpc.AsyncService
Service for LLM related utility functions.
Methods
public default void computeTokens(ComputeTokensRequest request, StreamObserver<ComputeTokensResponse> responseObserver)
Return a list of tokens based on the input text.
public default void countTokens(CountTokensRequest request, StreamObserver<CountTokensResponse> responseObserver)
Perform a token counting.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,["# Interface LlmUtilityServiceGrpc.AsyncService (3.73.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.73.0 (latest)](/java/docs/reference/google-cloud-aiplatform/latest/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.71.0](/java/docs/reference/google-cloud-aiplatform/3.71.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.69.0](/java/docs/reference/google-cloud-aiplatform/3.69.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.68.0](/java/docs/reference/google-cloud-aiplatform/3.68.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.65.0](/java/docs/reference/google-cloud-aiplatform/3.65.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.64.0](/java/docs/reference/google-cloud-aiplatform/3.64.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.63.0](/java/docs/reference/google-cloud-aiplatform/3.63.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.61.0](/java/docs/reference/google-cloud-aiplatform/3.61.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.60.0](/java/docs/reference/google-cloud-aiplatform/3.60.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.59.0](/java/docs/reference/google-cloud-aiplatform/3.59.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.58.0](/java/docs/reference/google-cloud-aiplatform/3.58.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.57.0](/java/docs/reference/google-cloud-aiplatform/3.57.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.56.0](/java/docs/reference/google-cloud-aiplatform/3.56.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.55.0](/java/docs/reference/google-cloud-aiplatform/3.55.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.54.0](/java/docs/reference/google-cloud-aiplatform/3.54.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.53.0](/java/docs/reference/google-cloud-aiplatform/3.53.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.52.0](/java/docs/reference/google-cloud-aiplatform/3.52.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.50.0](/java/docs/reference/google-cloud-aiplatform/3.50.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.49.0](/java/docs/reference/google-cloud-aiplatform/3.49.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.48.0](/java/docs/reference/google-cloud-aiplatform/3.48.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.47.0](/java/docs/reference/google-cloud-aiplatform/3.47.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.46.0](/java/docs/reference/google-cloud-aiplatform/3.46.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.45.0](/java/docs/reference/google-cloud-aiplatform/3.45.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.44.0](/java/docs/reference/google-cloud-aiplatform/3.44.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.43.0](/java/docs/reference/google-cloud-aiplatform/3.43.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.42.0](/java/docs/reference/google-cloud-aiplatform/3.42.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.41.0](/java/docs/reference/google-cloud-aiplatform/3.41.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.40.0](/java/docs/reference/google-cloud-aiplatform/3.40.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.38.0](/java/docs/reference/google-cloud-aiplatform/3.38.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.37.0](/java/docs/reference/google-cloud-aiplatform/3.37.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.36.0](/java/docs/reference/google-cloud-aiplatform/3.36.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.35.0](/java/docs/reference/google-cloud-aiplatform/3.35.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.34.0](/java/docs/reference/google-cloud-aiplatform/3.34.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.33.0](/java/docs/reference/google-cloud-aiplatform/3.33.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.32.0](/java/docs/reference/google-cloud-aiplatform/3.32.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.31.0](/java/docs/reference/google-cloud-aiplatform/3.31.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.30.0](/java/docs/reference/google-cloud-aiplatform/3.30.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.29.0](/java/docs/reference/google-cloud-aiplatform/3.29.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.28.0](/java/docs/reference/google-cloud-aiplatform/3.28.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.25.0](/java/docs/reference/google-cloud-aiplatform/3.25.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.24.0](/java/docs/reference/google-cloud-aiplatform/3.24.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.23.0](/java/docs/reference/google-cloud-aiplatform/3.23.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.22.0](/java/docs/reference/google-cloud-aiplatform/3.22.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.21.0](/java/docs/reference/google-cloud-aiplatform/3.21.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.20.0](/java/docs/reference/google-cloud-aiplatform/3.20.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.19.0](/java/docs/reference/google-cloud-aiplatform/3.19.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.18.0](/java/docs/reference/google-cloud-aiplatform/3.18.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.17.0](/java/docs/reference/google-cloud-aiplatform/3.17.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.16.0](/java/docs/reference/google-cloud-aiplatform/3.16.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.15.0](/java/docs/reference/google-cloud-aiplatform/3.15.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.14.0](/java/docs/reference/google-cloud-aiplatform/3.14.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.13.0](/java/docs/reference/google-cloud-aiplatform/3.13.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.12.0](/java/docs/reference/google-cloud-aiplatform/3.12.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.11.0](/java/docs/reference/google-cloud-aiplatform/3.11.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.10.0](/java/docs/reference/google-cloud-aiplatform/3.10.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.9.0](/java/docs/reference/google-cloud-aiplatform/3.9.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.8.0](/java/docs/reference/google-cloud-aiplatform/3.8.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.7.0](/java/docs/reference/google-cloud-aiplatform/3.7.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.6.0](/java/docs/reference/google-cloud-aiplatform/3.6.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.5.0](/java/docs/reference/google-cloud-aiplatform/3.5.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.4.2](/java/docs/reference/google-cloud-aiplatform/3.4.2/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.3.0](/java/docs/reference/google-cloud-aiplatform/3.3.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.2.0](/java/docs/reference/google-cloud-aiplatform/3.2.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [3.0.0](/java/docs/reference/google-cloud-aiplatform/3.0.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [2.9.8](/java/docs/reference/google-cloud-aiplatform/2.9.8/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [2.8.9](/java/docs/reference/google-cloud-aiplatform/2.8.9/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [2.7.4](/java/docs/reference/google-cloud-aiplatform/2.7.4/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [2.5.3](/java/docs/reference/google-cloud-aiplatform/2.5.3/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService)\n- [2.4.0](/java/docs/reference/google-cloud-aiplatform/2.4.0/com.google.cloud.aiplatform.v1.LlmUtilityServiceGrpc.AsyncService) \n\n public static interface LlmUtilityServiceGrpc.AsyncService\n\nService for LLM related utility functions.\n\nMethods\n-------\n\n### computeTokens(ComputeTokensRequest request, StreamObserver\\\u003cComputeTokensResponse\\\u003e responseObserver)\n\n public default void computeTokens(ComputeTokensRequest request, StreamObserver\u003cComputeTokensResponse\u003e responseObserver)\n\nReturn a list of tokens based on the input text.\n\n### countTokens(CountTokensRequest request, StreamObserver\\\u003cCountTokensResponse\\\u003e responseObserver)\n\n public default void countTokens(CountTokensRequest request, StreamObserver\u003cCountTokensResponse\u003e responseObserver)\n\nPerform a token counting."]]