Represents an AccountLabelsService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.css.v1.AccountLabelsServicePackage
@google-shopping/cssConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AccountLabelsService 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): AccountLabelsService;
Creates new AccountLabelsService 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 |
AccountLabelsService |
RPC service. Useful where requests and/or responses are streamed. |
createAccountLabel(request, callback)
public createAccountLabel(request: google.shopping.css.v1.ICreateAccountLabelRequest, callback: google.shopping.css.v1.AccountLabelsService.CreateAccountLabelCallback): void;
Calls CreateAccountLabel.
Parameters | |
---|---|
Name | Description |
request |
ICreateAccountLabelRequest
CreateAccountLabelRequest message or plain object |
callback |
CreateAccountLabelCallback
Node-style callback called with the error, if any, and AccountLabel |
Returns | |
---|---|
Type | Description |
void |
createAccountLabel(request)
public createAccountLabel(request: google.shopping.css.v1.ICreateAccountLabelRequest): Promise<google.shopping.css.v1.AccountLabel>;
Calls CreateAccountLabel.
Parameter | |
---|---|
Name | Description |
request |
ICreateAccountLabelRequest
CreateAccountLabelRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.AccountLabel> |
Promise |
deleteAccountLabel(request, callback)
public deleteAccountLabel(request: google.shopping.css.v1.IDeleteAccountLabelRequest, callback: google.shopping.css.v1.AccountLabelsService.DeleteAccountLabelCallback): void;
Calls DeleteAccountLabel.
Parameters | |
---|---|
Name | Description |
request |
IDeleteAccountLabelRequest
DeleteAccountLabelRequest message or plain object |
callback |
DeleteAccountLabelCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteAccountLabel(request)
public deleteAccountLabel(request: google.shopping.css.v1.IDeleteAccountLabelRequest): Promise<google.protobuf.Empty>;
Calls DeleteAccountLabel.
Parameter | |
---|---|
Name | Description |
request |
IDeleteAccountLabelRequest
DeleteAccountLabelRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
listAccountLabels(request, callback)
public listAccountLabels(request: google.shopping.css.v1.IListAccountLabelsRequest, callback: google.shopping.css.v1.AccountLabelsService.ListAccountLabelsCallback): void;
Calls ListAccountLabels.
Parameters | |
---|---|
Name | Description |
request |
IListAccountLabelsRequest
ListAccountLabelsRequest message or plain object |
callback |
ListAccountLabelsCallback
Node-style callback called with the error, if any, and ListAccountLabelsResponse |
Returns | |
---|---|
Type | Description |
void |
listAccountLabels(request)
public listAccountLabels(request: google.shopping.css.v1.IListAccountLabelsRequest): Promise<google.shopping.css.v1.ListAccountLabelsResponse>;
Calls ListAccountLabels.
Parameter | |
---|---|
Name | Description |
request |
IListAccountLabelsRequest
ListAccountLabelsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.ListAccountLabelsResponse> |
Promise |
updateAccountLabel(request, callback)
public updateAccountLabel(request: google.shopping.css.v1.IUpdateAccountLabelRequest, callback: google.shopping.css.v1.AccountLabelsService.UpdateAccountLabelCallback): void;
Calls UpdateAccountLabel.
Parameters | |
---|---|
Name | Description |
request |
IUpdateAccountLabelRequest
UpdateAccountLabelRequest message or plain object |
callback |
UpdateAccountLabelCallback
Node-style callback called with the error, if any, and AccountLabel |
Returns | |
---|---|
Type | Description |
void |
updateAccountLabel(request)
public updateAccountLabel(request: google.shopping.css.v1.IUpdateAccountLabelRequest): Promise<google.shopping.css.v1.AccountLabel>;
Calls UpdateAccountLabel.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAccountLabelRequest
UpdateAccountLabelRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.AccountLabel> |
Promise |