Recommendations AI v1beta1 API - Class PredictionApiKeyRegistryClientImpl (2.0.0-beta05)

public sealed class PredictionApiKeyRegistryClientImpl : PredictionApiKeyRegistryClient

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

PredictionApiKeyRegistry client wrapper implementation, for convenient use.

Inheritance

object > PredictionApiKeyRegistryClient > PredictionApiKeyRegistryClientImpl

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Remarks

Service for registering API keys for use with the predict method. If you use an API key to request predictions, you must first register the API key. Otherwise, your prediction request is rejected. If you use OAuth to authenticate your predict method call, you do not need to register an API key. You can register up to 20 API keys per project.

Constructors

PredictionApiKeyRegistryClientImpl(PredictionApiKeyRegistryClient, PredictionApiKeyRegistrySettings, ILogger)

public PredictionApiKeyRegistryClientImpl(PredictionApiKeyRegistry.PredictionApiKeyRegistryClient grpcClient, PredictionApiKeyRegistrySettings settings, ILogger logger)

Constructs a client wrapper for the PredictionApiKeyRegistry service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientPredictionApiKeyRegistryPredictionApiKeyRegistryClient

The underlying gRPC client.

settingsPredictionApiKeyRegistrySettings

The base PredictionApiKeyRegistrySettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override PredictionApiKeyRegistry.PredictionApiKeyRegistryClient GrpcClient { get; }

The underlying gRPC PredictionApiKeyRegistry client

Property Value
TypeDescription
PredictionApiKeyRegistryPredictionApiKeyRegistryClient
Overrides

Methods

CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest, CallSettings)

public override PredictionApiKeyRegistration CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, CallSettings callSettings = null)

Register an API key for use with predict method.

Parameters
NameDescription
requestCreatePredictionApiKeyRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PredictionApiKeyRegistration

The RPC response.

Overrides

CreatePredictionApiKeyRegistrationAsync(CreatePredictionApiKeyRegistrationRequest, CallSettings)

public override Task<PredictionApiKeyRegistration> CreatePredictionApiKeyRegistrationAsync(CreatePredictionApiKeyRegistrationRequest request, CallSettings callSettings = null)

Register an API key for use with predict method.

Parameters
NameDescription
requestCreatePredictionApiKeyRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPredictionApiKeyRegistration

A Task containing the RPC response.

Overrides

DeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest, CallSettings)

public override void DeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, CallSettings callSettings = null)

Unregister an apiKey from using for predict method.

Parameters
NameDescription
requestDeletePredictionApiKeyRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeletePredictionApiKeyRegistrationAsync(DeletePredictionApiKeyRegistrationRequest, CallSettings)

public override Task DeletePredictionApiKeyRegistrationAsync(DeletePredictionApiKeyRegistrationRequest request, CallSettings callSettings = null)

Unregister an apiKey from using for predict method.

Parameters
NameDescription
requestDeletePredictionApiKeyRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest, CallSettings)

public override PagedEnumerable<ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, CallSettings callSettings = null)

List the registered apiKeys for use with predict method.

Parameters
NameDescription
requestListPredictionApiKeyRegistrationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListPredictionApiKeyRegistrationsResponsePredictionApiKeyRegistration

A pageable sequence of PredictionApiKeyRegistration resources.

Overrides

ListPredictionApiKeyRegistrationsAsync(ListPredictionApiKeyRegistrationsRequest, CallSettings)

public override PagedAsyncEnumerable<ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> ListPredictionApiKeyRegistrationsAsync(ListPredictionApiKeyRegistrationsRequest request, CallSettings callSettings = null)

List the registered apiKeys for use with predict method.

Parameters
NameDescription
requestListPredictionApiKeyRegistrationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListPredictionApiKeyRegistrationsResponsePredictionApiKeyRegistration

A pageable asynchronous sequence of PredictionApiKeyRegistration resources.

Overrides