Cloud AI Platform v1beta1 API - Class GenAiCacheService.GenAiCacheServiceClient (1.0.0-beta10)

public class GenAiCacheService.GenAiCacheServiceClient : ClientBase<GenAiCacheService.GenAiCacheServiceClient>

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class GenAiCacheService.GenAiCacheServiceClient.

Client for GenAiCacheService

Inheritance

object > ClientBase > ClientBaseGenAiCacheServiceGenAiCacheServiceClient > GenAiCacheService.GenAiCacheServiceClient

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

GenAiCacheServiceClient()

protected GenAiCacheServiceClient()

Protected parameterless constructor to allow creation of test doubles.

GenAiCacheServiceClient(CallInvoker)

public GenAiCacheServiceClient(CallInvoker callInvoker)

Creates a new client for GenAiCacheService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

GenAiCacheServiceClient(ChannelBase)

public GenAiCacheServiceClient(ChannelBase channel)

Creates a new client for GenAiCacheService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

GenAiCacheServiceClient(ClientBaseConfiguration)

protected GenAiCacheServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateCachedContent(CreateCachedContentRequest, CallOptions)

public virtual CachedContent CreateCachedContent(CreateCachedContentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CachedContent

The response received from the server.

CreateCachedContent(CreateCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual CachedContent CreateCachedContent(CreateCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
CachedContent

The response received from the server.

CreateCachedContentAsync(CreateCachedContentRequest, CallOptions)

public virtual AsyncUnaryCall<CachedContent> CreateCachedContentAsync(CreateCachedContentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCachedContent

The call object.

CreateCachedContentAsync(CreateCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<CachedContent> CreateCachedContentAsync(CreateCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCachedContent

The call object.

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
Type Description
IAMPolicyIAMPolicyClient

A new IAMPolicy.IAMPolicyClient for the same target as this client.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

DeleteCachedContent(DeleteCachedContentRequest, CallOptions)

public virtual Empty DeleteCachedContent(DeleteCachedContentRequest request, CallOptions options)

Deletes cached content

Parameters
Name Description
request DeleteCachedContentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteCachedContent(DeleteCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteCachedContent(DeleteCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes cached content

Parameters
Name Description
request DeleteCachedContentRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteCachedContentAsync(DeleteCachedContentRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteCachedContentAsync(DeleteCachedContentRequest request, CallOptions options)

Deletes cached content

Parameters
Name Description
request DeleteCachedContentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteCachedContentAsync(DeleteCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteCachedContentAsync(DeleteCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes cached content

Parameters
Name Description
request DeleteCachedContentRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetCachedContent(GetCachedContentRequest, CallOptions)

public virtual CachedContent GetCachedContent(GetCachedContentRequest request, CallOptions options)

Gets cached content configurations

Parameters
Name Description
request GetCachedContentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CachedContent

The response received from the server.

GetCachedContent(GetCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual CachedContent GetCachedContent(GetCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets cached content configurations

Parameters
Name Description
request GetCachedContentRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
CachedContent

The response received from the server.

GetCachedContentAsync(GetCachedContentRequest, CallOptions)

public virtual AsyncUnaryCall<CachedContent> GetCachedContentAsync(GetCachedContentRequest request, CallOptions options)

Gets cached content configurations

Parameters
Name Description
request GetCachedContentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCachedContent

The call object.

GetCachedContentAsync(GetCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<CachedContent> GetCachedContentAsync(GetCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets cached content configurations

Parameters
Name Description
request GetCachedContentRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCachedContent

The call object.

ListCachedContents(ListCachedContentsRequest, CallOptions)

public virtual ListCachedContentsResponse ListCachedContents(ListCachedContentsRequest request, CallOptions options)

Lists cached contents in a project

Parameters
Name Description
request ListCachedContentsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListCachedContentsResponse

The response received from the server.

ListCachedContents(ListCachedContentsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListCachedContentsResponse ListCachedContents(ListCachedContentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists cached contents in a project

Parameters
Name Description
request ListCachedContentsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListCachedContentsResponse

The response received from the server.

ListCachedContentsAsync(ListCachedContentsRequest, CallOptions)

public virtual AsyncUnaryCall<ListCachedContentsResponse> ListCachedContentsAsync(ListCachedContentsRequest request, CallOptions options)

Lists cached contents in a project

Parameters
Name Description
request ListCachedContentsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListCachedContentsResponse

The call object.

ListCachedContentsAsync(ListCachedContentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListCachedContentsResponse> ListCachedContentsAsync(ListCachedContentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists cached contents in a project

Parameters
Name Description
request ListCachedContentsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListCachedContentsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override GenAiCacheService.GenAiCacheServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
GenAiCacheServiceGenAiCacheServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.AIPlatform.V1Beta1.GenAiCacheService.GenAiCacheServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateCachedContent(UpdateCachedContentRequest, CallOptions)

public virtual CachedContent UpdateCachedContent(UpdateCachedContentRequest request, CallOptions options)

Updates cached content configurations

Parameters
Name Description
request UpdateCachedContentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CachedContent

The response received from the server.

UpdateCachedContent(UpdateCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual CachedContent UpdateCachedContent(UpdateCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates cached content configurations

Parameters
Name Description
request UpdateCachedContentRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
CachedContent

The response received from the server.

UpdateCachedContentAsync(UpdateCachedContentRequest, CallOptions)

public virtual AsyncUnaryCall<CachedContent> UpdateCachedContentAsync(UpdateCachedContentRequest request, CallOptions options)

Updates cached content configurations

Parameters
Name Description
request UpdateCachedContentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCachedContent

The call object.

UpdateCachedContentAsync(UpdateCachedContentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<CachedContent> UpdateCachedContentAsync(UpdateCachedContentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates cached content configurations

Parameters
Name Description
request UpdateCachedContentRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCachedContent

The call object.