public static final class LlmUtilityServiceGrpc.LlmUtilityServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<LlmUtilityServiceGrpc.LlmUtilityServiceBlockingV2Stub>
Service for LLM related utility functions.
| Modifier and Type | Method and Description |
|---|---|
protected LlmUtilityServiceGrpc.LlmUtilityServiceBlockingV2Stub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
ComputeTokensResponse |
computeTokens(ComputeTokensRequest request)
Return a list of tokens based on the input text.
|
CountTokensResponse |
countTokens(CountTokensRequest request)
Perform a token counting.
|
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReadyprotected LlmUtilityServiceGrpc.LlmUtilityServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<LlmUtilityServiceGrpc.LlmUtilityServiceBlockingV2Stub>public CountTokensResponse countTokens(CountTokensRequest request) throws io.grpc.StatusException
Perform a token counting.
io.grpc.StatusExceptionpublic ComputeTokensResponse computeTokens(ComputeTokensRequest request) throws io.grpc.StatusException
Return a list of tokens based on the input text.
io.grpc.StatusExceptionCopyright © 2026 Google LLC. All rights reserved.