Cloud AI Platform v1beta1 API - Class GenAiCacheServiceClientImpl (1.0.0-beta05)

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.

Inheritance

object > GenAiCacheServiceClient > GenAiCacheServiceClientImpl

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

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
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides