Reference documentation and code samples for the Migration Center v1 API class AggregationResult.Types.Histogram.Types.Bucket.
A histogram bucket with a lower and upper bound, and a count of items
with a field value between those bounds.
The lower bound is inclusive and the upper bound is exclusive.
Lower bound may be -infinity and upper bound may be infinity.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eAggregationResult.Types.Histogram.Types.Bucket\u003c/code\u003e class is 1.4.0, with older versions available from 1.0.0 up to 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class represents a histogram bucket within the Migration Center v1 API, used to count items with a field value falling within a specified range.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBucket\u003c/code\u003e class includes properties for \u003ccode\u003eCount\u003c/code\u003e, \u003ccode\u003eLowerBound\u003c/code\u003e, and \u003ccode\u003eUpperBound\u003c/code\u003e, to quantify the number of items and the range of the bucket.\u003c/p\u003e\n"],["\u003cp\u003eIt implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in message handling, equality comparisons, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default one (\u003ccode\u003eBucket()\u003c/code\u003e) and one that allows for creation by copying another bucket instance (\u003ccode\u003eBucket(Bucket)\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# Migration Center v1 API - Class AggregationResult.Types.Histogram.Types.Bucket (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.3.0/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.2.0/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.1.0/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.0.0/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket) \n\n public sealed class AggregationResult.Types.Histogram.Types.Bucket : IMessage\u003cAggregationResult.Types.Histogram.Types.Bucket\u003e, IEquatable\u003cAggregationResult.Types.Histogram.Types.Bucket\u003e, IDeepCloneable\u003cAggregationResult.Types.Histogram.Types.Bucket\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Migration Center v1 API class AggregationResult.Types.Histogram.Types.Bucket.\n\nA histogram bucket with a lower and upper bound, and a count of items\nwith a field value between those bounds.\nThe lower bound is inclusive and the upper bound is exclusive.\nLower bound may be -infinity and upper bound may be infinity. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AggregationResult.Types.Histogram.Types.Bucket \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AggregationResult](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult)[Types](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types)[Histogram](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram)[Types](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types)[Bucket](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AggregationResult](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult)[Types](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types)[Histogram](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram)[Types](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types)[Bucket](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AggregationResult](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult)[Types](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types)[Histogram](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram)[Types](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types)[Bucket](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.AggregationResult.Types.Histogram.Types.Bucket), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.MigrationCenter.V1](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.MigrationCenter.V1.dll\n\nConstructors\n------------\n\n### Bucket()\n\n public Bucket()\n\n### Bucket(Bucket)\n\n public Bucket(AggregationResult.Types.Histogram.Types.Bucket other)\n\nProperties\n----------\n\n### Count\n\n public long Count { get; set; }\n\nCount of items in the bucket.\n\n### LowerBound\n\n public double LowerBound { get; set; }\n\nLower bound - inclusive.\n\n### UpperBound\n\n public double UpperBound { get; set; }\n\nUpper bound - exclusive."]]