Interface DataSourcesServiceGrpc.AsyncService (0.10.0)

public static interface DataSourcesServiceGrpc.AsyncService

Service to manage primary, supplemental, inventory and other data sources. See more in the Merchant Center help article.

Methods

createDataSource(CreateDataSourceRequest request, StreamObserver<DataSource> responseObserver)

public default void createDataSource(CreateDataSourceRequest request, StreamObserver<DataSource> responseObserver)

Creates the new data source configuration for the given account.

Parameters
Name Description
request CreateDataSourceRequest
responseObserver io.grpc.stub.StreamObserver<DataSource>

deleteDataSource(DeleteDataSourceRequest request, StreamObserver<Empty> responseObserver)

public default void deleteDataSource(DeleteDataSourceRequest request, StreamObserver<Empty> responseObserver)

Deletes a data source from your Merchant Center account.

Parameters
Name Description
request DeleteDataSourceRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

fetchDataSource(FetchDataSourceRequest request, StreamObserver<Empty> responseObserver)

public default void fetchDataSource(FetchDataSourceRequest request, StreamObserver<Empty> responseObserver)

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.

Parameters
Name Description
request FetchDataSourceRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getDataSource(GetDataSourceRequest request, StreamObserver<DataSource> responseObserver)

public default void getDataSource(GetDataSourceRequest request, StreamObserver<DataSource> responseObserver)

Retrieves the data source configuration for the given account.

Parameters
Name Description
request GetDataSourceRequest
responseObserver io.grpc.stub.StreamObserver<DataSource>

listDataSources(ListDataSourcesRequest request, StreamObserver<ListDataSourcesResponse> responseObserver)

public default void listDataSources(ListDataSourcesRequest request, StreamObserver<ListDataSourcesResponse> responseObserver)

Lists the configurations for data sources for the given account.

Parameters
Name Description
request ListDataSourcesRequest
responseObserver io.grpc.stub.StreamObserver<ListDataSourcesResponse>

updateDataSource(UpdateDataSourceRequest request, StreamObserver<DataSource> responseObserver)

public default void updateDataSource(UpdateDataSourceRequest request, StreamObserver<DataSource> responseObserver)

Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.

Parameters
Name Description
request UpdateDataSourceRequest
responseObserver io.grpc.stub.StreamObserver<DataSource>