Show / Hide Table of Contents

Class Distribution.Types.BucketOptions.Types.Linear

Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.

There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:

Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).

Inheritance
System.Object
Distribution.Types.BucketOptions.Types.Linear
Implements
IMessage<Distribution.Types.BucketOptions.Types.Linear>
IMessage
System.IEquatable<Distribution.Types.BucketOptions.Types.Linear>
IDeepCloneable<Distribution.Types.BucketOptions.Types.Linear>
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 Linear : IMessage<Distribution.Types.BucketOptions.Types.Linear>, IMessage, IEquatable<Distribution.Types.BucketOptions.Types.Linear>, IDeepCloneable<Distribution.Types.BucketOptions.Types.Linear>

Constructors

Linear()

Declaration
public Linear()

Linear(Distribution.Types.BucketOptions.Types.Linear)

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

Fields

NumFiniteBucketsFieldNumber

Field number for the "num_finite_buckets" field.

Declaration
public const int NumFiniteBucketsFieldNumber = 1
Field Value
Type Description
System.Int32

OffsetFieldNumber

Field number for the "offset" field.

Declaration
public const int OffsetFieldNumber = 3
Field Value
Type Description
System.Int32

WidthFieldNumber

Field number for the "width" field.

Declaration
public const int WidthFieldNumber = 2
Field Value
Type Description
System.Int32

Properties

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

NumFiniteBuckets

Must be greater than 0.

Declaration
public int NumFiniteBuckets { get; set; }
Property Value
Type Description
System.Int32

Offset

Lower bound of the first bucket.

Declaration
public double Offset { get; set; }
Property Value
Type Description
System.Double

Parser

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

Width

Must be greater than 0.

Declaration
public double Width { get; set; }
Property Value
Type Description
System.Double

Methods

CalculateSize()

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

Clone()

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

Equals(Distribution.Types.BucketOptions.Types.Linear)

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

Declaration
public void MergeFrom(Distribution.Types.BucketOptions.Types.Linear other)
Parameters
Type Name Description
Distribution.Types.BucketOptions.Types.Linear 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