Represents an AccountTaxService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.AccountTaxServicePackage
@google-shopping/accountsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AccountTaxService 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): AccountTaxService;
Creates new AccountTaxService 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 |
AccountTaxService |
RPC service. Useful where requests and/or responses are streamed. |
getAccountTax(request, callback)
public getAccountTax(request: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest, callback: google.shopping.merchant.accounts.v1beta.AccountTaxService.GetAccountTaxCallback): void;
Calls GetAccountTax.
Parameters | |
---|---|
Name | Description |
request |
IGetAccountTaxRequest
GetAccountTaxRequest message or plain object |
callback |
GetAccountTaxCallback
Node-style callback called with the error, if any, and AccountTax |
Returns | |
---|---|
Type | Description |
void |
getAccountTax(request)
public getAccountTax(request: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest): Promise<google.shopping.merchant.accounts.v1beta.AccountTax>;
Calls GetAccountTax.
Parameter | |
---|---|
Name | Description |
request |
IGetAccountTaxRequest
GetAccountTaxRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.accounts.v1beta.AccountTax> |
Promise |
listAccountTax(request, callback)
public listAccountTax(request: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest, callback: google.shopping.merchant.accounts.v1beta.AccountTaxService.ListAccountTaxCallback): void;
Calls ListAccountTax.
Parameters | |
---|---|
Name | Description |
request |
IListAccountTaxRequest
ListAccountTaxRequest message or plain object |
callback |
ListAccountTaxCallback
Node-style callback called with the error, if any, and ListAccountTaxResponse |
Returns | |
---|---|
Type | Description |
void |
listAccountTax(request)
public listAccountTax(request: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest): Promise<google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse>;
Calls ListAccountTax.
Parameter | |
---|---|
Name | Description |
request |
IListAccountTaxRequest
ListAccountTaxRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse> |
Promise |
updateAccountTax(request, callback)
public updateAccountTax(request: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest, callback: google.shopping.merchant.accounts.v1beta.AccountTaxService.UpdateAccountTaxCallback): void;
Calls UpdateAccountTax.
Parameters | |
---|---|
Name | Description |
request |
IUpdateAccountTaxRequest
UpdateAccountTaxRequest message or plain object |
callback |
UpdateAccountTaxCallback
Node-style callback called with the error, if any, and AccountTax |
Returns | |
---|---|
Type | Description |
void |
updateAccountTax(request)
public updateAccountTax(request: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest): Promise<google.shopping.merchant.accounts.v1beta.AccountTax>;
Calls UpdateAccountTax.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAccountTaxRequest
UpdateAccountTaxRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.accounts.v1beta.AccountTax> |
Promise |