Class DataSourcesServiceGrpc.DataSourcesServiceStub (0.10.0)

public static final class DataSourcesServiceGrpc.DataSourcesServiceStub extends AbstractAsyncStub<DataSourcesServiceGrpc.DataSourcesServiceStub>

A stub to allow clients to do asynchronous rpc calls to service DataSourcesService.

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > DataSourcesServiceGrpc.DataSourcesServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected DataSourcesServiceGrpc.DataSourcesServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DataSourcesServiceGrpc.DataSourcesServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDataSource(CreateDataSourceRequest request, StreamObserver<DataSource> responseObserver)

public 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 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 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 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 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 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>