public static final class Distribution.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder> 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 | Method and Description |
|---|---|
Distribution.Builder |
addAllBucketCounts(java.lang.Iterable<? extends java.lang.Long> values)
If `bucket_options` is given, then the sum of the values in `bucket_counts`
must equal the value in `count`.
|
Distribution.Builder |
addBucketCounts(long value)
If `bucket_options` is given, then the sum of the values in `bucket_counts`
must equal the value in `count`.
|
Distribution.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution |
build() |
Distribution |
buildPartial() |
Distribution.Builder |
clear() |
Distribution.Builder |
clearBucketCounts()
If `bucket_options` is given, then the sum of the values in `bucket_counts`
must equal the value in `count`.
|
Distribution.Builder |
clearBucketOptions()
Defines the histogram bucket boundaries.
|
Distribution.Builder |
clearCount()
The number of values in the population.
|
Distribution.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Distribution.Builder |
clearMean()
The arithmetic mean of the values in the population.
|
Distribution.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Distribution.Builder |
clearRange()
If specified, contains the range of the population values.
|
Distribution.Builder |
clearSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the
population.
|
Distribution.Builder |
clone() |
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.BucketOptions.Builder |
getBucketOptionsBuilder()
Defines the histogram bucket boundaries.
|
Distribution.BucketOptionsOrBuilder |
getBucketOptionsOrBuilder()
Defines the histogram bucket boundaries.
|
long |
getCount()
The number of values in the population.
|
Distribution |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getMean()
The arithmetic mean of the values in the population.
|
Distribution.Range |
getRange()
If specified, contains the range of the population values.
|
Distribution.Range.Builder |
getRangeBuilder()
If specified, contains the range of the population values.
|
Distribution.RangeOrBuilder |
getRangeOrBuilder()
If specified, contains the range of the population values.
|
double |
getSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the
population.
|
boolean |
hasBucketOptions()
Defines the histogram bucket boundaries.
|
boolean |
hasRange()
If specified, contains the range of the population values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Distribution.Builder |
mergeBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries.
|
Distribution.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Distribution.Builder |
mergeFrom(Distribution other) |
Distribution.Builder |
mergeFrom(com.google.protobuf.Message other) |
Distribution.Builder |
mergeRange(Distribution.Range value)
If specified, contains the range of the population values.
|
Distribution.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Distribution.Builder |
setBucketCounts(int index,
long value)
If `bucket_options` is given, then the sum of the values in `bucket_counts`
must equal the value in `count`.
|
Distribution.Builder |
setBucketOptions(Distribution.BucketOptions.Builder builderForValue)
Defines the histogram bucket boundaries.
|
Distribution.Builder |
setBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries.
|
Distribution.Builder |
setCount(long value)
The number of values in the population.
|
Distribution.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution.Builder |
setMean(double value)
The arithmetic mean of the values in the population.
|
Distribution.Builder |
setRange(Distribution.Range.Builder builderForValue)
If specified, contains the range of the population values.
|
Distribution.Builder |
setRange(Distribution.Range value)
If specified, contains the range of the population values.
|
Distribution.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Distribution.Builder |
setSumOfSquaredDeviation(double value)
The sum of squared deviations from the mean of the values in the
population.
|
Distribution.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Distribution build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Distribution buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Distribution.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Distribution.Builder>public Distribution.Builder mergeFrom(Distribution other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public Distribution.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Distribution.Builder>java.io.IOExceptionpublic long getCount()
The number of values in the population. Must be non-negative.
int64 count = 1;getCount in interface DistributionOrBuilderpublic Distribution.Builder setCount(long value)
The number of values in the population. Must be non-negative.
int64 count = 1;public Distribution.Builder clearCount()
The number of values in the population. Must be non-negative.
int64 count = 1;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 DistributionOrBuilderpublic Distribution.Builder setMean(double value)
The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
double mean = 2;public Distribution.Builder clearMean()
The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
double mean = 2;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 DistributionOrBuilderpublic Distribution.Builder setSumOfSquaredDeviation(double value)
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;public Distribution.Builder clearSumOfSquaredDeviation()
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;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 DistributionOrBuilderpublic 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 DistributionOrBuilderpublic Distribution.Builder setRange(Distribution.Range value)
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;public Distribution.Builder setRange(Distribution.Range.Builder builderForValue)
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;public Distribution.Builder mergeRange(Distribution.Range value)
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;public Distribution.Builder clearRange()
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;public Distribution.Range.Builder getRangeBuilder()
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;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 DistributionOrBuilderpublic boolean hasBucketOptions()
Defines the histogram bucket boundaries.
.google.api.Distribution.BucketOptions bucket_options = 6;hasBucketOptions in interface DistributionOrBuilderpublic Distribution.BucketOptions getBucketOptions()
Defines the histogram bucket boundaries.
.google.api.Distribution.BucketOptions bucket_options = 6;getBucketOptions in interface DistributionOrBuilderpublic Distribution.Builder setBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries.
.google.api.Distribution.BucketOptions bucket_options = 6;public Distribution.Builder setBucketOptions(Distribution.BucketOptions.Builder builderForValue)
Defines the histogram bucket boundaries.
.google.api.Distribution.BucketOptions bucket_options = 6;public Distribution.Builder mergeBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries.
.google.api.Distribution.BucketOptions bucket_options = 6;public Distribution.Builder clearBucketOptions()
Defines the histogram bucket boundaries.
.google.api.Distribution.BucketOptions bucket_options = 6;public Distribution.BucketOptions.Builder getBucketOptionsBuilder()
Defines the histogram bucket boundaries.
.google.api.Distribution.BucketOptions bucket_options = 6;public Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder()
Defines the histogram bucket boundaries.
.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 Distribution.Builder setBucketCounts(int index, long value)
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;public Distribution.Builder addBucketCounts(long value)
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;public Distribution.Builder addAllBucketCounts(java.lang.Iterable<? extends java.lang.Long> values)
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;public Distribution.Builder clearBucketCounts()
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;public final Distribution.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>public final Distribution.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>