public final class Distribution extends com.google.protobuf.GeneratedMessageV3 implements DistributionOrBuilder
Distribution contains summary statistics for a population of values and, optionally, a histogram representing the distribution of those values across a specified set of histogram buckets. The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by specifying parameters for a method of computing them (buckets of fixed width or buckets of exponentially increasing width). Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the `mean` and `sum_of_squared_deviation` fields meaningless.Protobuf type
google.api.Distribution| Modifier and Type | Class and Description |
|---|---|
static class |
Distribution.BucketOptions
A Distribution may optionally contain a histogram of the values in the
population.
|
static interface |
Distribution.BucketOptionsOrBuilder |
static class |
Distribution.Builder
Distribution contains summary statistics for a population of values and,
optionally, a histogram representing the distribution of those values across
a specified set of histogram buckets.
|
static class |
Distribution.Range
The range of the population values.
|
static interface |
Distribution.RangeOrBuilder |
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 |
BUCKET_COUNTS_FIELD_NUMBER |
static int |
BUCKET_OPTIONS_FIELD_NUMBER |
static int |
COUNT_FIELD_NUMBER |
static int |
MEAN_FIELD_NUMBER |
static int |
RANGE_FIELD_NUMBER |
static int |
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getBucketCounts(int index)
If `bucket_options` is given, then the sum of the values in `bucket_counts`
must equal the value in `count`.
|
int |
getBucketCountsCount()
If `bucket_options` is given, then the sum of the values in `bucket_counts`
must equal the value in `count`.
|
java.util.List<java.lang.Long> |
getBucketCountsList()
If `bucket_options` is given, then the sum of the values in `bucket_counts`
must equal the value in `count`.
|
Distribution.BucketOptions |
getBucketOptions()
Defines the histogram bucket boundaries.
|
Distribution.BucketOptionsOrBuilder |
getBucketOptionsOrBuilder()
Defines the histogram bucket boundaries.
|
long |
getCount()
The number of values in the population.
|
static Distribution |
getDefaultInstance() |
Distribution |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getMean()
The arithmetic mean of the values in the population.
|
com.google.protobuf.Parser<Distribution> |
getParserForType() |
Distribution.Range |
getRange()
If specified, contains the range of the population values.
|
Distribution.RangeOrBuilder |
getRangeOrBuilder()
If specified, contains the range of the population values.
|
int |
getSerializedSize() |
double |
getSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the
population.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBucketOptions()
Defines the histogram bucket boundaries.
|
int |
hashCode() |
boolean |
hasRange()
If specified, contains the range of the population values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Distribution.Builder |
newBuilder() |
static Distribution.Builder |
newBuilder(Distribution prototype) |
Distribution.Builder |
newBuilderForType() |
protected Distribution.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Distribution |
parseDelimitedFrom(java.io.InputStream input) |
static Distribution |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(byte[] data) |
static Distribution |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(com.google.protobuf.ByteString data) |
static Distribution |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Distribution |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(java.io.InputStream input) |
static Distribution |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Distribution> |
parser() |
Distribution.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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 COUNT_FIELD_NUMBER
public static final int MEAN_FIELD_NUMBER
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER
public static final int BUCKET_OPTIONS_FIELD_NUMBER
public static final int BUCKET_COUNTS_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 long getCount()
The number of values in the population. Must be non-negative.
optional int64 count = 1;getCount in interface DistributionOrBuilderpublic double getMean()
The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
optional double mean = 2;getMean in interface DistributionOrBuilderpublic double getSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the
population. For values x_i this is:
Sum[i=1..n]((x_i - mean)^2)
Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
describes Welford's method for accumulating this sum in one pass.
If `count` is zero then this field must be zero.
optional double sum_of_squared_deviation = 3;getSumOfSquaredDeviation in interface DistributionOrBuilderpublic boolean hasRange()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
optional .google.api.Distribution.Range range = 4;hasRange in interface DistributionOrBuilderpublic Distribution.Range getRange()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
optional .google.api.Distribution.Range range = 4;getRange in interface DistributionOrBuilderpublic Distribution.RangeOrBuilder getRangeOrBuilder()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
optional .google.api.Distribution.Range range = 4;getRangeOrBuilder in interface DistributionOrBuilderpublic boolean hasBucketOptions()
Defines the histogram bucket boundaries.
optional .google.api.Distribution.BucketOptions bucket_options = 6;hasBucketOptions in interface DistributionOrBuilderpublic Distribution.BucketOptions getBucketOptions()
Defines the histogram bucket boundaries.
optional .google.api.Distribution.BucketOptions bucket_options = 6;getBucketOptions in interface DistributionOrBuilderpublic Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder()
Defines the histogram bucket boundaries.
optional .google.api.Distribution.BucketOptions bucket_options = 6;getBucketOptionsOrBuilder in interface DistributionOrBuilderpublic java.util.List<java.lang.Long> getBucketCountsList()
If `bucket_options` is given, then the sum of the values in `bucket_counts` must equal the value in `count`. If `bucket_options` is not given, no `bucket_counts` fields may be given. Bucket counts are given in order under the numbering scheme described above (the underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; the overflow bucket has number N-1). The size of `bucket_counts` must be no greater than N as defined in `bucket_options`. Any suffix of trailing zero bucket_count fields may be omitted.
repeated int64 bucket_counts = 7;getBucketCountsList in interface DistributionOrBuilderpublic int getBucketCountsCount()
If `bucket_options` is given, then the sum of the values in `bucket_counts` must equal the value in `count`. If `bucket_options` is not given, no `bucket_counts` fields may be given. Bucket counts are given in order under the numbering scheme described above (the underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; the overflow bucket has number N-1). The size of `bucket_counts` must be no greater than N as defined in `bucket_options`. Any suffix of trailing zero bucket_count fields may be omitted.
repeated int64 bucket_counts = 7;getBucketCountsCount in interface DistributionOrBuilderpublic long getBucketCounts(int index)
If `bucket_options` is given, then the sum of the values in `bucket_counts` must equal the value in `count`. If `bucket_options` is not given, no `bucket_counts` fields may be given. Bucket counts are given in order under the numbering scheme described above (the underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; the overflow bucket has number N-1). The size of `bucket_counts` must be no greater than N as defined in `bucket_options`. Any suffix of trailing zero bucket_count fields may be omitted.
repeated int64 bucket_counts = 7;getBucketCounts in interface DistributionOrBuilderpublic 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 parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Distribution.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Distribution.Builder newBuilder()
public static Distribution.Builder newBuilder(Distribution prototype)
public Distribution.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Distribution.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Distribution getDefaultInstance()
public static com.google.protobuf.Parser<Distribution> parser()
public com.google.protobuf.Parser<Distribution> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Distribution getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder