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
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 Linear : IMessage<Distribution.Types.BucketOptions.Types.Linear>, IMessage, IEquatable<Distribution.Types.BucketOptions.Types.Linear>, IDeepCloneable<Distribution.Types.BucketOptions.Types.Linear>
Constructors
Linear()
Declaration
Linear(Distribution.Types.BucketOptions.Types.Linear)
Declaration
public Linear(Distribution.Types.BucketOptions.Types.Linear other)
Parameters
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
NumFiniteBuckets
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
Width
Declaration
public double Width { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public Distribution.Types.BucketOptions.Types.Linear Clone()
Returns
Implements
Equals(Distribution.Types.BucketOptions.Types.Linear)
Declaration
public bool Equals(Distribution.Types.BucketOptions.Types.Linear 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.Types.Linear)
Declaration
public void MergeFrom(Distribution.Types.BucketOptions.Types.Linear 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