Package io.opencensus.proto.metrics.v1
Class DistributionValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opencensus.proto.metrics.v1.DistributionValue
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DistributionValueOrBuilder,Serializable
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 typeopencensus.proto.metrics.v1.DistributionValue- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDistributionValue.BucketProtobuf typeopencensus.proto.metrics.v1.DistributionValue.Bucketstatic classDistributionValue.BucketOptionsA Distribution may optionally contain a histogram of the values in the population.static interfaceDistributionValue.BucketOptionsOrBuilderstatic interfaceDistributionValue.BucketOrBuilderstatic classDistributionValue.BuilderDistribution contains summary statistics for a population of values.static classDistributionValue.ExemplarExemplars are example points that may be used to annotate aggregated Distribution values.static interfaceDistributionValue.ExemplarOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBUCKET_OPTIONS_FIELD_NUMBERstatic intBUCKETS_FIELD_NUMBERstatic intCOUNT_FIELD_NUMBERstatic intSUM_FIELD_NUMBERstatic intSUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DistributionValue.BucketOptionsgetBucketOptions()Don't change bucket boundaries within a TimeSeries if your backend doesn't support this.DistributionValue.BucketOptionsOrBuildergetBucketOptionsOrBuilder()Don't change bucket boundaries within a TimeSeries if your backend doesn't support this.DistributionValue.BucketgetBuckets(int index)If the distribution does not have a histogram, then omit this field.intgetBucketsCount()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.BucketOrBuildergetBucketsOrBuilder(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.longgetCount()The number of values in the population.static DistributionValuegetDefaultInstance()DistributionValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<DistributionValue>getParserForType()intgetSerializedSize()doublegetSum()The sum of the values in the population.doublegetSumOfSquaredDeviation()The sum of squared deviations from the mean of the values in the population.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBucketOptions()Don't change bucket boundaries within a TimeSeries if your backend doesn't support this.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DistributionValue.BuildernewBuilder()static DistributionValue.BuildernewBuilder(DistributionValue prototype)DistributionValue.BuildernewBuilderForType()protected DistributionValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DistributionValueparseDelimitedFrom(InputStream input)static DistributionValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DistributionValueparseFrom(byte[] data)static DistributionValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DistributionValueparseFrom(com.google.protobuf.ByteString data)static DistributionValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DistributionValueparseFrom(com.google.protobuf.CodedInputStream input)static DistributionValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DistributionValueparseFrom(InputStream input)static DistributionValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DistributionValueparseFrom(ByteBuffer data)static DistributionValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DistributionValue>parser()DistributionValue.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, 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
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUM_FIELD_NUMBER
public static final int SUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUCKET_OPTIONS_FIELD_NUMBER
public static final int BUCKET_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUCKETS_FIELD_NUMBER
public static final int BUCKETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCount
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;- Specified by:
getCountin interfaceDistributionValueOrBuilder- Returns:
- The count.
-
getSum
public double getSum()
The sum of the values in the population. If count is zero then this field must be zero.
double sum = 2;- Specified by:
getSumin interfaceDistributionValueOrBuilder- Returns:
- The sum.
-
getSumOfSquaredDeviation
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;- Specified by:
getSumOfSquaredDeviationin interfaceDistributionValueOrBuilder- Returns:
- The sumOfSquaredDeviation.
-
hasBucketOptions
public 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;- Specified by:
hasBucketOptionsin interfaceDistributionValueOrBuilder- Returns:
- Whether the bucketOptions field is set.
-
getBucketOptions
public 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;- Specified by:
getBucketOptionsin interfaceDistributionValueOrBuilder- Returns:
- The bucketOptions.
-
getBucketOptionsOrBuilder
public 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;- Specified by:
getBucketOptionsOrBuilderin interfaceDistributionValueOrBuilder
-
getBucketsList
public 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;- Specified by:
getBucketsListin interfaceDistributionValueOrBuilder
-
getBucketsOrBuilderList
public 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;- Specified by:
getBucketsOrBuilderListin interfaceDistributionValueOrBuilder
-
getBucketsCount
public 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;- Specified by:
getBucketsCountin interfaceDistributionValueOrBuilder
-
getBuckets
public 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;- Specified by:
getBucketsin interfaceDistributionValueOrBuilder
-
getBucketsOrBuilder
public 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;- Specified by:
getBucketsOrBuilderin interfaceDistributionValueOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DistributionValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistributionValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistributionValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistributionValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistributionValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistributionValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistributionValue parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DistributionValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DistributionValue parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DistributionValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DistributionValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DistributionValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DistributionValue.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DistributionValue.Builder newBuilder()
-
newBuilder
public static DistributionValue.Builder newBuilder(DistributionValue prototype)
-
toBuilder
public DistributionValue.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DistributionValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DistributionValue getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DistributionValue> parser()
-
getParserForType
public com.google.protobuf.Parser<DistributionValue> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DistributionValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-