Represents a DataSourcesService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.datasources.v1beta.DataSourcesServicePackage
@google-shopping/datasourcesConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new DataSourcesService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataSourcesService;
Creates new DataSourcesService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
DataSourcesService |
RPC service. Useful where requests and/or responses are streamed. |
createDataSource(request, callback)
public createDataSource(request: google.shopping.merchant.datasources.v1beta.ICreateDataSourceRequest, callback: google.shopping.merchant.datasources.v1beta.DataSourcesService.CreateDataSourceCallback): void;
Calls CreateDataSource.
Parameters | |
---|---|
Name | Description |
request |
ICreateDataSourceRequest
CreateDataSourceRequest message or plain object |
callback |
CreateDataSourceCallback
Node-style callback called with the error, if any, and DataSource |
Returns | |
---|---|
Type | Description |
void |
createDataSource(request)
public createDataSource(request: google.shopping.merchant.datasources.v1beta.ICreateDataSourceRequest): Promise<google.shopping.merchant.datasources.v1beta.DataSource>;
Calls CreateDataSource.
Parameter | |
---|---|
Name | Description |
request |
ICreateDataSourceRequest
CreateDataSourceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.datasources.v1beta.DataSource> |
Promise |
deleteDataSource(request, callback)
public deleteDataSource(request: google.shopping.merchant.datasources.v1beta.IDeleteDataSourceRequest, callback: google.shopping.merchant.datasources.v1beta.DataSourcesService.DeleteDataSourceCallback): void;
Calls DeleteDataSource.
Parameters | |
---|---|
Name | Description |
request |
IDeleteDataSourceRequest
DeleteDataSourceRequest message or plain object |
callback |
DeleteDataSourceCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteDataSource(request)
public deleteDataSource(request: google.shopping.merchant.datasources.v1beta.IDeleteDataSourceRequest): Promise<google.protobuf.Empty>;
Calls DeleteDataSource.
Parameter | |
---|---|
Name | Description |
request |
IDeleteDataSourceRequest
DeleteDataSourceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
fetchDataSource(request, callback)
public fetchDataSource(request: google.shopping.merchant.datasources.v1beta.IFetchDataSourceRequest, callback: google.shopping.merchant.datasources.v1beta.DataSourcesService.FetchDataSourceCallback): void;
Calls FetchDataSource.
Parameters | |
---|---|
Name | Description |
request |
IFetchDataSourceRequest
FetchDataSourceRequest message or plain object |
callback |
FetchDataSourceCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
fetchDataSource(request)
public fetchDataSource(request: google.shopping.merchant.datasources.v1beta.IFetchDataSourceRequest): Promise<google.protobuf.Empty>;
Calls FetchDataSource.
Parameter | |
---|---|
Name | Description |
request |
IFetchDataSourceRequest
FetchDataSourceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getDataSource(request, callback)
public getDataSource(request: google.shopping.merchant.datasources.v1beta.IGetDataSourceRequest, callback: google.shopping.merchant.datasources.v1beta.DataSourcesService.GetDataSourceCallback): void;
Calls GetDataSource.
Parameters | |
---|---|
Name | Description |
request |
IGetDataSourceRequest
GetDataSourceRequest message or plain object |
callback |
GetDataSourceCallback
Node-style callback called with the error, if any, and DataSource |
Returns | |
---|---|
Type | Description |
void |
getDataSource(request)
public getDataSource(request: google.shopping.merchant.datasources.v1beta.IGetDataSourceRequest): Promise<google.shopping.merchant.datasources.v1beta.DataSource>;
Calls GetDataSource.
Parameter | |
---|---|
Name | Description |
request |
IGetDataSourceRequest
GetDataSourceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.datasources.v1beta.DataSource> |
Promise |
listDataSources(request, callback)
public listDataSources(request: google.shopping.merchant.datasources.v1beta.IListDataSourcesRequest, callback: google.shopping.merchant.datasources.v1beta.DataSourcesService.ListDataSourcesCallback): void;
Calls ListDataSources.
Parameters | |
---|---|
Name | Description |
request |
IListDataSourcesRequest
ListDataSourcesRequest message or plain object |
callback |
ListDataSourcesCallback
Node-style callback called with the error, if any, and ListDataSourcesResponse |
Returns | |
---|---|
Type | Description |
void |
listDataSources(request)
public listDataSources(request: google.shopping.merchant.datasources.v1beta.IListDataSourcesRequest): Promise<google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse>;
Calls ListDataSources.
Parameter | |
---|---|
Name | Description |
request |
IListDataSourcesRequest
ListDataSourcesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse> |
Promise |
updateDataSource(request, callback)
public updateDataSource(request: google.shopping.merchant.datasources.v1beta.IUpdateDataSourceRequest, callback: google.shopping.merchant.datasources.v1beta.DataSourcesService.UpdateDataSourceCallback): void;
Calls UpdateDataSource.
Parameters | |
---|---|
Name | Description |
request |
IUpdateDataSourceRequest
UpdateDataSourceRequest message or plain object |
callback |
UpdateDataSourceCallback
Node-style callback called with the error, if any, and DataSource |
Returns | |
---|---|
Type | Description |
void |
updateDataSource(request)
public updateDataSource(request: google.shopping.merchant.datasources.v1beta.IUpdateDataSourceRequest): Promise<google.shopping.merchant.datasources.v1beta.DataSource>;
Calls UpdateDataSource.
Parameter | |
---|---|
Name | Description |
request |
IUpdateDataSourceRequest
UpdateDataSourceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.datasources.v1beta.DataSource> |
Promise |