Represents a ServiceController
Inheritance
$protobuf.rpc.Service > protos.google.api.servicecontrol.v2.ServiceControllerPackage
@google-cloud/service-controlConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ServiceController service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
request |
google.api.servicecontrol.v2.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 | |
---|---|
Type | Description |
void |
check(request)
public check(request: google.api.servicecontrol.v2.ICheckRequest): Promise<google.api.servicecontrol.v2.CheckResponse>;
Calls Check.
Parameter | |
---|---|
Name | Description |
request |
google.api.servicecontrol.v2.ICheckRequest
CheckRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
report(request)
public report(request: google.api.servicecontrol.v2.IReportRequest): Promise<google.api.servicecontrol.v2.ReportResponse>;
Calls Report.
Parameter | |
---|---|
Name | Description |
request |
IReportRequest
ReportRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.servicecontrol.v2.ReportResponse> | Promise |