Class DataSourcesServiceGrpc.DataSourcesServiceBlockingStub (0.3.0)

public static final class DataSourcesServiceGrpc.DataSourcesServiceBlockingStub extends AbstractBlockingStub<DataSourcesServiceGrpc.DataSourcesServiceBlockingStub>

A stub to allow clients to do synchronous 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.AbstractBlockingStub > DataSourcesServiceGrpc.DataSourcesServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

createDataSource(CreateDataSourceRequest request)

public DataSource createDataSource(CreateDataSourceRequest request)

Creates the new data source configuration for the given account.

Parameter
Name Description
request CreateDataSourceRequest
Returns
Type Description
DataSource

deleteDataSource(DeleteDataSourceRequest request)

public Empty deleteDataSource(DeleteDataSourceRequest request)

Deletes a data source from your Merchant Center account.

Parameter
Name Description
request DeleteDataSourceRequest
Returns
Type Description
Empty

fetchDataSource(FetchDataSourceRequest request)

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

getDataSource(GetDataSourceRequest request)

public DataSource getDataSource(GetDataSourceRequest request)

Retrieves the data source configuration for the given account.

Parameter
Name Description
request GetDataSourceRequest
Returns
Type Description
DataSource

listDataSources(ListDataSourcesRequest request)

public ListDataSourcesResponse listDataSources(ListDataSourcesRequest request)

Lists the configurations for data sources for the given account.

Parameter
Name Description
request ListDataSourcesRequest
Returns
Type Description
ListDataSourcesResponse

updateDataSource(UpdateDataSourceRequest request)

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