3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0

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

Reference documentation and code samples for the Google Cloud Trace v2 API class BatchWriteSpansRequest.

The request message for the `BatchWriteSpans` method.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Trace.V2.dll

## Constructors

### BatchWriteSpansRequest()

    public BatchWriteSpansRequest()

### BatchWriteSpansRequest(BatchWriteSpansRequest)

    public BatchWriteSpansRequest(BatchWriteSpansRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Required. The name of the project where the spans belong. The format is
`projects/[PROJECT_ID]`.

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

### ProjectName

    public ProjectName ProjectName { 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 [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.BatchWriteSpansRequest.md.txt#Google_Cloud_Trace_V2_BatchWriteSpansRequest_Name) resource name property.

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

### Spans

    public RepeatedField<Span> Spans { get; }

Required. A list of new spans. The span names must not match existing
spans, otherwise the results are undefined.

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