Class DataSourcesServiceClientImpl
DataSourcesService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.DataSources.V1Beta
Assembly: Google.Shopping.Merchant.DataSources.V1Beta.dll
Syntax
public sealed class DataSourcesServiceClientImpl : DataSourcesServiceClient
Remarks
Service to manage primary, supplemental, inventory and other data sources. See more in the Merchant Center help article.
Constructors
DataSourcesServiceClientImpl(DataSourcesServiceClient, DataSourcesServiceSettings, ILogger)
Constructs a client wrapper for the DataSourcesService service, with the specified gRPC client and settings.
Declaration
public DataSourcesServiceClientImpl(DataSourcesService.DataSourcesServiceClient grpcClient, DataSourcesServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
DataSourcesService.DataSourcesServiceClient | grpcClient | The underlying gRPC client. |
DataSourcesServiceSettings | settings | The base DataSourcesServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC DataSourcesService client
Declaration
public override DataSourcesService.DataSourcesServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
DataSourcesService.DataSourcesServiceClient |
Overrides
Methods
CreateDataSource(CreateDataSourceRequest, CallSettings)
Creates the new data source configuration for the given account.
Declaration
public override DataSource CreateDataSource(CreateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateDataSourceRequest | request | 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 |
---|---|
DataSource | The RPC response. |
Overrides
CreateDataSourceAsync(CreateDataSourceRequest, CallSettings)
Creates the new data source configuration for the given account.
Declaration
public override Task<DataSource> CreateDataSourceAsync(CreateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateDataSourceRequest | request | 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<DataSource> | A Task containing the RPC response. |
Overrides
DeleteDataSource(DeleteDataSourceRequest, CallSettings)
Deletes a data source from your Merchant Center account.
Declaration
public override void DeleteDataSource(DeleteDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataSourceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteDataSourceAsync(DeleteDataSourceRequest, CallSettings)
Deletes a data source from your Merchant Center account.
Declaration
public override Task DeleteDataSourceAsync(DeleteDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataSourceRequest | request | 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
FetchDataSource(FetchDataSourceRequest, CallSettings)
Performs the data fetch immediately (even outside fetch schedule) on a data source from your Merchant Center Account. If you need to call this method more than once per day, you should use the Products service to update your product data instead. This method only works on data sources with a file input set.
Declaration
public override void FetchDataSource(FetchDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
FetchDataSourceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
FetchDataSourceAsync(FetchDataSourceRequest, CallSettings)
Performs the data fetch immediately (even outside fetch schedule) on a data source from your Merchant Center Account. If you need to call this method more than once per day, you should use the Products service to update your product data instead. This method only works on data sources with a file input set.
Declaration
public override Task FetchDataSourceAsync(FetchDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
FetchDataSourceRequest | request | 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
GetDataSource(GetDataSourceRequest, CallSettings)
Retrieves the data source configuration for the given account.
Declaration
public override DataSource GetDataSource(GetDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDataSourceRequest | request | 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 |
---|---|
DataSource | The RPC response. |
Overrides
GetDataSourceAsync(GetDataSourceRequest, CallSettings)
Retrieves the data source configuration for the given account.
Declaration
public override Task<DataSource> GetDataSourceAsync(GetDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDataSourceRequest | request | 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<DataSource> | A Task containing the RPC response. |
Overrides
ListDataSources(ListDataSourcesRequest, CallSettings)
Lists the configurations for data sources for the given account.
Declaration
public override PagedEnumerable<ListDataSourcesResponse, DataSource> ListDataSources(ListDataSourcesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListDataSourcesRequest | request | 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 |
---|---|
PagedEnumerable<ListDataSourcesResponse, DataSource> | A pageable sequence of DataSource resources. |
Overrides
ListDataSourcesAsync(ListDataSourcesRequest, CallSettings)
Lists the configurations for data sources for the given account.
Declaration
public override PagedAsyncEnumerable<ListDataSourcesResponse, DataSource> ListDataSourcesAsync(ListDataSourcesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListDataSourcesRequest | request | 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 |
---|---|
PagedAsyncEnumerable<ListDataSourcesResponse, DataSource> | A pageable asynchronous sequence of DataSource resources. |
Overrides
UpdateDataSource(UpdateDataSourceRequest, CallSettings)
Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.
Declaration
public override DataSource UpdateDataSource(UpdateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateDataSourceRequest | request | 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 |
---|---|
DataSource | The RPC response. |
Overrides
UpdateDataSourceAsync(UpdateDataSourceRequest, CallSettings)
Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.
Declaration
public override Task<DataSource> UpdateDataSourceAsync(UpdateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateDataSourceRequest | request | 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<DataSource> | A Task containing the RPC response. |