public final class DistributionValue extends com.google.protobuf.GeneratedMessageV3 implements DistributionValueOrBuilder
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.Protobuf type
opencensus.proto.metrics.v1.DistributionValue| Modifier and Type | Class and Description |
|---|---|
static class |
DistributionValue.Bucket
Protobuf type
opencensus.proto.metrics.v1.DistributionValue.Bucket |
static class |
DistributionValue.BucketOptions
A Distribution may optionally contain a histogram of the values in the
population.
|
static interface |
DistributionValue.BucketOptionsOrBuilder |
static interface |
DistributionValue.BucketOrBuilder |
static class |
DistributionValue.Builder
Distribution contains summary statistics for a population of values.
|
static class |
DistributionValue.Exemplar
Exemplars are example points that may be used to annotate aggregated
Distribution values.
|
static interface |
DistributionValue.ExemplarOrBuilder |
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_OPTIONS_FIELD_NUMBER |
static int |
BUCKETS_FIELD_NUMBER |
static int |
COUNT_FIELD_NUMBER |
static int |
SUM_FIELD_NUMBER |
static int |
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
DistributionValue.BucketOptions |
getBucketOptions()
Don't change bucket boundaries within a TimeSeries if your backend doesn't
support this.
|
DistributionValue.BucketOptionsOrBuilder |
getBucketOptionsOrBuilder()
Don't change bucket boundaries within a TimeSeries if your backend doesn't
support this.
|
DistributionValue.Bucket |
getBuckets(int index)
If the distribution does not have a histogram, then omit this field.
|
int |
getBucketsCount()
If the distribution does not have a histogram, then omit this field.
|
List<DistributionValue.Bucket> |
getBucketsList()
If the distribution does not have a histogram, then omit this field.
|
DistributionValue.BucketOrBuilder |
getBucketsOrBuilder(int index)
If the distribution does not have a histogram, then omit this field.
|
List<? extends DistributionValue.BucketOrBuilder> |
getBucketsOrBuilderList()
If the distribution does not have a histogram, then omit this field.
|
long |
getCount()
The number of values in the population.
|
static DistributionValue |
getDefaultInstance() |
DistributionValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<DistributionValue> |
getParserForType() |
int |
getSerializedSize() |
double |
getSum()
The sum of the values in the population.
|
double |
getSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the
population.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBucketOptions()
Don't change bucket boundaries within a TimeSeries if your backend doesn't
support this.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DistributionValue.Builder |
newBuilder() |
static DistributionValue.Builder |
newBuilder(DistributionValue prototype) |
DistributionValue.Builder |
newBuilderForType() |
protected DistributionValue.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static DistributionValue |
parseDelimitedFrom(InputStream input) |
static DistributionValue |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistributionValue |
parseFrom(byte[] data) |
static DistributionValue |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistributionValue |
parseFrom(ByteBuffer data) |
static DistributionValue |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistributionValue |
parseFrom(com.google.protobuf.ByteString data) |
static DistributionValue |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistributionValue |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DistributionValue |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistributionValue |
parseFrom(InputStream input) |
static DistributionValue |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DistributionValue> |
parser() |
DistributionValue.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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int COUNT_FIELD_NUMBER
public static final int SUM_FIELD_NUMBER
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
public static final int BUCKET_OPTIONS_FIELD_NUMBER
public static final int 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 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 DistributionValueOrBuilderpublic double getSum()
The sum of the values in the population. If count is zero then this field must be zero.
double sum = 2;getSum in interface DistributionValueOrBuilderpublic 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 DistributionValueOrBuilderpublic boolean hasBucketOptions()
Don't change bucket boundaries within a TimeSeries if your backend doesn't support this. TODO(issue #152): consider not required to send bucket options for optimization.
.opencensus.proto.metrics.v1.DistributionValue.BucketOptions bucket_options = 4;hasBucketOptions in interface DistributionValueOrBuilderpublic DistributionValue.BucketOptions getBucketOptions()
Don't change bucket boundaries within a TimeSeries if your backend doesn't support this. TODO(issue #152): consider not required to send bucket options for optimization.
.opencensus.proto.metrics.v1.DistributionValue.BucketOptions bucket_options = 4;getBucketOptions in interface DistributionValueOrBuilderpublic DistributionValue.BucketOptionsOrBuilder getBucketOptionsOrBuilder()
Don't change bucket boundaries within a TimeSeries if your backend doesn't support this. TODO(issue #152): consider not required to send bucket options for optimization.
.opencensus.proto.metrics.v1.DistributionValue.BucketOptions bucket_options = 4;getBucketOptionsOrBuilder in interface DistributionValueOrBuilderpublic List<DistributionValue.Bucket> getBucketsList()
If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in the Bucket counts must equal the value in the count field of the distribution.
repeated .opencensus.proto.metrics.v1.DistributionValue.Bucket buckets = 5;getBucketsList in interface DistributionValueOrBuilderpublic List<? extends DistributionValue.BucketOrBuilder> getBucketsOrBuilderList()
If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in the Bucket counts must equal the value in the count field of the distribution.
repeated .opencensus.proto.metrics.v1.DistributionValue.Bucket buckets = 5;getBucketsOrBuilderList in interface DistributionValueOrBuilderpublic int getBucketsCount()
If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in the Bucket counts must equal the value in the count field of the distribution.
repeated .opencensus.proto.metrics.v1.DistributionValue.Bucket buckets = 5;getBucketsCount in interface DistributionValueOrBuilderpublic DistributionValue.Bucket getBuckets(int index)
If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in the Bucket counts must equal the value in the count field of the distribution.
repeated .opencensus.proto.metrics.v1.DistributionValue.Bucket buckets = 5;getBuckets in interface DistributionValueOrBuilderpublic DistributionValue.BucketOrBuilder getBucketsOrBuilder(int index)
If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in the Bucket counts must equal the value in the count field of the distribution.
repeated .opencensus.proto.metrics.v1.DistributionValue.Bucket buckets = 5;getBucketsOrBuilder in interface DistributionValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(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 DistributionValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistributionValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistributionValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistributionValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistributionValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistributionValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistributionValue parseFrom(InputStream input) throws IOException
IOExceptionpublic static DistributionValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DistributionValue parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DistributionValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DistributionValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DistributionValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DistributionValue.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DistributionValue.Builder newBuilder()
public static DistributionValue.Builder newBuilder(DistributionValue prototype)
public DistributionValue.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DistributionValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DistributionValue getDefaultInstance()
public static com.google.protobuf.Parser<DistributionValue> parser()
public com.google.protobuf.Parser<DistributionValue> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DistributionValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder