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 Profile : IMessage<Profile>, IEquatable<Profile>, IDeepCloneable<Profile>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Profiler v2 API class Profile.

Profile resource.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Profile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.Profile.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Profile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.Profile.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Profile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.Profile.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

### Profile()

    public Profile()

### Profile(Profile)

    public Profile(Profile other)

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

## Properties

### Deployment

    public Deployment Deployment { get; set; }

Deployment this profile corresponds to.

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

### Duration

    public Duration Duration { get; set; }

Duration of the profiling session.
Input (for the offline mode) or output (for the online mode).
The field represents requested profiling duration. It may slightly differ
from the effective profiling duration, which is recorded in the profile
data, in case the profiling can't be stopped immediately (e.g. in case
stopping the profiling is handled asynchronously).

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

### Labels

    public MapField<string, string> Labels { get; }

Input only. Labels associated to this specific profile. These labels will
get merged with the deployment labels for the final data set. See
documentation on deployment labels for validation rules and limits.

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

### Name

    public string Name { get; set; }

Output only. Opaque, server-assigned, unique ID for this profile.

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

### ProfileBytes

    public ByteString ProfileBytes { get; set; }

Input only. Profile bytes, as a gzip compressed serialized proto, the
format is <https://github.com/google/pprof/blob/master/proto/profile.proto>.

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

### ProfileName

    public ProfileName ProfileName { get; set; }

[ProfileName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.ProfileName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.Profile.md.txt#Google_Cloud_Profiler_V2_Profile_Name) resource name property.

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

### ProfileType

    public ProfileType ProfileType { get; set; }

Type of profile.
For offline mode, this must be specified when creating the profile. For
online mode it is assigned and returned by the server.

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

### StartTime

    public Timestamp StartTime { get; set; }

Output only. Start time for the profile.
This output is only present in response from the ListProfiles method.

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