Represents a ProfilerService
Inheritance
$protobuf.rpc.Service > protos.google.devtools.cloudprofiler.v2.ProfilerServicePackage
@google-cloud/cloudprofilerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ProfilerService 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): ProfilerService;Creates new ProfilerService 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 |
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 | |
|---|---|
| Name | Description |
request |
ICreateOfflineProfileRequest
CreateOfflineProfileRequest message or plain object |
callback |
CreateOfflineProfileCallback
Node-style callback called with the error, if any, and Profile |
| Returns | |
|---|---|
| Type | Description |
void |
|
createOfflineProfile(request)
public createOfflineProfile(request: google.devtools.cloudprofiler.v2.ICreateOfflineProfileRequest): Promise<google.devtools.cloudprofiler.v2.Profile>;Calls CreateOfflineProfile.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateOfflineProfileRequest
CreateOfflineProfileRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ICreateProfileRequest
CreateProfileRequest message or plain object |
callback |
CreateProfileCallback
Node-style callback called with the error, if any, and Profile |
| Returns | |
|---|---|
| Type | Description |
void |
|
createProfile(request)
public createProfile(request: google.devtools.cloudprofiler.v2.ICreateProfileRequest): Promise<google.devtools.cloudprofiler.v2.Profile>;Calls CreateProfile.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateProfileRequest
CreateProfileRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IUpdateProfileRequest
UpdateProfileRequest message or plain object |
callback |
UpdateProfileCallback
Node-style callback called with the error, if any, and Profile |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateProfile(request)
public updateProfile(request: google.devtools.cloudprofiler.v2.IUpdateProfileRequest): Promise<google.devtools.cloudprofiler.v2.Profile>;Calls UpdateProfile.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateProfileRequest
UpdateProfileRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.devtools.cloudprofiler.v2.Profile> |
Promise |