Class protos.google.api.servicecontrol.v1.ServiceController (3.3.0)

Represents a ServiceController

Inheritance

$protobuf.rpc.Service > protos.google.api.servicecontrol.v1.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.v1.ICheckRequest, callback: google.api.servicecontrol.v1.ServiceController.CheckCallback): void;

Calls Check.

Parameters
NameDescription
request ICheckRequest

CheckRequest message or plain object

callback CheckCallback

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

Returns
TypeDescription
void

check(request)

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

Calls Check.

Parameter
NameDescription
request ICheckRequest

CheckRequest message or plain object

Returns
TypeDescription
Promise<google.api.servicecontrol.v1.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.v1.IReportRequest, callback: google.api.servicecontrol.v1.ServiceController.ReportCallback): void;

Calls Report.

Parameters
NameDescription
request IReportRequest

ReportRequest message or plain object

callback ReportCallback

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

Returns
TypeDescription
void

report(request)

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

Calls Report.

Parameter
NameDescription
request IReportRequest

ReportRequest message or plain object

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

Promise