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

Reference documentation and code samples for the Observability v1 API class CreateTraceScopeRequest.

Request for creating a TraceScope.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateTraceScopeRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CreateTraceScopeRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateTraceScopeRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CreateTraceScopeRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateTraceScopeRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CreateTraceScopeRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.Observability.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1)

## Assembly

Google.Cloud.Observability.V1.dll

## Constructors

### CreateTraceScopeRequest()

    public CreateTraceScopeRequest()

### CreateTraceScopeRequest(CreateTraceScopeRequest)

    public CreateTraceScopeRequest(CreateTraceScopeRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CreateTraceScopeRequest` |

## Properties

### Parent

    public string Parent { get; set; }

Required. The full resource name of the location where the trace scope
should be created

    projects/[PROJECT_ID]/locations/[LOCATION_ID]

For example:

    projects/my-project/locations/global

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CreateTraceScopeRequest#Google_Cloud_Observability_V1_CreateTraceScopeRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### TraceScope

    public TraceScope TraceScope { get; set; }

Required. The new trace scope.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.TraceScope` |   |

### TraceScopeId

    public string TraceScopeId { get; set; }

Required. A client-assigned identifier for the trace scope.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |