Represents an AccountsService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.css.v1.AccountsServicePackage
@google-shopping/cssConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AccountsService 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): AccountsService;
Creates new AccountsService 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 |
AccountsService |
RPC service. Useful where requests and/or responses are streamed. |
getAccount(request, callback)
public getAccount(request: google.shopping.css.v1.IGetAccountRequest, callback: google.shopping.css.v1.AccountsService.GetAccountCallback): void;
Calls GetAccount.
Parameters | |
---|---|
Name | Description |
request |
IGetAccountRequest
GetAccountRequest message or plain object |
callback |
GetAccountCallback
Node-style callback called with the error, if any, and Account |
Returns | |
---|---|
Type | Description |
void |
getAccount(request)
public getAccount(request: google.shopping.css.v1.IGetAccountRequest): Promise<google.shopping.css.v1.Account>;
Calls GetAccount.
Parameter | |
---|---|
Name | Description |
request |
IGetAccountRequest
GetAccountRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.Account> |
Promise |
listChildAccounts(request, callback)
public listChildAccounts(request: google.shopping.css.v1.IListChildAccountsRequest, callback: google.shopping.css.v1.AccountsService.ListChildAccountsCallback): void;
Calls ListChildAccounts.
Parameters | |
---|---|
Name | Description |
request |
IListChildAccountsRequest
ListChildAccountsRequest message or plain object |
callback |
ListChildAccountsCallback
Node-style callback called with the error, if any, and ListChildAccountsResponse |
Returns | |
---|---|
Type | Description |
void |
listChildAccounts(request)
public listChildAccounts(request: google.shopping.css.v1.IListChildAccountsRequest): Promise<google.shopping.css.v1.ListChildAccountsResponse>;
Calls ListChildAccounts.
Parameter | |
---|---|
Name | Description |
request |
IListChildAccountsRequest
ListChildAccountsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.ListChildAccountsResponse> |
Promise |
updateLabels(request, callback)
public updateLabels(request: google.shopping.css.v1.IUpdateAccountLabelsRequest, callback: google.shopping.css.v1.AccountsService.UpdateLabelsCallback): void;
Calls UpdateLabels.
Parameters | |
---|---|
Name | Description |
request |
IUpdateAccountLabelsRequest
UpdateAccountLabelsRequest message or plain object |
callback |
UpdateLabelsCallback
Node-style callback called with the error, if any, and Account |
Returns | |
---|---|
Type | Description |
void |
updateLabels(request)
public updateLabels(request: google.shopping.css.v1.IUpdateAccountLabelsRequest): Promise<google.shopping.css.v1.Account>;
Calls UpdateLabels.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAccountLabelsRequest
UpdateAccountLabelsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.Account> |
Promise |