Class protos.google.cloud.retail.v2alpha.MerchantCenterAccountLinkService (3.1.0)

Represents a MerchantCenterAccountLinkService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.MerchantCenterAccountLinkService

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new MerchantCenterAccountLinkService 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): MerchantCenterAccountLinkService;

Creates new MerchantCenterAccountLinkService 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
MerchantCenterAccountLinkService

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

public createMerchantCenterAccountLink(request: google.cloud.retail.v2alpha.ICreateMerchantCenterAccountLinkRequest, callback: google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.CreateMerchantCenterAccountLinkCallback): void;

Calls CreateMerchantCenterAccountLink.

Parameters
Name Description
request ICreateMerchantCenterAccountLinkRequest

CreateMerchantCenterAccountLinkRequest message or plain object

callback CreateMerchantCenterAccountLinkCallback

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

Returns
Type Description
void
public createMerchantCenterAccountLink(request: google.cloud.retail.v2alpha.ICreateMerchantCenterAccountLinkRequest): Promise<google.longrunning.Operation>;

Calls CreateMerchantCenterAccountLink.

Parameter
Name Description
request ICreateMerchantCenterAccountLinkRequest

CreateMerchantCenterAccountLinkRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

public deleteMerchantCenterAccountLink(request: google.cloud.retail.v2alpha.IDeleteMerchantCenterAccountLinkRequest, callback: google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLinkCallback): void;

Calls DeleteMerchantCenterAccountLink.

Parameters
Name Description
request IDeleteMerchantCenterAccountLinkRequest

DeleteMerchantCenterAccountLinkRequest message or plain object

callback DeleteMerchantCenterAccountLinkCallback

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

Returns
Type Description
void
public deleteMerchantCenterAccountLink(request: google.cloud.retail.v2alpha.IDeleteMerchantCenterAccountLinkRequest): Promise<google.protobuf.Empty>;

Calls DeleteMerchantCenterAccountLink.

Parameter
Name Description
request IDeleteMerchantCenterAccountLinkRequest

DeleteMerchantCenterAccountLinkRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

public listMerchantCenterAccountLinks(request: google.cloud.retail.v2alpha.IListMerchantCenterAccountLinksRequest, callback: google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.ListMerchantCenterAccountLinksCallback): void;

Calls ListMerchantCenterAccountLinks.

Parameters
Name Description
request IListMerchantCenterAccountLinksRequest

ListMerchantCenterAccountLinksRequest message or plain object

callback ListMerchantCenterAccountLinksCallback

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

Returns
Type Description
void
public listMerchantCenterAccountLinks(request: google.cloud.retail.v2alpha.IListMerchantCenterAccountLinksRequest): Promise<google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse>;

Calls ListMerchantCenterAccountLinks.

Parameter
Name Description
request IListMerchantCenterAccountLinksRequest

ListMerchantCenterAccountLinksRequest message or plain object

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

Promise