Represents a BusinessIdentityService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1.BusinessIdentityServicePackage
@google-shopping/accountsConstructors
(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.v1.IGetBusinessIdentityRequest, callback: google.shopping.merchant.accounts.v1.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.v1.IGetBusinessIdentityRequest): Promise<google.shopping.merchant.accounts.v1.BusinessIdentity>;Calls GetBusinessIdentity.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetBusinessIdentityRequest
GetBusinessIdentityRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.BusinessIdentity> |
Promise |
updateBusinessIdentity(request, callback)
public updateBusinessIdentity(request: google.shopping.merchant.accounts.v1.IUpdateBusinessIdentityRequest, callback: google.shopping.merchant.accounts.v1.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.v1.IUpdateBusinessIdentityRequest): Promise<google.shopping.merchant.accounts.v1.BusinessIdentity>;Calls UpdateBusinessIdentity.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateBusinessIdentityRequest
UpdateBusinessIdentityRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.BusinessIdentity> |
Promise |