Represents a BusinessInfoService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.BusinessInfoServicePackage
@google-shopping/accountsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new BusinessInfoService 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): BusinessInfoService;
Creates new BusinessInfoService 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 |
BusinessInfoService |
RPC service. Useful where requests and/or responses are streamed. |
getBusinessInfo(request, callback)
public getBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessInfoService.GetBusinessInfoCallback): void;
Calls GetBusinessInfo.
Parameters | |
---|---|
Name | Description |
request |
IGetBusinessInfoRequest
GetBusinessInfoRequest message or plain object |
callback |
GetBusinessInfoCallback
Node-style callback called with the error, if any, and BusinessInfo |
Returns | |
---|---|
Type | Description |
void |
getBusinessInfo(request)
public getBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest): Promise<google.shopping.merchant.accounts.v1beta.BusinessInfo>;
Calls GetBusinessInfo.
Parameter | |
---|---|
Name | Description |
request |
IGetBusinessInfoRequest
GetBusinessInfoRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.accounts.v1beta.BusinessInfo> |
Promise |
updateBusinessInfo(request, callback)
public updateBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessInfoService.UpdateBusinessInfoCallback): void;
Calls UpdateBusinessInfo.
Parameters | |
---|---|
Name | Description |
request |
IUpdateBusinessInfoRequest
UpdateBusinessInfoRequest message or plain object |
callback |
UpdateBusinessInfoCallback
Node-style callback called with the error, if any, and BusinessInfo |
Returns | |
---|---|
Type | Description |
void |
updateBusinessInfo(request)
public updateBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest): Promise<google.shopping.merchant.accounts.v1beta.BusinessInfo>;
Calls UpdateBusinessInfo.
Parameter | |
---|---|
Name | Description |
request |
IUpdateBusinessInfoRequest
UpdateBusinessInfoRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.accounts.v1beta.BusinessInfo> |
Promise |