Class HttpJsonLlmUtilityServiceStub (0.3.0)

publicclass HttpJsonLlmUtilityServiceStubextendsLlmUtilityServiceStub

REST stub implementation for the LlmUtilityService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

LlmUtilityServiceStub > java.lang.Object > HttpJsonLlmUtilityServiceStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonLlmUtilityServiceStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonLlmUtilityServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonLlmUtilityServiceStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonLlmUtilityServiceStub
Exceptions
Type Description
IOException

create(LlmUtilityServiceStubSettings settings)

publicstaticfinalHttpJsonLlmUtilityServiceStubcreate(LlmUtilityServiceStubSettingssettings)
Parameter
Name Description
settings LlmUtilityServiceStubSettings
Returns
Type Description
HttpJsonLlmUtilityServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonLlmUtilityServiceStub(LlmUtilityServiceStubSettings settings, ClientContext clientContext)

protectedHttpJsonLlmUtilityServiceStub(LlmUtilityServiceStubSettingssettings,ClientContextclientContext)

Constructs an instance of HttpJsonLlmUtilityServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings LlmUtilityServiceStubSettings
clientContext ClientContext

HttpJsonLlmUtilityServiceStub(LlmUtilityServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonLlmUtilityServiceStub(LlmUtilityServiceStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonLlmUtilityServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings LlmUtilityServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

computeTokensCallable()

publicUnaryCallable<ComputeTokensRequest,ComputeTokensResponse>computeTokensCallable()
Returns
Type Description
UnaryCallable<ComputeTokensRequest,ComputeTokensResponse>
Overrides

countTokensCallable()

publicUnaryCallable<CountTokensRequest,CountTokensResponse>countTokensCallable()
Returns
Type Description
UnaryCallable<CountTokensRequest,CountTokensResponse>
Overrides

getIamPolicyCallable()

publicUnaryCallable<GetIamPolicyRequest,Policy>getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

publicUnaryCallable<GetLocationRequest,Location>getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listLocationsCallable()

publicUnaryCallable<ListLocationsRequest,ListLocationsResponse>listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

publicUnaryCallable<ListLocationsRequest,LlmUtilityServiceClient.ListLocationsPagedResponse>listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

setIamPolicyCallable()

publicUnaryCallable<SetIamPolicyRequest,Policy>setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

testIamPermissionsCallable()

publicUnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

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.