public final class Distribution extends GeneratedMessageV3 implements DistributionOrBuilder
`Distribution` contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of 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 formulas for buckets of fixed or exponentially increasing widths. 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
`BucketOptions` describes the bucket boundaries used to create a histogram
for the distribution.
|
static interface |
Distribution.BucketOptionsOrBuilder |
static class |
Distribution.Builder
`Distribution` contains summary statistics for a population of values.
|
static class |
Distribution.Exemplar
Exemplars are example points that may be used to annotate aggregated
distribution values.
|
static interface |
Distribution.ExemplarOrBuilder |
static class |
Distribution.Range
The range of the population values.
|
static interface |
Distribution.RangeOrBuilder |
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 |
BUCKET_COUNTS_FIELD_NUMBER |
static int |
BUCKET_OPTIONS_FIELD_NUMBER |
static int |
COUNT_FIELD_NUMBER |
static int |
EXEMPLARS_FIELD_NUMBER |
static int |
MEAN_FIELD_NUMBER |
static int |
RANGE_FIELD_NUMBER |
static int |
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getBucketCounts(int index)
The number of values in each bucket of the histogram, as described in
`bucket_options`.
|
int |
getBucketCountsCount()
The number of values in each bucket of the histogram, as described in
`bucket_options`.
|
java.util.List<java.lang.Long> |
getBucketCountsList()
The number of values in each bucket of the histogram, as described in
`bucket_options`.
|
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 Descriptors.Descriptor |
getDescriptor() |
Distribution.Exemplar |
getExemplars(int index)
Must be in increasing order of `value` field.
|
int |
getExemplarsCount()
Must be in increasing order of `value` field.
|
java.util.List<Distribution.Exemplar> |
getExemplarsList()
Must be in increasing order of `value` field.
|
Distribution.ExemplarOrBuilder |
getExemplarsOrBuilder(int index)
Must be in increasing order of `value` field.
|
java.util.List<? extends Distribution.ExemplarOrBuilder> |
getExemplarsOrBuilderList()
Must be in increasing order of `value` field.
|
double |
getMean()
The arithmetic mean of the values in the population.
|
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.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasBucketOptions()
Defines the histogram bucket boundaries.
|
int |
hashCode() |
boolean |
hasRange()
If specified, contains the range of the population values.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Distribution.Builder |
newBuilder() |
static Distribution.Builder |
newBuilder(Distribution prototype) |
Distribution.Builder |
newBuilderForType() |
protected Distribution.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Distribution |
parseDelimitedFrom(java.io.InputStream input) |
static Distribution |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(byte[] data) |
static Distribution |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(java.nio.ByteBuffer data) |
static Distribution |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(ByteString data) |
static Distribution |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(CodedInputStream input) |
static Distribution |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(java.io.InputStream input) |
static Distribution |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Distribution> |
parser() |
Distribution.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 static final int EXEMPLARS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public long getCount()
The number of values in the population. Must be non-negative. This value must equal the sum of the values in `bucket_counts` if a histogram is provided.
int64 count = 1;
getCount
in interface DistributionOrBuilder
public double getMean()
The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
double mean = 2;
getMean
in interface DistributionOrBuilder
public 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.
double sum_of_squared_deviation = 3;
getSumOfSquaredDeviation
in interface DistributionOrBuilder
public boolean hasRange()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
hasRange
in interface DistributionOrBuilder
public Distribution.Range getRange()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
getRange
in interface DistributionOrBuilder
public Distribution.RangeOrBuilder getRangeOrBuilder()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
getRangeOrBuilder
in interface DistributionOrBuilder
public boolean hasBucketOptions()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
hasBucketOptions
in interface DistributionOrBuilder
public Distribution.BucketOptions getBucketOptions()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
getBucketOptions
in interface DistributionOrBuilder
public Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
getBucketOptionsOrBuilder
in interface DistributionOrBuilder
public java.util.List<java.lang.Long> getBucketCountsList()
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
getBucketCountsList
in interface DistributionOrBuilder
public int getBucketCountsCount()
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
getBucketCountsCount
in interface DistributionOrBuilder
public long getBucketCounts(int index)
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
getBucketCounts
in interface DistributionOrBuilder
public java.util.List<Distribution.Exemplar> getExemplarsList()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
getExemplarsList
in interface DistributionOrBuilder
public java.util.List<? extends Distribution.ExemplarOrBuilder> getExemplarsOrBuilderList()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
getExemplarsOrBuilderList
in interface DistributionOrBuilder
public int getExemplarsCount()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
getExemplarsCount
in interface DistributionOrBuilder
public Distribution.Exemplar getExemplars(int index)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
getExemplars
in interface DistributionOrBuilder
public Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
getExemplarsOrBuilder
in interface DistributionOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Distribution parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Distribution parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Distribution parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Distribution parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Distribution parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Distribution parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Distribution parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Distribution parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Distribution parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Distribution parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Distribution parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Distribution parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Distribution.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Distribution.Builder newBuilder()
public static Distribution.Builder newBuilder(Distribution prototype)
public Distribution.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Distribution.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Distribution getDefaultInstance()
public static Parser<Distribution> parser()
public Parser<Distribution> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Distribution getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder