Class GenAiCacheServiceGrpc.GenAiCacheServiceStub (3.46.0)

public static final class GenAiCacheServiceGrpc.GenAiCacheServiceStub extends AbstractAsyncStub<GenAiCacheServiceGrpc.GenAiCacheServiceStub>

A stub to allow clients to do asynchronous rpc calls to service GenAiCacheService.

Service for managing Vertex AI's CachedContent resource.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > GenAiCacheServiceGrpc.GenAiCacheServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected GenAiCacheServiceGrpc.GenAiCacheServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
GenAiCacheServiceGrpc.GenAiCacheServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createCachedContent(CreateCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

public void createCachedContent(CreateCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.

Parameters
Name Description
request CreateCachedContentRequest
responseObserver io.grpc.stub.StreamObserver<CachedContent>

deleteCachedContent(DeleteCachedContentRequest request, StreamObserver<Empty> responseObserver)

public void deleteCachedContent(DeleteCachedContentRequest request, StreamObserver<Empty> responseObserver)

Deletes cached content

Parameters
Name Description
request DeleteCachedContentRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getCachedContent(GetCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

public void getCachedContent(GetCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

Gets cached content configurations

Parameters
Name Description
request GetCachedContentRequest
responseObserver io.grpc.stub.StreamObserver<CachedContent>

listCachedContents(ListCachedContentsRequest request, StreamObserver<ListCachedContentsResponse> responseObserver)

public void listCachedContents(ListCachedContentsRequest request, StreamObserver<ListCachedContentsResponse> responseObserver)

Lists cached contents in a project

Parameters
Name Description
request ListCachedContentsRequest
responseObserver io.grpc.stub.StreamObserver<ListCachedContentsResponse>

updateCachedContent(UpdateCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

public void updateCachedContent(UpdateCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

Updates cached content configurations

Parameters
Name Description
request UpdateCachedContentRequest
responseObserver io.grpc.stub.StreamObserver<CachedContent>