public static final class Distribution.BucketOptions extends com.google.protobuf.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 |
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 |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Distribution.BucketOptions |
getDefaultInstance() |
Distribution.BucketOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Distribution.BucketOptions.Explicit |
getExplicitBuckets()
The explicit buckets.
|
Distribution.BucketOptions.ExplicitOrBuilder |
getExplicitBucketsOrBuilder()
The explicit buckets.
|
Distribution.BucketOptions.Exponential |
getExponentialBuckets()
The exponential buckets.
|
Distribution.BucketOptions.ExponentialOrBuilder |
getExponentialBucketsOrBuilder()
The exponential buckets.
|
Distribution.BucketOptions.Linear |
getLinearBuckets()
The linear bucket.
|
Distribution.BucketOptions.LinearOrBuilder |
getLinearBucketsOrBuilder()
The linear bucket.
|
Distribution.BucketOptions.OptionsCase |
getOptionsCase() |
com.google.protobuf.Parser<Distribution.BucketOptions> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasExplicitBuckets()
The explicit buckets.
|
boolean |
hasExponentialBuckets()
The exponential buckets.
|
int |
hashCode() |
boolean |
hasLinearBuckets()
The linear bucket.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Distribution.BucketOptions.Builder |
newBuilder() |
static Distribution.BucketOptions.Builder |
newBuilder(Distribution.BucketOptions prototype) |
Distribution.BucketOptions.Builder |
newBuilderForType() |
protected Distribution.BucketOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Distribution.BucketOptions |
parseDelimitedFrom(java.io.InputStream input) |
static Distribution.BucketOptions |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.BucketOptions |
parseFrom(byte[] data) |
static Distribution.BucketOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.BucketOptions |
parseFrom(java.nio.ByteBuffer data) |
static Distribution.BucketOptions |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.BucketOptions |
parseFrom(com.google.protobuf.ByteString data) |
static Distribution.BucketOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.BucketOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Distribution.BucketOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.BucketOptions |
parseFrom(java.io.InputStream input) |
static Distribution.BucketOptions |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Distribution.BucketOptions> |
parser() |
Distribution.BucketOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public Distribution.BucketOptions.OptionsCase getOptionsCase()
getOptionsCase
in interface Distribution.BucketOptionsOrBuilder
public boolean hasLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
hasLinearBuckets
in interface Distribution.BucketOptionsOrBuilder
public Distribution.BucketOptions.Linear getLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
getLinearBuckets
in interface Distribution.BucketOptionsOrBuilder
public Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
getLinearBucketsOrBuilder
in interface Distribution.BucketOptionsOrBuilder
public boolean hasExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
hasExponentialBuckets
in interface Distribution.BucketOptionsOrBuilder
public Distribution.BucketOptions.Exponential getExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
getExponentialBuckets
in interface Distribution.BucketOptionsOrBuilder
public Distribution.BucketOptions.ExponentialOrBuilder getExponentialBucketsOrBuilder()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
getExponentialBucketsOrBuilder
in interface Distribution.BucketOptionsOrBuilder
public boolean hasExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
hasExplicitBuckets
in interface Distribution.BucketOptionsOrBuilder
public Distribution.BucketOptions.Explicit getExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
getExplicitBuckets
in interface Distribution.BucketOptionsOrBuilder
public Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
getExplicitBucketsOrBuilder
in interface Distribution.BucketOptionsOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Distribution.BucketOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.BucketOptions parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.BucketOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.BucketOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.BucketOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.BucketOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.BucketOptions parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Distribution.BucketOptions parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Distribution.BucketOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Distribution.BucketOptions parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Distribution.BucketOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Distribution.BucketOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Distribution.BucketOptions.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Distribution.BucketOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Distribution.BucketOptions getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder