public sealed class LinearBuckets : IMessage<Distribution.Types.LinearBuckets>, IEquatable<Distribution.Types.LinearBuckets>, IDeepCloneable<Distribution.Types.LinearBuckets>, IBufferMessage, IMessage
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
System.Int32
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
System.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.
[[["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\u003eThis webpage details the \u003ccode\u003eLinearBuckets\u003c/code\u003e class, which is used to define buckets with a constant width in the \u003ccode\u003eGoogle.Cloud.ServiceControl.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLinearBuckets\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, for use in protocol buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default constructor (\u003ccode\u003eLinearBuckets()\u003c/code\u003e) and a copy constructor (\u003ccode\u003eLinearBuckets(Distribution.Types.LinearBuckets)\u003c/code\u003e) that accepts another \u003ccode\u003eLinearBuckets\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eLinearBuckets\u003c/code\u003e include \u003ccode\u003eNumFiniteBuckets\u003c/code\u003e (the number of finite buckets), \u003ccode\u003eOffset\u003c/code\u003e (the starting point of the first bucket), and \u003ccode\u003eWidth\u003c/code\u003e (the constant width of each bucket).\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the \u003ccode\u003eLinearBuckets\u003c/code\u003e class are documented on this webpage, with version 2.4.0 being the latest.\u003c/p\u003e\n"]]],[],null,[]]