Class DataSourcesService.DataSourcesServiceBase
Base class for server-side implementations of DataSourcesService
Namespace: Google.Shopping.Merchant.DataSources.V1Beta
Assembly: Google.Shopping.Merchant.DataSources.V1Beta.dll
Syntax
[BindServiceMethod(typeof(DataSourcesService), "BindService")]
public abstract class DataSourcesService.DataSourcesServiceBase
Methods
CreateDataSource(CreateDataSourceRequest, ServerCallContext)
Creates the new data source configuration for the given account.
Declaration
public virtual Task<DataSource> CreateDataSource(CreateDataSourceRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
CreateDataSourceRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<DataSource> | The response to send back to the client (wrapped by a task). |
DeleteDataSource(DeleteDataSourceRequest, ServerCallContext)
Deletes a data source from your Merchant Center account.
Declaration
public virtual Task<Empty> DeleteDataSource(DeleteDataSourceRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataSourceRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Empty> | The response to send back to the client (wrapped by a task). |
FetchDataSource(FetchDataSourceRequest, ServerCallContext)
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 virtual Task<Empty> FetchDataSource(FetchDataSourceRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
FetchDataSourceRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Empty> | The response to send back to the client (wrapped by a task). |
GetDataSource(GetDataSourceRequest, ServerCallContext)
Retrieves the data source configuration for the given account.
Declaration
public virtual Task<DataSource> GetDataSource(GetDataSourceRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetDataSourceRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<DataSource> | The response to send back to the client (wrapped by a task). |
ListDataSources(ListDataSourcesRequest, ServerCallContext)
Lists the configurations for data sources for the given account.
Declaration
public virtual Task<ListDataSourcesResponse> ListDataSources(ListDataSourcesRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListDataSourcesRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListDataSourcesResponse> | The response to send back to the client (wrapped by a task). |
UpdateDataSource(UpdateDataSourceRequest, ServerCallContext)
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 virtual Task<DataSource> UpdateDataSource(UpdateDataSourceRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateDataSourceRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<DataSource> | The response to send back to the client (wrapped by a task). |