MerchantCenterAccountLinkService

google.cloud.retail.v2alpha. MerchantCenterAccountLinkService

Represents a MerchantCenterAccountLinkService

Constructor

new MerchantCenterAccountLinkService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new MerchantCenterAccountLinkService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createMerchantCenterAccountLink(request, callback) → {undefined}

Calls CreateMerchantCenterAccountLink.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.ICreateMerchantCenterAccountLinkRequest

CreateMerchantCenterAccountLinkRequest message or plain object

callback google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.CreateMerchantCenterAccountLinkCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

createMerchantCenterAccountLink(request) → {Promise.<google.longrunning.Operation>}

Calls CreateMerchantCenterAccountLink.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.ICreateMerchantCenterAccountLinkRequest

CreateMerchantCenterAccountLinkRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteMerchantCenterAccountLink(request, callback) → {undefined}

Calls DeleteMerchantCenterAccountLink.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IDeleteMerchantCenterAccountLinkRequest

DeleteMerchantCenterAccountLinkRequest message or plain object

callback google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLinkCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteMerchantCenterAccountLink(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteMerchantCenterAccountLink.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IDeleteMerchantCenterAccountLinkRequest

DeleteMerchantCenterAccountLinkRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

listMerchantCenterAccountLinks(request, callback) → {undefined}

Calls ListMerchantCenterAccountLinks.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListMerchantCenterAccountLinksRequest

ListMerchantCenterAccountLinksRequest message or plain object

callback google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.ListMerchantCenterAccountLinksCallback

Node-style callback called with the error, if any, and ListMerchantCenterAccountLinksResponse

Returns:
Type Description
undefined

listMerchantCenterAccountLinks(request) → {Promise.<google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse>}

Calls ListMerchantCenterAccountLinks.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListMerchantCenterAccountLinksRequest

ListMerchantCenterAccountLinksRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {MerchantCenterAccountLinkService}

Creates new MerchantCenterAccountLinkService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
MerchantCenterAccountLinkService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CreateMerchantCenterAccountLinkCallback(error, responseopt)

Callback as used by createMerchantCenterAccountLink.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteMerchantCenterAccountLinkCallback(error, responseopt)

Callback as used by deleteMerchantCenterAccountLink.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

ListMerchantCenterAccountLinksCallback(error, responseopt)

Callback as used by listMerchantCenterAccountLinks.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse <optional>

ListMerchantCenterAccountLinksResponse