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

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
Name Description
grpcClient PredictionApiKeyRegistryPredictionApiKeyRegistryClient

The underlying gRPC client.

settings PredictionApiKeyRegistrySettings

The base PredictionApiKeyRegistrySettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override PredictionApiKeyRegistry.PredictionApiKeyRegistryClient GrpcClient { get; }

The underlying gRPC PredictionApiKeyRegistry client

Property Value
Type Description
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
Name Description
request CreatePredictionApiKeyRegistrationRequest

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
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
Name Description
request CreatePredictionApiKeyRegistrationRequest

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
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
Name Description
request DeletePredictionApiKeyRegistrationRequest

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

callSettings CallSettings

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
Name Description
request DeletePredictionApiKeyRegistrationRequest

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

ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest, CallSettings)

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

List the registered apiKeys for use with predict method.

Parameters
Name Description
request ListPredictionApiKeyRegistrationsRequest

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
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
Name Description
request ListPredictionApiKeyRegistrationsRequest

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
PagedAsyncEnumerableListPredictionApiKeyRegistrationsResponsePredictionApiKeyRegistration

A pageable asynchronous sequence of PredictionApiKeyRegistration resources.

Overrides