Class GrpcGenAiCacheServiceStub
java.lang.Object
com.google.cloud.aiplatform.v1beta1.stub.GenAiCacheServiceStub
com.google.cloud.aiplatform.v1beta1.stub.GrpcGenAiCacheServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcGenAiCacheServiceStub
extends GenAiCacheServiceStub
gRPC stub implementation for the GenAiCacheService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcGenAiCacheServiceStub(GenAiCacheServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcGenAiCacheServiceStub, using the given settings.protectedGrpcGenAiCacheServiceStub(GenAiCacheServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcGenAiCacheServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcGenAiCacheServiceStubcreate(ClientContext clientContext) static final GrpcGenAiCacheServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcGenAiCacheServiceStubcreate(GenAiCacheServiceStubSettings settings) UnaryCallable<DeleteCachedContentRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcGenAiCacheServiceStub
protected GrpcGenAiCacheServiceStub(GenAiCacheServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcGenAiCacheServiceStub, 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
-
GrpcGenAiCacheServiceStub
protected GrpcGenAiCacheServiceStub(GenAiCacheServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcGenAiCacheServiceStub, 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 GrpcGenAiCacheServiceStub create(GenAiCacheServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcGenAiCacheServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcGenAiCacheServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createCachedContentCallable
- Overrides:
createCachedContentCallablein classGenAiCacheServiceStub
-
getCachedContentCallable
- Overrides:
getCachedContentCallablein classGenAiCacheServiceStub
-
updateCachedContentCallable
- Overrides:
updateCachedContentCallablein classGenAiCacheServiceStub
-
deleteCachedContentCallable
public UnaryCallable<DeleteCachedContentRequest,com.google.protobuf.Empty> deleteCachedContentCallable()- Overrides:
deleteCachedContentCallablein classGenAiCacheServiceStub
-
listCachedContentsCallable
public UnaryCallable<ListCachedContentsRequest,ListCachedContentsResponse> listCachedContentsCallable()- Overrides:
listCachedContentsCallablein classGenAiCacheServiceStub
-
listCachedContentsPagedCallable
public UnaryCallable<ListCachedContentsRequest,GenAiCacheServiceClient.ListCachedContentsPagedResponse> listCachedContentsPagedCallable()- Overrides:
listCachedContentsPagedCallablein classGenAiCacheServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classGenAiCacheServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,GenAiCacheServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classGenAiCacheServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classGenAiCacheServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classGenAiCacheServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classGenAiCacheServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classGenAiCacheServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGenAiCacheServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-