Google Cloud Profiler V2 Client - Class CreateProfileRequest (1.0.3)

Reference documentation and code samples for the Google Cloud Profiler V2 Client class CreateProfileRequest.

CreateProfileRequest describes a profile resource online creation request.

The deployment field must be populated. The profile_type specifies the list of profile types supported by the agent. The creation call will hang until a profile of one of these types needs to be collected.

Generated from protobuf message google.devtools.cloudprofiler.v2.CreateProfileRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Parent project to create the profile in.

↳ deployment Google\Cloud\Profiler\V2\Deployment

Deployment details.

↳ profile_type array

One or more profile types that the agent is capable of providing.

getParent

Parent project to create the profile in.

Returns
TypeDescription
string

setParent

Parent project to create the profile in.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDeployment

Deployment details.

Returns
TypeDescription
Google\Cloud\Profiler\V2\Deployment|null

hasDeployment

clearDeployment

setDeployment

Deployment details.

Parameter
NameDescription
var Google\Cloud\Profiler\V2\Deployment
Returns
TypeDescription
$this

getProfileType

One or more profile types that the agent is capable of providing.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProfileType

One or more profile types that the agent is capable of providing.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this