Class Distribution.BucketOptions (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Distribution.BucketOptions extends GeneratedMessageV3 implements Distribution.BucketOptionsOrBuilder

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.

Protobuf type google.api.Distribution.BucketOptions

Static Fields

EXPLICIT_BUCKETS_FIELD_NUMBER

public static final int EXPLICIT_BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

EXPONENTIAL_BUCKETS_FIELD_NUMBER

public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

LINEAR_BUCKETS_FIELD_NUMBER

public static final int LINEAR_BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Distribution.BucketOptions getDefaultInstance()
Returns
TypeDescription
Distribution.BucketOptions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Distribution.BucketOptions.Builder newBuilder()
Returns
TypeDescription
Distribution.BucketOptions.Builder

newBuilder(Distribution.BucketOptions prototype)

public static Distribution.BucketOptions.Builder newBuilder(Distribution.BucketOptions prototype)
Parameter
NameDescription
prototypeDistribution.BucketOptions
Returns
TypeDescription
Distribution.BucketOptions.Builder

parseDelimitedFrom(InputStream input)

public static Distribution.BucketOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Distribution.BucketOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Distribution.BucketOptions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Distribution.BucketOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Distribution.BucketOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Distribution.BucketOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Distribution.BucketOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Distribution.BucketOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Distribution.BucketOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Distribution.BucketOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Distribution.BucketOptio