Class Distribution.Types.BucketOptions
BucketOptions
describes the bucket boundaries used to create a histogram
for the distribution. The buckets can be in a linear sequence, an
exponential sequence, or each bucket can be specified explicitly.
BucketOptions
does not include the number of values in each bucket.
A bucket has an inclusive lower bound and exclusive upper bound for the
values that are counted for that bucket. The upper bound of a bucket must
be strictly greater than the lower bound. The sequence of N buckets for a
distribution consists of an underflow bucket (number 0), zero or more
finite buckets (number 1 through N - 2) and an overflow bucket (number N -
1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
same as the upper bound of bucket i - 1. The buckets span the whole range
of finite values: lower bound of the underflow bucket is -infinity and the
upper bound of the overflow bucket is +infinity. The finite buckets are
so-called because both bounds are finite.
Inheritance
System.Object
Distribution.Types.BucketOptions
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class BucketOptions : IMessage<Distribution.Types.BucketOptions>, IMessage, IEquatable<Distribution.Types.BucketOptions>, IDeepCloneable<Distribution.Types.BucketOptions>
Constructors
BucketOptions()
Declaration
BucketOptions(Distribution.Types.BucketOptions)
Declaration
public BucketOptions(Distribution.Types.BucketOptions other)
Parameters
Fields
ExplicitBucketsFieldNumber
Field number for the "explicit_buckets" field.
Declaration
public const int ExplicitBucketsFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
ExponentialBucketsFieldNumber
Field number for the "exponential_buckets" field.
Declaration
public const int ExponentialBucketsFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
LinearBucketsFieldNumber
Field number for the "linear_buckets" field.
Declaration
public const int LinearBucketsFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
ExplicitBuckets
Declaration
public Distribution.Types.BucketOptions.Types.Explicit ExplicitBuckets { get; set; }
Property Value
ExponentialBuckets
Declaration
public Distribution.Types.BucketOptions.Types.Exponential ExponentialBuckets { get; set; }
Property Value
LinearBuckets
Declaration
public Distribution.Types.BucketOptions.Types.Linear LinearBuckets { get; set; }
Property Value
OptionsCase
Declaration
public Distribution.Types.BucketOptions.OptionsOneofCase OptionsCase { get; }
Property Value
Parser
Declaration
public static MessageParser<Distribution.Types.BucketOptions> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
ClearOptions()
Declaration
public void ClearOptions()
Clone()
Declaration
public Distribution.Types.BucketOptions Clone()
Returns
Implements
Equals(Distribution.Types.BucketOptions)
Declaration
public bool Equals(Distribution.Types.BucketOptions other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
MergeFrom(Distribution.Types.BucketOptions)
Declaration
public void MergeFrom(Distribution.Types.BucketOptions other)
Parameters
Implements
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements