Class DataSourcesServiceGrpc.DataSourcesServiceFutureStub (0.3.0)

public static final class DataSourcesServiceGrpc.DataSourcesServiceFutureStub extends AbstractFutureStub<DataSourcesServiceGrpc.DataSourcesServiceFutureStub>

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > DataSourcesServiceGrpc.DataSourcesServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createDataSource(CreateDataSourceRequest request)

public ListenableFuture<DataSource> createDataSource(CreateDataSourceRequest request)

Creates the new data source configuration for the given account.

Parameter
Name Description
request CreateDataSourceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DataSource>

deleteDataSource(DeleteDataSourceRequest request)

public ListenableFuture<Empty> deleteDataSource(DeleteDataSourceRequest request)

Deletes a data source from your Merchant Center account.

Parameter
Name Description
request DeleteDataSourceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

fetchDataSource(FetchDataSourceRequest request)

public ListenableFuture<Empty> fetchDataSource(FetchDataSourceRequest request)

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.

Parameter
Name Description
request FetchDataSourceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getDataSource(GetDataSourceRequest request)

public ListenableFuture<DataSource> getDataSource(GetDataSourceRequest request)

Retrieves the data source configuration for the given account.

Parameter
Name Description
request GetDataSourceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DataSource>

listDataSources(ListDataSourcesRequest request)

public ListenableFuture<ListDataSourcesResponse> listDataSources(ListDataSourcesRequest request)

Lists the configurations for data sources for the given account.

Parameter
Name Description
request ListDataSourcesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListDataSourcesResponse>

updateDataSource(UpdateDataSourceRequest request)

public ListenableFuture<DataSource> updateDataSource(UpdateDataSourceRequest request)

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

Parameter
Name Description
request UpdateDataSourceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DataSource>