Represents a CssProductsService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.css.v1.CssProductsServicePackage
@google-shopping/cssConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new CssProductsService 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): CssProductsService;
Creates new CssProductsService 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 |
CssProductsService |
RPC service. Useful where requests and/or responses are streamed. |
getCssProduct(request, callback)
public getCssProduct(request: google.shopping.css.v1.IGetCssProductRequest, callback: google.shopping.css.v1.CssProductsService.GetCssProductCallback): void;
Calls GetCssProduct.
Parameters | |
---|---|
Name | Description |
request |
IGetCssProductRequest
GetCssProductRequest message or plain object |
callback |
GetCssProductCallback
Node-style callback called with the error, if any, and CssProduct |
Returns | |
---|---|
Type | Description |
void |
getCssProduct(request)
public getCssProduct(request: google.shopping.css.v1.IGetCssProductRequest): Promise<google.shopping.css.v1.CssProduct>;
Calls GetCssProduct.
Parameter | |
---|---|
Name | Description |
request |
IGetCssProductRequest
GetCssProductRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.CssProduct> |
Promise |
listCssProducts(request, callback)
public listCssProducts(request: google.shopping.css.v1.IListCssProductsRequest, callback: google.shopping.css.v1.CssProductsService.ListCssProductsCallback): void;
Calls ListCssProducts.
Parameters | |
---|---|
Name | Description |
request |
IListCssProductsRequest
ListCssProductsRequest message or plain object |
callback |
ListCssProductsCallback
Node-style callback called with the error, if any, and ListCssProductsResponse |
Returns | |
---|---|
Type | Description |
void |
listCssProducts(request)
public listCssProducts(request: google.shopping.css.v1.IListCssProductsRequest): Promise<google.shopping.css.v1.ListCssProductsResponse>;
Calls ListCssProducts.
Parameter | |
---|---|
Name | Description |
request |
IListCssProductsRequest
ListCssProductsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.css.v1.ListCssProductsResponse> |
Promise |