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

public sealed class CatalogServiceClientImpl : CatalogServiceClient

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

CatalogService client wrapper implementation, for convenient use.

Inheritance

object > CatalogServiceClient > CatalogServiceClientImpl

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Remarks

Service for ingesting catalog information of the customer's website.

Constructors

CatalogServiceClientImpl(CatalogServiceClient, CatalogServiceSettings, ILogger)

public CatalogServiceClientImpl(CatalogService.CatalogServiceClient grpcClient, CatalogServiceSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientCatalogServiceCatalogServiceClient

The underlying gRPC client.

settingsCatalogServiceSettings

The base CatalogServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CatalogService.CatalogServiceClient GrpcClient { get; }

The underlying gRPC CatalogService client

Property Value
TypeDescription
CatalogServiceCatalogServiceClient
Overrides

ImportCatalogItemsOperationsClient

public override OperationsClient ImportCatalogItemsOperationsClient { get; }

The long-running operations client for ImportCatalogItems.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateCatalogItem(CreateCatalogItemRequest, CallSettings)

public override CatalogItem CreateCatalogItem(CreateCatalogItemRequest request, CallSettings callSettings = null)

Creates a catalog item.

Parameters
NameDescription
requestCreateCatalogItemRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CatalogItem

The RPC response.

Overrides

CreateCatalogItemAsync(CreateCatalogItemRequest, CallSettings)

public override Task<CatalogItem> CreateCatalogItemAsync(CreateCatalogItemRequest request, CallSettings callSettings = null)

Creates a catalog item.

Parameters
NameDescription
requestCreateCatalogItemRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCatalogItem

A Task containing the RPC response.

Overrides

DeleteCatalogItem(DeleteCatalogItemRequest, CallSettings)

public override void DeleteCatalogItem(DeleteCatalogItemRequest request, CallSettings callSettings = null)

Deletes a catalog item.

Parameters
NameDescription
requestDeleteCatalogItemRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteCatalogItemAsync(DeleteCatalogItemRequest, CallSettings)

public override Task DeleteCatalogItemAsync(DeleteCatalogItemRequest request, CallSettings callSettings = null)

Deletes a catalog item.

Parameters
NameDescription
requestDeleteCatalogItemRequest

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

GetCatalogItem(GetCatalogItemRequest, CallSettings)

public override CatalogItem GetCatalogItem(GetCatalogItemRequest request, CallSettings callSettings = null)

Gets a specific catalog item.

Parameters
NameDescription
requestGetCatalogItemRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CatalogItem

The RPC response.

Overrides

GetCatalogItemAsync(GetCatalogItemRequest, CallSettings)

public override Task<CatalogItem> GetCatalogItemAsync(GetCatalogItemRequest request, CallSettings callSettings = null)

Gets a specific catalog item.

Parameters
NameDescription
requestGetCatalogItemRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCatalogItem

A Task containing the RPC response.

Overrides

ImportCatalogItems(ImportCatalogItemsRequest, CallSettings)

public override Operation<ImportCatalogItemsResponse, ImportMetadata> ImportCatalogItems(ImportCatalogItemsRequest request, CallSettings callSettings = null)

Bulk import of multiple catalog items. Request processing may be synchronous. No partial updating supported. Non-existing items will be created.

Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully updated.

Parameters
NameDescription
requestImportCatalogItemsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportCatalogItemsResponseImportMetadata

The RPC response.

Overrides

ImportCatalogItemsAsync(ImportCatalogItemsRequest, CallSettings)

public override Task<Operation<ImportCatalogItemsResponse, ImportMetadata>> ImportCatalogItemsAsync(ImportCatalogItemsRequest request, CallSettings callSettings = null)

Bulk import of multiple catalog items. Request processing may be synchronous. No partial updating supported. Non-existing items will be created.

Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully updated.

Parameters
NameDescription
requestImportCatalogItemsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportCatalogItemsResponseImportMetadata

A Task containing the RPC response.

Overrides

ListCatalogItems(ListCatalogItemsRequest, CallSettings)

public override PagedEnumerable<ListCatalogItemsResponse, CatalogItem> ListCatalogItems(ListCatalogItemsRequest request, CallSettings callSettings = null)

Gets a list of catalog items.

Parameters
NameDescription
requestListCatalogItemsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCatalogItemsResponseCatalogItem

A pageable sequence of CatalogItem resources.

Overrides

ListCatalogItemsAsync(ListCatalogItemsRequest, CallSettings)

public override PagedAsyncEnumerable<ListCatalogItemsResponse, CatalogItem> ListCatalogItemsAsync(ListCatalogItemsRequest request, CallSettings callSettings = null)

Gets a list of catalog items.

Parameters
NameDescription
requestListCatalogItemsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCatalogItemsResponseCatalogItem

A pageable asynchronous sequence of CatalogItem resources.

Overrides

UpdateCatalogItem(UpdateCatalogItemRequest, CallSettings)

public override CatalogItem UpdateCatalogItem(UpdateCatalogItemRequest request, CallSettings callSettings = null)

Updates a catalog item. Partial updating is supported. Non-existing items will be created.

Parameters
NameDescription
requestUpdateCatalogItemRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CatalogItem

The RPC response.

Overrides

UpdateCatalogItemAsync(UpdateCatalogItemRequest, CallSettings)

public override Task<CatalogItem> UpdateCatalogItemAsync(UpdateCatalogItemRequest request, CallSettings callSettings = null)

Updates a catalog item. Partial updating is supported. Non-existing items will be created.

Parameters
NameDescription
requestUpdateCatalogItemRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCatalogItem

A Task containing the RPC response.

Overrides