public static final class Distribution.BucketOptions extends com.google.protobuf.GeneratedMessageV3 implements Distribution.BucketOptionsOrBuilder
A Distribution may optionally contain a histogram of the values in the population. The histogram is given in `bucket_counts` as counts of values that fall into one of a sequence of non-overlapping buckets. The sequence of buckets is described by `bucket_options`. A bucket specifies an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket is 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. `BucketOptions` describes bucket boundaries in one of three ways. Two describe the boundaries by giving parameters for a formula to generate boundaries and one gives the bucket boundaries explicitly. If `bucket_boundaries` is not given, then no `bucket_counts` may be given.Protobuf type
google.api.Distribution.BucketOptions| Modifier and Type | Class and Description |
|---|---|
static class |
Distribution.BucketOptions.Builder
A Distribution may optionally contain a histogram of the values in the
population.
|
static class |
Distribution.BucketOptions.Explicit
A set of buckets with arbitrary widths.
|
static interface |
Distribution.BucketOptions.ExplicitOrBuilder |
static class |
Distribution.BucketOptions.Exponential
Specify a 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
Specify a sequence of buckets that all have the same width (except
overflow and underflow).
|
static interface |
Distribution.BucketOptions.LinearOrBuilder |
static class |
Distribution.BucketOptions.OptionsCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.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 |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Distribution.BucketOptions.OptionsCase getOptionsCase()
getOptionsCase in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.Linear getLinearBuckets()
The linear bucket.
optional .google.api.Distribution.BucketOptions.Linear linear_buckets = 1;getLinearBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder()
The linear bucket.
optional .google.api.Distribution.BucketOptions.Linear linear_buckets = 1;getLinearBucketsOrBuilder in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.Exponential getExponentialBuckets()
The exponential buckets.
optional .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;getExponentialBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.ExponentialOrBuilder getExponentialBucketsOrBuilder()
The exponential buckets.
optional .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;getExponentialBucketsOrBuilder in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.Explicit getExplicitBuckets()
The explicit buckets.
optional .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;getExplicitBuckets in interface Distribution.BucketOptionsOrBuilderpublic Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder()
The explicit buckets.
optional .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;getExplicitBucketsOrBuilder in interface Distribution.BucketOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Distribution.BucketOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseFrom(java.io.InputStream input, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Distribution.BucketOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Distribution.BucketOptions.Builder newBuilder()
public static Distribution.BucketOptions.Builder newBuilder(Distribution.BucketOptions prototype)
public Distribution.BucketOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Distribution.BucketOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Distribution.BucketOptions getDefaultInstance()
public static com.google.protobuf.Parser<Distribution.BucketOptions> parser()
public com.google.protobuf.Parser<Distribution.BucketOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Distribution.BucketOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder