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

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

The underlying gRPC client.

settings CatalogServiceSettings

The base CatalogServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CatalogService.CatalogServiceClient GrpcClient { get; }

The underlying gRPC CatalogService client

Property Value
Type Description
CatalogServiceCatalogServiceClient
Overrides

ImportCatalogItemsOperationsClient

public override OperationsClient ImportCatalogItemsOperationsClient { get; }

The long-running operations client for ImportCatalogItems.

Property Value
Type Description
OperationsClient
Overrides

Methods

CreateCatalogItem(CreateCatalogItemRequest, CallSettings)

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

Creates a catalog item.

Parameters
Name Description
request CreateCatalogItemRequest

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
CatalogItem

The RPC response.

Overrides

CreateCatalogItemAsync(CreateCatalogItemRequest, CallSettings)

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

Creates a catalog item.

Parameters
Name Description
request CreateCatalogItemRequest

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

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

callSettings CallSettings

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

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

GetCatalogItem(GetCatalogItemRequest, CallSettings)

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

Gets a specific catalog item.

Parameters
Name Description
request GetCatalogItemRequest

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
CatalogItem

The RPC response.

Overrides

GetCatalogItemAsync(GetCatalogItemRequest, CallSettings)

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

Gets a specific catalog item.

Parameters
Name Description
request GetCatalogItemRequest

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

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

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

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

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

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

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
TaskCatalogItem

A Task containing the RPC response.

Overrides