public sealed class GenAiCacheServiceClientImpl : GenAiCacheServiceClient
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class GenAiCacheServiceClientImpl.
GenAiCacheService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Remarks
Service for managing Vertex AI's CachedContent resource.
Constructors
GenAiCacheServiceClientImpl(GenAiCacheServiceClient, GenAiCacheServiceSettings, ILogger)
public GenAiCacheServiceClientImpl(GenAiCacheService.GenAiCacheServiceClient grpcClient, GenAiCacheServiceSettings settings, ILogger logger)
Constructs a client wrapper for the GenAiCacheService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
GenAiCacheServiceGenAiCacheServiceClient The underlying gRPC client. |
settings |
GenAiCacheServiceSettings The base GenAiCacheServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override GenAiCacheService.GenAiCacheServiceClient GrpcClient { get; }
The underlying gRPC GenAiCacheService client
Property Value | |
---|---|
Type | Description |
GenAiCacheServiceGenAiCacheServiceClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
CreateCachedContent(CreateCachedContentRequest, CallSettings)
public override CachedContent CreateCachedContent(CreateCachedContentRequest request, CallSettings callSettings = null)
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 The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CachedContent |
The RPC response. |
CreateCachedContentAsync(CreateCachedContentRequest, CallSettings)
public override Task<CachedContent> CreateCachedContentAsync(CreateCachedContentRequest request, CallSettings callSettings = null)
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 The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCachedContent |
A Task containing the RPC response. |
DeleteCachedContent(DeleteCachedContentRequest, CallSettings)
public override void DeleteCachedContent(DeleteCachedContentRequest request, CallSettings callSettings = null)
Deletes cached content
Parameters | |
---|---|
Name | Description |
request |
DeleteCachedContentRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
DeleteCachedContentAsync(DeleteCachedContentRequest, CallSettings)
public override Task DeleteCachedContentAsync(DeleteCachedContentRequest request, CallSettings callSettings = null)
Deletes cached content
Parameters | |
---|---|
Name | Description |
request |
DeleteCachedContentRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
GetCachedContent(GetCachedContentRequest, CallSettings)
public override CachedContent GetCachedContent(GetCachedContentRequest request, CallSettings callSettings = null)
Gets cached content configurations
Parameters | |
---|---|
Name | Description |
request |
GetCachedContentRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CachedContent |
The RPC response. |
GetCachedContentAsync(GetCachedContentRequest, CallSettings)
public override Task<CachedContent> GetCachedContentAsync(GetCachedContentRequest request, CallSettings callSettings = null)
Gets cached content configurations
Parameters | |
---|---|
Name | Description |
request |
GetCachedContentRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCachedContent |
A Task containing the RPC response. |
ListCachedContents(ListCachedContentsRequest, CallSettings)
public override PagedEnumerable<ListCachedContentsResponse, CachedContent> ListCachedContents(ListCachedContentsRequest request, CallSettings callSettings = null)
Lists cached contents in a project
Parameters | |
---|---|
Name | Description |
request |
ListCachedContentsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCachedContentsResponseCachedContent |
A pageable sequence of CachedContent resources. |
ListCachedContentsAsync(ListCachedContentsRequest, CallSettings)
public override PagedAsyncEnumerable<ListCachedContentsResponse, CachedContent> ListCachedContentsAsync(ListCachedContentsRequest request, CallSettings callSettings = null)
Lists cached contents in a project
Parameters | |
---|---|
Name | Description |
request |
ListCachedContentsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCachedContentsResponseCachedContent |
A pageable asynchronous sequence of CachedContent resources. |
UpdateCachedContent(UpdateCachedContentRequest, CallSettings)
public override CachedContent UpdateCachedContent(UpdateCachedContentRequest request, CallSettings callSettings = null)
Updates cached content configurations
Parameters | |
---|---|
Name | Description |
request |
UpdateCachedContentRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CachedContent |
The RPC response. |
UpdateCachedContentAsync(UpdateCachedContentRequest, CallSettings)
public override Task<CachedContent> UpdateCachedContentAsync(UpdateCachedContentRequest request, CallSettings callSettings = null)
Updates cached content configurations
Parameters | |
---|---|
Name | Description |
request |
UpdateCachedContentRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCachedContent |
A Task containing the RPC response. |