# Class BatchingSettings (4.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [4.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.BatchingSettings)
- [4.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.BatchingSettings)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.BatchingSettings)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.BatchingSettings)
- [4.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.BatchingSettings)
- [4.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.BatchingSettings)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.BatchingSettings)

    public sealed class BatchingSettings

Batching settings used to specify the conditions under which a batch of data
will be further processed.

## Inheritance

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

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Api.Gax](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax)

## Assembly

Google.Api.Gax.dll

## Constructors

### BatchingSettings(long?, long?, TimeSpan?)

    public BatchingSettings(long? elementCountThreshold, long? byteCountThreshold, TimeSpan? delayThreshold)

Creates a new instance with the specified settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `elementCountThreshold` | `https://learn.microsoft.com/dotnet/api/system.int64` The element count above which further processing of a batch will occur. |
| `byteCountThreshold` | `https://learn.microsoft.com/dotnet/api/system.int64` The byte count above which further processing of a batch will occur. |
| `delayThreshold` | `https://learn.microsoft.com/dotnet/api/system.timespan` The batch lifetime above which further processing of a batch will occur. |

## Properties

### ByteCountThreshold

    public long? ByteCountThreshold { get; }

The byte count above which further processing of a batch will occur.

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

### DelayThreshold

    public TimeSpan? DelayThreshold { get; }

The batch lifetime above which further processing of a batch will occur.

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

### ElementCountThreshold

    public long? ElementCountThreshold { get; }

The element count above which further processing of a batch will occur.

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