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| Modifier and Type | Class and Description |
|---|---|
static class |
Distribution.BucketOptions.Builder
`BucketOptions` describes the bucket boundaries used to create a histogram
for the distribution.
|
static class |
Distribution.BucketOptions.Explicit
Specifies a set of buckets with arbitrary widths.
|
static interface |
Distribution.BucketOptions.ExplicitOrBuilder |
static class |
Distribution.BucketOptions.Exponential
Specifies an exponential sequence of buckets that have a width that is
proportional to the value of the lower bound.
|
static interface |
Distribution.BucketOptions.ExponentialOrBuilder |
static class |
Distribution.BucketOptions.Linear
Specifies a linear sequence of buckets that all have the same width
(except overflow and underflow).
|
static interface |
Distribution.BucketOptions.LinearOrBuilder |
static class |
Distribution.BucketOptions.OptionsCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
EXPLICIT_BUCKETS_FIELD_NUMBER |
static int |
EXPONENTIAL_BUCKETS_FIELD_NUMBER |
static int |
LINEAR_BUCKETS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int LINEAR_BUCKETS_FIELD_NUMBER
public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER
public static final int EXPLICIT_BUCKETS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public Distribution.BucketOptions.OptionsCase getOptionsCase()
getOptionsCase in interface Distribution.BucketOptionsOrBuilderpublic boolean hasLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;hasLinearBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.Linear getLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;getLinearBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;getLinearBucketsOrBuilder in interface Distribution.BucketOptionsOrBuilderpublic boolean hasExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;hasExponentialBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.Exponential getExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;getExponentialBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.ExponentialOrBuilder getExponentialBucketsOrBuilder()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;getExponentialBucketsOrBuilder in interface Distribution.BucketOptionsOrBuilderpublic boolean hasExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;hasExplicitBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.Explicit getExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;getExplicitBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;getExplicitBucketsOrBuilder in interface Distribution.BucketOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Distribution.BucketOptions parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Distribution.BucketOptions.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Distribution.BucketOptions.Builder newBuilder()
public static Distribution.BucketOptions.Builder newBuilder(Distribution.BucketOptions prototype)
public Distribution.BucketOptions.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Distribution.BucketOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Distribution.BucketOptions getDefaultInstance()
public static Parser<Distribution.BucketOptions> parser()
public Parser<Distribution.BucketOptions> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Distribution.BucketOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder