Show / Hide Table of Contents

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
Implements
IMessage<Distribution.Types.BucketOptions>
IMessage
System.IEquatable<Distribution.Types.BucketOptions>
IDeepCloneable<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()
Namespace: Google.Api
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
public BucketOptions()

BucketOptions(Distribution.Types.BucketOptions)

Declaration
public BucketOptions(Distribution.Types.BucketOptions other)
Parameters
Type Name Description
Distribution.Types.BucketOptions other

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
Type Description
MessageDescriptor

ExplicitBuckets

The explicit buckets.

Declaration
public Distribution.Types.BucketOptions.Types.Explicit ExplicitBuckets { get; set; }
Property Value
Type Description
Distribution.Types.BucketOptions.Types.Explicit

ExponentialBuckets

The exponential buckets.

Declaration
public Distribution.Types.BucketOptions.Types.Exponential ExponentialBuckets { get; set; }
Property Value
Type Description
Distribution.Types.BucketOptions.Types.Exponential

LinearBuckets

The linear bucket.

Declaration
public Distribution.Types.BucketOptions.Types.Linear LinearBuckets { get; set; }
Property Value
Type Description
Distribution.Types.BucketOptions.Types.Linear

OptionsCase

Declaration
public Distribution.Types.BucketOptions.OptionsOneofCase OptionsCase { get; }
Property Value
Type Description
Distribution.Types.BucketOptions.OptionsOneofCase

Parser

Declaration
public static MessageParser<Distribution.Types.BucketOptions> Parser { get; }
Property Value
Type Description
MessageParser<Distribution.Types.BucketOptions>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

ClearOptions()

Declaration
public void ClearOptions()

Clone()

Declaration
public Distribution.Types.BucketOptions Clone()
Returns
Type Description
Distribution.Types.BucketOptions
Implements
IDeepCloneable<T>.Clone()

Equals(Distribution.Types.BucketOptions)

Declaration
public bool Equals(Distribution.Types.BucketOptions other)
Parameters
Type Name Description
Distribution.Types.BucketOptions other
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
Type Name Description
Distribution.Types.BucketOptions other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top