Send feedback
Class Distribution.BucketOptions (2.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.10.0 keyboard_arrow_down
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
EXPONENTIAL_BUCKETS_FIELD_NUMBER
public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER
Field Value
LINEAR_BUCKETS_FIELD_NUMBER
public static final int LINEAR_BUCKETS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Distribution . BucketOptions getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static Distribution . BucketOptions . Builder newBuilder ()
Returns
newBuilder(Distribution.BucketOptions prototype)
public static Distribution . BucketOptions . Builder newBuilder ( Distribution . BucketOptions prototype )
Parameter
Returns
public static Distribution . BucketOptions parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Distribution . BucketOptions parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Distribution . BucketOptions parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Distribution . BucketOptions parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Distribution . BucketOptions parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Distribution . BucketOptions parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Distribution . BucketOptions parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static Distribution . BucketOptions parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Distribution . BucketOptions parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Distribution . BucketOptions parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Distribution . BucketOptions parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Distribution . BucketOptions parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<Distribution . BucketOptions > parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Distribution . BucketOptions getDefaultInstanceForType ()
Returns
getExplicitBuckets()
public Distribution . BucketOptions . Explicit getExplicitBuckets ()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
Returns
getExplicitBucketsOrBuilder()
public Distribution . BucketOptions . ExplicitOrBuilder getExplicitBucketsOrBuilder ()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
Returns
getExponentialBuckets()
public Distribution . BucketOptions . Exponential getExponentialBuckets ()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
Returns
getExponentialBucketsOrBuilder()
public Distribution . BucketOptions . ExponentialOrBuilder getExponentialBucketsOrBuilder ()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
Returns
getLinearBuckets()
public Distribution . BucketOptions . Linear getLinearBuckets ()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
Returns
getLinearBucketsOrBuilder()
public Distribution . BucketOptions . LinearOrBuilder getLinearBucketsOrBuilder ()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
Returns
getOptionsCase()
public Distribution . BucketOptions . OptionsCase getOptionsCase ()
Returns
getParserForType()
public Parser<Distribution . BucketOptions > getParserForType ()
Returns
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hasExplicitBuckets()
public boolean hasExplicitBuckets ()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
Returns
Type Description boolean Whether the explicitBuckets field is set.
hasExponentialBuckets()
public boolean hasExponentialBuckets ()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
Returns
Type Description boolean Whether the exponentialBuckets field is set.
hasLinearBuckets()
public boolean hasLinearBuckets ()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
Returns
Type Description boolean Whether the linearBuckets field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public Distribution . BucketOptions . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Distribution . BucketOptions . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public Distribution . BucketOptions . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]