Class protos.google.shopping.merchant.accounts.v1beta.BusinessIdentityService (1.0.0)

Represents a BusinessIdentityService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.BusinessIdentityService

Package

@google-shopping/accounts

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

getBusinessIdentity(request, callback)

public getBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessIdentityService.GetBusinessIdentityCallback): void;

Calls GetBusinessIdentity.

Parameters
Name Description
request IGetBusinessIdentityRequest

GetBusinessIdentityRequest message or plain object

callback GetBusinessIdentityCallback

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

Returns
Type Description
void

getBusinessIdentity(request)

public getBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest): Promise<google.shopping.merchant.accounts.v1beta.BusinessIdentity>;

Calls GetBusinessIdentity.

Parameter
Name Description
request IGetBusinessIdentityRequest

GetBusinessIdentityRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.BusinessIdentity>

Promise

updateBusinessIdentity(request, callback)

public updateBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessIdentityService.UpdateBusinessIdentityCallback): void;

Calls UpdateBusinessIdentity.

Parameters
Name Description
request IUpdateBusinessIdentityRequest

UpdateBusinessIdentityRequest message or plain object

callback UpdateBusinessIdentityCallback

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

Returns
Type Description
void

updateBusinessIdentity(request)

public updateBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest): Promise<google.shopping.merchant.accounts.v1beta.BusinessIdentity>;

Calls UpdateBusinessIdentity.

Parameter
Name Description
request IUpdateBusinessIdentityRequest

UpdateBusinessIdentityRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.BusinessIdentity>

Promise