Interface GenAiCacheServiceGrpc.AsyncService (3.47.0)

public static interface GenAiCacheServiceGrpc.AsyncService

Service for managing Vertex AI's CachedContent resource.

Methods

createCachedContent(CreateCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

public default 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 default 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 default 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 default 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 default void updateCachedContent(UpdateCachedContentRequest request, StreamObserver<CachedContent> responseObserver)

Updates cached content configurations

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