Class GrpcLlmUtilityServiceStub
java.lang.Object
com.google.cloud.aiplatform.v1beta1.stub.LlmUtilityServiceStub
com.google.cloud.aiplatform.v1beta1.stub.GrpcLlmUtilityServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcLlmUtilityServiceStub
extends LlmUtilityServiceStub
gRPC stub implementation for the LlmUtilityService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcLlmUtilityServiceStub(LlmUtilityServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcLlmUtilityServiceStub, using the given settings.protectedGrpcLlmUtilityServiceStub(LlmUtilityServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcLlmUtilityServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcLlmUtilityServiceStubcreate(ClientContext clientContext) static final GrpcLlmUtilityServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcLlmUtilityServiceStubcreate(LlmUtilityServiceStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcLlmUtilityServiceStub
protected GrpcLlmUtilityServiceStub(LlmUtilityServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcLlmUtilityServiceStub, 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.- Throws:
IOException
-
GrpcLlmUtilityServiceStub
protected GrpcLlmUtilityServiceStub(LlmUtilityServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcLlmUtilityServiceStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcLlmUtilityServiceStub create(LlmUtilityServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcLlmUtilityServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcLlmUtilityServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
computeTokensCallable
- Overrides:
computeTokensCallablein classLlmUtilityServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classLlmUtilityServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,LlmUtilityServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classLlmUtilityServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classLlmUtilityServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classLlmUtilityServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classLlmUtilityServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classLlmUtilityServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classLlmUtilityServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-