Show / Hide Table of Contents

Class DataSourcesService.DataSourcesServiceClient

Client for DataSourcesService

Inheritance
object
ClientBase
ClientBase<DataSourcesService.DataSourcesServiceClient>
DataSourcesService.DataSourcesServiceClient
Inherited Members
ClientBase<DataSourcesService.DataSourcesServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.DataSources.V1Beta
Assembly: Google.Shopping.Merchant.DataSources.V1Beta.dll
Syntax
public class DataSourcesService.DataSourcesServiceClient : ClientBase<DataSourcesService.DataSourcesServiceClient>

Constructors

DataSourcesServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected DataSourcesServiceClient()

DataSourcesServiceClient(CallInvoker)

Creates a new client for DataSourcesService that uses a custom CallInvoker.

Declaration
public DataSourcesServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

DataSourcesServiceClient(ChannelBase)

Creates a new client for DataSourcesService

Declaration
public DataSourcesServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

DataSourcesServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected DataSourcesServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

CreateDataSource(CreateDataSourceRequest, CallOptions)

Creates the new data source configuration for the given account.

Declaration
public virtual DataSource CreateDataSource(CreateDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
CreateDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
DataSource

The response received from the server.

CreateDataSource(CreateDataSourceRequest, Metadata, DateTime?, CancellationToken)

Creates the new data source configuration for the given account.

Declaration
public virtual DataSource CreateDataSource(CreateDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
DataSource

The response received from the server.

CreateDataSourceAsync(CreateDataSourceRequest, CallOptions)

Creates the new data source configuration for the given account.

Declaration
public virtual AsyncUnaryCall<DataSource> CreateDataSourceAsync(CreateDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
CreateDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<DataSource>

The call object.

CreateDataSourceAsync(CreateDataSourceRequest, Metadata, DateTime?, CancellationToken)

Creates the new data source configuration for the given account.

Declaration
public virtual AsyncUnaryCall<DataSource> CreateDataSourceAsync(CreateDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<DataSource>

The call object.

DeleteDataSource(DeleteDataSourceRequest, CallOptions)

Deletes a data source from your Merchant Center account.

Declaration
public virtual Empty DeleteDataSource(DeleteDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
DeleteDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteDataSource(DeleteDataSourceRequest, Metadata, DateTime?, CancellationToken)

Deletes a data source from your Merchant Center account.

Declaration
public virtual Empty DeleteDataSource(DeleteDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteDataSourceAsync(DeleteDataSourceRequest, CallOptions)

Deletes a data source from your Merchant Center account.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteDataSourceAsync(DeleteDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
DeleteDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

DeleteDataSourceAsync(DeleteDataSourceRequest, Metadata, DateTime?, CancellationToken)

Deletes a data source from your Merchant Center account.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteDataSourceAsync(DeleteDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

FetchDataSource(FetchDataSourceRequest, CallOptions)

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 Empty FetchDataSource(FetchDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
FetchDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Empty

The response received from the server.

FetchDataSource(FetchDataSourceRequest, Metadata, DateTime?, CancellationToken)

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 Empty FetchDataSource(FetchDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
FetchDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

FetchDataSourceAsync(FetchDataSourceRequest, CallOptions)

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 AsyncUnaryCall<Empty> FetchDataSourceAsync(FetchDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
FetchDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

FetchDataSourceAsync(FetchDataSourceRequest, Metadata, DateTime?, CancellationToken)

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 AsyncUnaryCall<Empty> FetchDataSourceAsync(FetchDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
FetchDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

GetDataSource(GetDataSourceRequest, CallOptions)

Retrieves the data source configuration for the given account.

Declaration
public virtual DataSource GetDataSource(GetDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
GetDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
DataSource

The response received from the server.

GetDataSource(GetDataSourceRequest, Metadata, DateTime?, CancellationToken)

Retrieves the data source configuration for the given account.

Declaration
public virtual DataSource GetDataSource(GetDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
DataSource

The response received from the server.

GetDataSourceAsync(GetDataSourceRequest, CallOptions)

Retrieves the data source configuration for the given account.

Declaration
public virtual AsyncUnaryCall<DataSource> GetDataSourceAsync(GetDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
GetDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<DataSource>

The call object.

GetDataSourceAsync(GetDataSourceRequest, Metadata, DateTime?, CancellationToken)

Retrieves the data source configuration for the given account.

Declaration
public virtual AsyncUnaryCall<DataSource> GetDataSourceAsync(GetDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<DataSource>

The call object.

ListDataSources(ListDataSourcesRequest, CallOptions)

Lists the configurations for data sources for the given account.

Declaration
public virtual ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request, CallOptions options)
Parameters
Type Name Description
ListDataSourcesRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListDataSourcesResponse

The response received from the server.

ListDataSources(ListDataSourcesRequest, Metadata, DateTime?, CancellationToken)

Lists the configurations for data sources for the given account.

Declaration
public virtual ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListDataSourcesRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
ListDataSourcesResponse

The response received from the server.

ListDataSourcesAsync(ListDataSourcesRequest, CallOptions)

Lists the configurations for data sources for the given account.

Declaration
public virtual AsyncUnaryCall<ListDataSourcesResponse> ListDataSourcesAsync(ListDataSourcesRequest request, CallOptions options)
Parameters
Type Name Description
ListDataSourcesRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListDataSourcesResponse>

The call object.

ListDataSourcesAsync(ListDataSourcesRequest, Metadata, DateTime?, CancellationToken)

Lists the configurations for data sources for the given account.

Declaration
public virtual AsyncUnaryCall<ListDataSourcesResponse> ListDataSourcesAsync(ListDataSourcesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListDataSourcesRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<ListDataSourcesResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override DataSourcesService.DataSourcesServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
DataSourcesService.DataSourcesServiceClient
Overrides
Grpc.Core.ClientBase<Google.Shopping.Merchant.DataSources.V1Beta.DataSourcesService.DataSourcesServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateDataSource(UpdateDataSourceRequest, CallOptions)

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 DataSource UpdateDataSource(UpdateDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
UpdateDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
DataSource

The response received from the server.

UpdateDataSource(UpdateDataSourceRequest, Metadata, DateTime?, CancellationToken)

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 DataSource UpdateDataSource(UpdateDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
DataSource

The response received from the server.

UpdateDataSourceAsync(UpdateDataSourceRequest, CallOptions)

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 AsyncUnaryCall<DataSource> UpdateDataSourceAsync(UpdateDataSourceRequest request, CallOptions options)
Parameters
Type Name Description
UpdateDataSourceRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<DataSource>

The call object.

UpdateDataSourceAsync(UpdateDataSourceRequest, Metadata, DateTime?, CancellationToken)

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 AsyncUnaryCall<DataSource> UpdateDataSourceAsync(UpdateDataSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateDataSourceRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<DataSource>

The call object.

In this article
Back to top Generated by DocFX