Class protos.google.devtools.cloudprofiler.v2.ExportService (0.4.0)

Represents an ExportService

Inheritance

$protobuf.rpc.Service > protos.google.devtools.cloudprofiler.v2.ExportService

Package

@google-cloud/cloudprofiler

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ExportService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request IListProfilesRequest

ListProfilesRequest message or plain object

callback ListProfilesCallback

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

Returns
TypeDescription
void

listProfiles(request)

public listProfiles(request: google.devtools.cloudprofiler.v2.IListProfilesRequest): Promise<google.devtools.cloudprofiler.v2.ListProfilesResponse>;

Calls ListProfiles.

Parameter
NameDescription
request IListProfilesRequest

ListProfilesRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudprofiler.v2.ListProfilesResponse>

Promise