Class protos.google.shopping.merchant.reports.v1beta.ReportService (0.7.0)

Represents a ReportService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.reports.v1beta.ReportService

Package

@google-shopping/reports

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ReportService 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): ReportService;

Creates new ReportService 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
ReportService

RPC service. Useful where requests and/or responses are streamed.

search(request, callback)

public search(request: google.shopping.merchant.reports.v1beta.ISearchRequest, callback: google.shopping.merchant.reports.v1beta.ReportService.SearchCallback): void;

Calls Search.

Parameters
Name Description
request ISearchRequest

SearchRequest message or plain object

callback SearchCallback

Node-style callback called with the error, if any, and SearchResponse

Returns
Type Description
void

search(request)

public search(request: google.shopping.merchant.reports.v1beta.ISearchRequest): Promise<google.shopping.merchant.reports.v1beta.SearchResponse>;

Calls Search.

Parameter
Name Description
request ISearchRequest

SearchRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.reports.v1beta.SearchResponse>

Promise