Class LlmUtilityServiceGrpc (0.6.0)

publicfinalclass LlmUtilityServiceGrpc

Service for LLM related utility functions.

Inheritance

java.lang.Object > LlmUtilityServiceGrpc

Static Fields

SERVICE_NAME

publicstaticfinalStringSERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(LlmUtilityServiceGrpc.AsyncService service)

publicstaticfinalServerServiceDefinitionbindService(LlmUtilityServiceGrpc.AsyncServiceservice)
Parameter
Name Description
service LlmUtilityServiceGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getComputeTokensMethod()

publicstaticMethodDescriptor<ComputeTokensRequest,ComputeTokensResponse>getComputeTokensMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ComputeTokensRequest,ComputeTokensResponse>

getCountTokensMethod()

publicstaticMethodDescriptor<CountTokensRequest,CountTokensResponse>getCountTokensMethod()
Returns
Type Description
io.grpc.MethodDescriptor<CountTokensRequest,CountTokensResponse>

getServiceDescriptor()

publicstaticServiceDescriptorgetServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

newBlockingStub(Channel channel)

publicstaticLlmUtilityServiceGrpc.LlmUtilityServiceBlockingStubnewBlockingStub(Channelchannel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
LlmUtilityServiceGrpc.LlmUtilityServiceBlockingStub

newFutureStub(Channel channel)

publicstaticLlmUtilityServiceGrpc.LlmUtilityServiceFutureStubnewFutureStub(Channelchannel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub

newStub(Channel channel)

publicstaticLlmUtilityServiceGrpc.LlmUtilityServiceStubnewStub(Channelchannel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
LlmUtilityServiceGrpc.LlmUtilityServiceStub

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年11月19日 UTC.