Class protos.google.api.servicecontrol.v2.ServiceController (2.0.3)

Represents a ServiceController

Inheritance

$protobuf.rpc.Service > protos.google.api.servicecontrol.v2.ServiceController

Package

@google-cloud/service-control

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ServiceController service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

check(request, callback)

public check(request: google.api.servicecontrol.v2.ICheckRequest, callback: google.api.servicecontrol.v2.ServiceController.CheckCallback): void;

Calls Check.

Parameters
NameDescription
request ICheckRequest

CheckRequest message or plain object

callback google.api.servicecontrol.v2.ServiceController.CheckCallback

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

Returns
TypeDescription
void

check(request)

public check(request: google.api.servicecontrol.v2.ICheckRequest): Promise<google.api.servicecontrol.v2.CheckResponse>;

Calls Check.

Parameter
NameDescription
request ICheckRequest

CheckRequest message or plain object

Returns
TypeDescription
Promise<google.api.servicecontrol.v2.CheckResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ServiceController;

Creates new ServiceController service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
ServiceController

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

report(request, callback)

public report(request: google.api.servicecontrol.v2.IReportRequest, callback: google.api.servicecontrol.v2.ServiceController.ReportCallback): void;

Calls Report.

Parameters
NameDescription
request IReportRequest

ReportRequest message or plain object

callback google.api.servicecontrol.v2.ServiceController.ReportCallback

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

Returns
TypeDescription
void

report(request)

public report(request: google.api.servicecontrol.v2.IReportRequest): Promise<google.api.servicecontrol.v2.ReportResponse>;

Calls Report.

Parameter
NameDescription
request IReportRequest

ReportRequest message or plain object

Returns
TypeDescription
Promise<google.api.servicecontrol.v2.ReportResponse>

Promise