Show / Hide Table of Contents

Class DataSourcesServiceClientImpl

DataSourcesService client wrapper implementation, for convenient use.

Inheritance
object
DataSourcesServiceClient
DataSourcesServiceClientImpl
Inherited Members
DataSourcesServiceClient.DefaultEndpoint
DataSourcesServiceClient.DefaultScopes
DataSourcesServiceClient.ServiceMetadata
DataSourcesServiceClient.CreateAsync(CancellationToken)
DataSourcesServiceClient.Create()
DataSourcesServiceClient.ShutdownDefaultChannelsAsync()
DataSourcesServiceClient.GetDataSourceAsync(GetDataSourceRequest, CancellationToken)
DataSourcesServiceClient.GetDataSource(string, CallSettings)
DataSourcesServiceClient.GetDataSourceAsync(string, CallSettings)
DataSourcesServiceClient.GetDataSourceAsync(string, CancellationToken)
DataSourcesServiceClient.GetDataSource(DataSourceName, CallSettings)
DataSourcesServiceClient.GetDataSourceAsync(DataSourceName, CallSettings)
DataSourcesServiceClient.GetDataSourceAsync(DataSourceName, CancellationToken)
DataSourcesServiceClient.ListDataSources(string, string, int?, CallSettings)
DataSourcesServiceClient.ListDataSourcesAsync(string, string, int?, CallSettings)
DataSourcesServiceClient.ListDataSources(AccountName, string, int?, CallSettings)
DataSourcesServiceClient.ListDataSourcesAsync(AccountName, string, int?, CallSettings)
DataSourcesServiceClient.CreateDataSourceAsync(CreateDataSourceRequest, CancellationToken)
DataSourcesServiceClient.CreateDataSource(string, DataSource, CallSettings)
DataSourcesServiceClient.CreateDataSourceAsync(string, DataSource, CallSettings)
DataSourcesServiceClient.CreateDataSourceAsync(string, DataSource, CancellationToken)
DataSourcesServiceClient.CreateDataSource(AccountName, DataSource, CallSettings)
DataSourcesServiceClient.CreateDataSourceAsync(AccountName, DataSource, CallSettings)
DataSourcesServiceClient.CreateDataSourceAsync(AccountName, DataSource, CancellationToken)
DataSourcesServiceClient.UpdateDataSourceAsync(UpdateDataSourceRequest, CancellationToken)
DataSourcesServiceClient.UpdateDataSource(DataSource, FieldMask, CallSettings)
DataSourcesServiceClient.UpdateDataSourceAsync(DataSource, FieldMask, CallSettings)
DataSourcesServiceClient.UpdateDataSourceAsync(DataSource, FieldMask, CancellationToken)
DataSourcesServiceClient.DeleteDataSourceAsync(DeleteDataSourceRequest, CancellationToken)
DataSourcesServiceClient.DeleteDataSource(string, CallSettings)
DataSourcesServiceClient.DeleteDataSourceAsync(string, CallSettings)
DataSourcesServiceClient.DeleteDataSourceAsync(string, CancellationToken)
DataSourcesServiceClient.DeleteDataSource(DataSourceName, CallSettings)
DataSourcesServiceClient.DeleteDataSourceAsync(DataSourceName, CallSettings)
DataSourcesServiceClient.DeleteDataSourceAsync(DataSourceName, CancellationToken)
DataSourcesServiceClient.FetchDataSourceAsync(FetchDataSourceRequest, CancellationToken)
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.DataSources.V1Beta
Assembly: Google.Shopping.Merchant.DataSources.V1Beta.dll
Syntax
public sealed class DataSourcesServiceClientImpl : DataSourcesServiceClient
Remarks

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

Constructors

DataSourcesServiceClientImpl(DataSourcesServiceClient, DataSourcesServiceSettings, ILogger)

Constructs a client wrapper for the DataSourcesService service, with the specified gRPC client and settings.

Declaration
public DataSourcesServiceClientImpl(DataSourcesService.DataSourcesServiceClient grpcClient, DataSourcesServiceSettings settings, ILogger logger)
Parameters
Type Name Description
DataSourcesService.DataSourcesServiceClient grpcClient

The underlying gRPC client.

DataSourcesServiceSettings settings

The base DataSourcesServiceSettings used within this client.

ILogger logger

Optional ILogger to use within this client.

Properties

GrpcClient

The underlying gRPC DataSourcesService client

Declaration
public override DataSourcesService.DataSourcesServiceClient GrpcClient { get; }
Property Value
Type Description
DataSourcesService.DataSourcesServiceClient
Overrides
DataSourcesServiceClient.GrpcClient

Methods

CreateDataSource(CreateDataSourceRequest, CallSettings)

Creates the new data source configuration for the given account.

Declaration
public override DataSource CreateDataSource(CreateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataSource

The RPC response.

Overrides
DataSourcesServiceClient.CreateDataSource(CreateDataSourceRequest, CallSettings)

CreateDataSourceAsync(CreateDataSourceRequest, CallSettings)

Creates the new data source configuration for the given account.

Declaration
public override Task<DataSource> CreateDataSourceAsync(CreateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DataSource>

A Task containing the RPC response.

Overrides
DataSourcesServiceClient.CreateDataSourceAsync(CreateDataSourceRequest, CallSettings)

DeleteDataSource(DeleteDataSourceRequest, CallSettings)

Deletes a data source from your Merchant Center account.

Declaration
public override void DeleteDataSource(DeleteDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DeleteDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Overrides
DataSourcesServiceClient.DeleteDataSource(DeleteDataSourceRequest, CallSettings)

DeleteDataSourceAsync(DeleteDataSourceRequest, CallSettings)

Deletes a data source from your Merchant Center account.

Declaration
public override Task DeleteDataSourceAsync(DeleteDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DeleteDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides
DataSourcesServiceClient.DeleteDataSourceAsync(DeleteDataSourceRequest, CallSettings)

FetchDataSource(FetchDataSourceRequest, CallSettings)

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 override void FetchDataSource(FetchDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
FetchDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Overrides
DataSourcesServiceClient.FetchDataSource(FetchDataSourceRequest, CallSettings)

FetchDataSourceAsync(FetchDataSourceRequest, CallSettings)

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 override Task FetchDataSourceAsync(FetchDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
FetchDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides
DataSourcesServiceClient.FetchDataSourceAsync(FetchDataSourceRequest, CallSettings)

GetDataSource(GetDataSourceRequest, CallSettings)

Retrieves the data source configuration for the given account.

Declaration
public override DataSource GetDataSource(GetDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataSource

The RPC response.

Overrides
DataSourcesServiceClient.GetDataSource(GetDataSourceRequest, CallSettings)

GetDataSourceAsync(GetDataSourceRequest, CallSettings)

Retrieves the data source configuration for the given account.

Declaration
public override Task<DataSource> GetDataSourceAsync(GetDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DataSource>

A Task containing the RPC response.

Overrides
DataSourcesServiceClient.GetDataSourceAsync(GetDataSourceRequest, CallSettings)

ListDataSources(ListDataSourcesRequest, CallSettings)

Lists the configurations for data sources for the given account.

Declaration
public override PagedEnumerable<ListDataSourcesResponse, DataSource> ListDataSources(ListDataSourcesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListDataSourcesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListDataSourcesResponse, DataSource>

A pageable sequence of DataSource resources.

Overrides
DataSourcesServiceClient.ListDataSources(ListDataSourcesRequest, CallSettings)

ListDataSourcesAsync(ListDataSourcesRequest, CallSettings)

Lists the configurations for data sources for the given account.

Declaration
public override PagedAsyncEnumerable<ListDataSourcesResponse, DataSource> ListDataSourcesAsync(ListDataSourcesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListDataSourcesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListDataSourcesResponse, DataSource>

A pageable asynchronous sequence of DataSource resources.

Overrides
DataSourcesServiceClient.ListDataSourcesAsync(ListDataSourcesRequest, CallSettings)

UpdateDataSource(UpdateDataSourceRequest, CallSettings)

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 override DataSource UpdateDataSource(UpdateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataSource

The RPC response.

Overrides
DataSourcesServiceClient.UpdateDataSource(UpdateDataSourceRequest, CallSettings)

UpdateDataSourceAsync(UpdateDataSourceRequest, CallSettings)

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 override Task<DataSource> UpdateDataSourceAsync(UpdateDataSourceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateDataSourceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DataSource>

A Task containing the RPC response.

Overrides
DataSourcesServiceClient.UpdateDataSourceAsync(UpdateDataSourceRequest, CallSettings)
In this article
Back to top Generated by DocFX