Recommendations AI v1beta1 API - Class PredictionApiKeyRegistry.PredictionApiKeyRegistryClient (2.0.0-beta04)

public class PredictionApiKeyRegistry.PredictionApiKeyRegistryClient : ClientBase<PredictionApiKeyRegistry.PredictionApiKeyRegistryClient>

Reference documentation and code samples for the Recommendations AI v1beta1 API class PredictionApiKeyRegistry.PredictionApiKeyRegistryClient.

Client for PredictionApiKeyRegistry

Inheritance

object > ClientBase > ClientBasePredictionApiKeyRegistryPredictionApiKeyRegistryClient > PredictionApiKeyRegistry.PredictionApiKeyRegistryClient

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Constructors

PredictionApiKeyRegistryClient()

protected PredictionApiKeyRegistryClient()

Protected parameterless constructor to allow creation of test doubles.

PredictionApiKeyRegistryClient(CallInvoker)

public PredictionApiKeyRegistryClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

PredictionApiKeyRegistryClient(ChannelBase)

public PredictionApiKeyRegistryClient(ChannelBase channel)

Creates a new client for PredictionApiKeyRegistry

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

PredictionApiKeyRegistryClient(ClientBaseConfiguration)

protected PredictionApiKeyRegistryClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest, CallOptions)

public virtual PredictionApiKeyRegistration CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, CallOptions options)

Register an API key for use with predict method.

Parameters
NameDescription
requestCreatePredictionApiKeyRegistrationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
PredictionApiKeyRegistration

The response received from the server.

CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest, Metadata, DateTime?, CancellationToken)

public virtual PredictionApiKeyRegistration CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Register an API key for use with predict method.

Parameters
NameDescription
requestCreatePredictionApiKeyRegistrationRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
PredictionApiKeyRegistration

The response received from the server.

CreatePredictionApiKeyRegistrationAsync(CreatePredictionApiKeyRegistrationRequest, CallOptions)

public virtual AsyncUnaryCall<PredictionApiKeyRegistration> CreatePredictionApiKeyRegistrationAsync(CreatePredictionApiKeyRegistrationRequest request, CallOptions options)

Register an API key for use with predict method.

Parameters
NameDescription
requestCreatePredictionApiKeyRegistrationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPredictionApiKeyRegistration

The call object.

CreatePredictionApiKeyRegistrationAsync(CreatePredictionApiKeyRegistrationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<PredictionApiKeyRegistration> CreatePredictionApiKeyRegistrationAsync(CreatePredictionApiKeyRegistrationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Register an API key for use with predict method.

Parameters
NameDescription
requestCreatePredictionApiKeyRegistrationRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallPredictionApiKeyRegistration

The call object.

DeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest, CallOptions)

public virtual Empty DeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, CallOptions options)

Unregister an apiKey from using for predict method.

Parameters
NameDescription
requestDeletePredictionApiKeyRegistrationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest, Metadata, DateTime?, CancellationToken)

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

Unregister an apiKey from using for predict method.

Parameters
NameDescription
requestDeletePredictionApiKeyRegistrationRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeletePredictionApiKeyRegistrationAsync(DeletePredictionApiKeyRegistrationRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeletePredictionApiKeyRegistrationAsync(DeletePredictionApiKeyRegistrationRequest request, CallOptions options)

Unregister an apiKey from using for predict method.

Parameters
NameDescription
requestDeletePredictionApiKeyRegistrationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeletePredictionApiKeyRegistrationAsync(DeletePredictionApiKeyRegistrationRequest, Metadata, DateTime?, CancellationToken)

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

Unregister an apiKey from using for predict method.

Parameters
NameDescription
requestDeletePredictionApiKeyRegistrationRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest, CallOptions)

public virtual ListPredictionApiKeyRegistrationsResponse ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, CallOptions options)

List the registered apiKeys for use with predict method.

Parameters
NameDescription
requestListPredictionApiKeyRegistrationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListPredictionApiKeyRegistrationsResponse

The response received from the server.

ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListPredictionApiKeyRegistrationsResponse ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List the registered apiKeys for use with predict method.

Parameters
NameDescription
requestListPredictionApiKeyRegistrationsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListPredictionApiKeyRegistrationsResponse

The response received from the server.

ListPredictionApiKeyRegistrationsAsync(ListPredictionApiKeyRegistrationsRequest, CallOptions)

public virtual AsyncUnaryCall<ListPredictionApiKeyRegistrationsResponse> ListPredictionApiKeyRegistrationsAsync(ListPredictionApiKeyRegistrationsRequest request, CallOptions options)

List the registered apiKeys for use with predict method.

Parameters
NameDescription
requestListPredictionApiKeyRegistrationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListPredictionApiKeyRegistrationsResponse

The call object.

ListPredictionApiKeyRegistrationsAsync(ListPredictionApiKeyRegistrationsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListPredictionApiKeyRegistrationsResponse> ListPredictionApiKeyRegistrationsAsync(ListPredictionApiKeyRegistrationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List the registered apiKeys for use with predict method.

Parameters
NameDescription
requestListPredictionApiKeyRegistrationsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListPredictionApiKeyRegistrationsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override PredictionApiKeyRegistry.PredictionApiKeyRegistryClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
PredictionApiKeyRegistryPredictionApiKeyRegistryClient
Overrides