2.7.0 (latest) 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    public sealed class CreateProfileRequest : IMessage<CreateProfileRequest>, IEquatable<CreateProfileRequest>, IDeepCloneable<CreateProfileRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Profiler v2 API 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CreateProfileRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateProfileRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.CreateProfileRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateProfileRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.CreateProfileRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateProfileRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.CreateProfileRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Profiler.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.md.txt)

## Assembly

Google.Cloud.Profiler.V2.dll

## Constructors

### CreateProfileRequest()

    public CreateProfileRequest()

### CreateProfileRequest(CreateProfileRequest)

    public CreateProfileRequest(CreateProfileRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `CreateProfileRequest` |

## Properties

### Deployment

    public Deployment Deployment { get; set; }

Deployment details.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Deployment` |   |

### Parent

    public string Parent { get; set; }

Parent project to create the profile in.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ParentAsProjectName

    public ProjectName ParentAsProjectName { get; set; }

[ProjectName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.CreateProfileRequest.md.txt#Google_Cloud_Profiler_V2_CreateProfileRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ProjectName` |   |

### ProfileType

    public RepeatedField<ProfileType> ProfileType { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldProfileType` |   |