Class protos.google.devtools.cloudprofiler.v2.ProfilerService (0.2.0)

Represents a ProfilerService

Inheritance

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

Package

@google-cloud/cloudprofiler

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ProfilerService 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): ProfilerService;

Creates new ProfilerService 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
ProfilerService

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

createOfflineProfile(request, callback)

public createOfflineProfile(request: google.devtools.cloudprofiler.v2.ICreateOfflineProfileRequest, callback: google.devtools.cloudprofiler.v2.ProfilerService.CreateOfflineProfileCallback): void;

Calls CreateOfflineProfile.

Parameters
NameDescription
request ICreateOfflineProfileRequest

CreateOfflineProfileRequest message or plain object

callback CreateOfflineProfileCallback

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

Returns
TypeDescription
void

createOfflineProfile(request)

public createOfflineProfile(request: google.devtools.cloudprofiler.v2.ICreateOfflineProfileRequest): Promise<google.devtools.cloudprofiler.v2.Profile>;

Calls CreateOfflineProfile.

Parameter
NameDescription
request ICreateOfflineProfileRequest

CreateOfflineProfileRequest message or plain object

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

Promise

createProfile(request, callback)

public createProfile(request: google.devtools.cloudprofiler.v2.ICreateProfileRequest, callback: google.devtools.cloudprofiler.v2.ProfilerService.CreateProfileCallback): void;

Calls CreateProfile.

Parameters
NameDescription
request ICreateProfileRequest

CreateProfileRequest message or plain object

callback CreateProfileCallback

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

Returns
TypeDescription
void

createProfile(request)

public createProfile(request: google.devtools.cloudprofiler.v2.ICreateProfileRequest): Promise<google.devtools.cloudprofiler.v2.Profile>;

Calls CreateProfile.

Parameter
NameDescription
request ICreateProfileRequest

CreateProfileRequest message or plain object

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

Promise

updateProfile(request, callback)

public updateProfile(request: google.devtools.cloudprofiler.v2.IUpdateProfileRequest, callback: google.devtools.cloudprofiler.v2.ProfilerService.UpdateProfileCallback): void;

Calls UpdateProfile.

Parameters
NameDescription
request IUpdateProfileRequest

UpdateProfileRequest message or plain object

callback UpdateProfileCallback

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

Returns
TypeDescription
void

updateProfile(request)

public updateProfile(request: google.devtools.cloudprofiler.v2.IUpdateProfileRequest): Promise<google.devtools.cloudprofiler.v2.Profile>;

Calls UpdateProfile.

Parameter
NameDescription
request IUpdateProfileRequest

UpdateProfileRequest message or plain object

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

Promise