Represents an ExportService
Inheritance
$protobuf.rpc.Service > protos.google.devtools.cloudprofiler.v2.ExportServicePackage
@google-cloud/cloudprofilerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ExportService 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): ExportService;Creates new ExportService 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 |
ExportService |
RPC service. Useful where requests and/or responses are streamed. |
listProfiles(request, callback)
public listProfiles(request: google.devtools.cloudprofiler.v2.IListProfilesRequest, callback: google.devtools.cloudprofiler.v2.ExportService.ListProfilesCallback): void;Calls ListProfiles.
| Parameters | |
|---|---|
| Name | Description |
request |
IListProfilesRequest
ListProfilesRequest message or plain object |
callback |
ListProfilesCallback
Node-style callback called with the error, if any, and ListProfilesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listProfiles(request)
public listProfiles(request: google.devtools.cloudprofiler.v2.IListProfilesRequest): Promise<google.devtools.cloudprofiler.v2.ListProfilesResponse>;Calls ListProfiles.
| Parameter | |
|---|---|
| Name | Description |
request |
IListProfilesRequest
ListProfilesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.devtools.cloudprofiler.v2.ListProfilesResponse> |
Promise |