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.
Namespace
Google.Cloud.RecommendationEngine.V1Beta1Assembly
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 |
ImportCatalogItemsOperationsClient
public override OperationsClient ImportCatalogItemsOperationsClient { get; }
The long-running operations client for ImportCatalogItems
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |