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

    public sealed class Distribution.Types.LinearBuckets : IMessage<Distribution.Types.LinearBuckets>, IEquatable<Distribution.Types.LinearBuckets>, IDeepCloneable<Distribution.Types.LinearBuckets>, IBufferMessage, IMessage

Reference documentation and code samples for the Service Control v1 API class Distribution.Types.LinearBuckets.

Describing buckets with constant width.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.ServiceControl.V1.dll

## Constructors

### LinearBuckets()

    public LinearBuckets()

### LinearBuckets(LinearBuckets)

    public LinearBuckets(Distribution.Types.LinearBuckets other)

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

## Properties

### NumFiniteBuckets

    public int NumFiniteBuckets { get; set; }

The number of finite buckets. With the underflow and overflow buckets,
the total number of buckets is `num_finite_buckets` + 2.
See comments on `bucket_options` for details.

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

### Offset

    public double Offset { get; set; }

The i'th linear bucket covers the interval
\[offset + (i-1) \* width, offset + i \* width)
where i ranges from 1 to num_finite_buckets, inclusive.

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

### Width

    public double Width { get; set; }

The i'th linear bucket covers the interval
\[offset + (i-1) \* width, offset + i \* width)
where i ranges from 1 to num_finite_buckets, inclusive.
Must be strictly positive.

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