public static final class Distribution.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder> implements DistributionOrBuilder
Distribution represents a frequency distribution of double-valued sample points. It contains the size of the population of sample points plus additional optional information: - the arithmetic mean of the samples - the minimum and maximum of the samples - the sum-squared-deviation of the samples, used to compute variance - a histogram of the values of the sample pointsProtobuf type
google.api.servicecontrol.v1.Distribution| Modifier and Type | Method and Description |
|---|---|
Distribution.Builder |
addAllBucketCounts(java.lang.Iterable<? extends java.lang.Long> values)
The number of samples in each histogram bucket.
|
Distribution.Builder |
addBucketCounts(long value)
The number of samples in each histogram bucket.
|
Distribution.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution |
build() |
Distribution |
buildPartial() |
Distribution.Builder |
clear() |
Distribution.Builder |
clearBucketCounts()
The number of samples in each histogram bucket.
|
Distribution.Builder |
clearBucketOption() |
Distribution.Builder |
clearCount()
The total number of samples in the distribution.
|
Distribution.Builder |
clearExplicitBuckets()
Buckets with arbitrary user-provided width.
|
Distribution.Builder |
clearExponentialBuckets()
Buckets with exponentially growing width.
|
Distribution.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Distribution.Builder |
clearLinearBuckets()
Buckets with constant width.
|
Distribution.Builder |
clearMaximum()
The maximum of the population of values.
|
Distribution.Builder |
clearMean()
The arithmetic mean of the samples in the distribution.
|
Distribution.Builder |
clearMinimum()
The minimum of the population of values.
|
Distribution.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Distribution.Builder |
clearSumOfSquaredDeviation()
The sum of squared deviations from the mean:
Sum[i=1..count]((x_i - mean)^2)
where each x_i is a sample values.
|
Distribution.Builder |
clone() |
long |
getBucketCounts(int index)
The number of samples in each histogram bucket.
|
int |
getBucketCountsCount()
The number of samples in each histogram bucket.
|
java.util.List<java.lang.Long> |
getBucketCountsList()
The number of samples in each histogram bucket.
|
Distribution.BucketOptionCase |
getBucketOptionCase() |
long |
getCount()
The total number of samples in the distribution.
|
Distribution |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Distribution.ExplicitBuckets |
getExplicitBuckets()
Buckets with arbitrary user-provided width.
|
Distribution.ExplicitBuckets.Builder |
getExplicitBucketsBuilder()
Buckets with arbitrary user-provided width.
|
Distribution.ExplicitBucketsOrBuilder |
getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.
|
Distribution.ExponentialBuckets |
getExponentialBuckets()
Buckets with exponentially growing width.
|
Distribution.ExponentialBuckets.Builder |
getExponentialBucketsBuilder()
Buckets with exponentially growing width.
|
Distribution.ExponentialBucketsOrBuilder |
getExponentialBucketsOrBuilder()
Buckets with exponentially growing width.
|
Distribution.LinearBuckets |
getLinearBuckets()
Buckets with constant width.
|
Distribution.LinearBuckets.Builder |
getLinearBucketsBuilder()
Buckets with constant width.
|
Distribution.LinearBucketsOrBuilder |
getLinearBucketsOrBuilder()
Buckets with constant width.
|
double |
getMaximum()
The maximum of the population of values.
|
double |
getMean()
The arithmetic mean of the samples in the distribution.
|
double |
getMinimum()
The minimum of the population of values.
|
double |
getSumOfSquaredDeviation()
The sum of squared deviations from the mean:
Sum[i=1..count]((x_i - mean)^2)
where each x_i is a sample values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Distribution.Builder |
mergeExplicitBuckets(Distribution.ExplicitBuckets value)
Buckets with arbitrary user-provided width.
|
Distribution.Builder |
mergeExponentialBuckets(Distribution.ExponentialBuckets value)
Buckets with exponentially growing width.
|
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 |
mergeLinearBuckets(Distribution.LinearBuckets value)
Buckets with constant width.
|
Distribution.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Distribution.Builder |
setBucketCounts(int index,
long value)
The number of samples in each histogram bucket.
|
Distribution.Builder |
setCount(long value)
The total number of samples in the distribution.
|
Distribution.Builder |
setExplicitBuckets(Distribution.ExplicitBuckets.Builder builderForValue)
Buckets with arbitrary user-provided width.
|
Distribution.Builder |
setExplicitBuckets(Distribution.ExplicitBuckets value)
Buckets with arbitrary user-provided width.
|
Distribution.Builder |
setExponentialBuckets(Distribution.ExponentialBuckets.Builder builderForValue)
Buckets with exponentially growing width.
|
Distribution.Builder |
setExponentialBuckets(Distribution.ExponentialBuckets value)
Buckets with exponentially growing width.
|
Distribution.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution.Builder |
setLinearBuckets(Distribution.LinearBuckets.Builder builderForValue)
Buckets with constant width.
|
Distribution.Builder |
setLinearBuckets(Distribution.LinearBuckets value)
Buckets with constant width.
|
Distribution.Builder |
setMaximum(double value)
The maximum of the population of values.
|
Distribution.Builder |
setMean(double value)
The arithmetic mean of the samples in the distribution.
|
Distribution.Builder |
setMinimum(double value)
The minimum of the population of 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:
Sum[i=1..count]((x_i - mean)^2)
where each x_i is a sample values.
|
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, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, 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 Distribution.BucketOptionCase getBucketOptionCase()
getBucketOptionCase in interface DistributionOrBuilderpublic Distribution.Builder clearBucketOption()
public long getCount()
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;getCount in interface DistributionOrBuilderpublic Distribution.Builder setCount(long value)
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;public Distribution.Builder clearCount()
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;public double getMean()
The arithmetic mean of the samples in the distribution. 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 samples in the distribution. If `count` is zero then this field must be zero.
double mean = 2;public Distribution.Builder clearMean()
The arithmetic mean of the samples in the distribution. If `count` is zero then this field must be zero.
double mean = 2;public double getMinimum()
The minimum of the population of values. Ignored if `count` is zero.
double minimum = 3;getMinimum in interface DistributionOrBuilderpublic Distribution.Builder setMinimum(double value)
The minimum of the population of values. Ignored if `count` is zero.
double minimum = 3;public Distribution.Builder clearMinimum()
The minimum of the population of values. Ignored if `count` is zero.
double minimum = 3;public double getMaximum()
The maximum of the population of values. Ignored if `count` is zero.
double maximum = 4;getMaximum in interface DistributionOrBuilderpublic Distribution.Builder setMaximum(double value)
The maximum of the population of values. Ignored if `count` is zero.
double maximum = 4;public Distribution.Builder clearMaximum()
The maximum of the population of values. Ignored if `count` is zero.
double maximum = 4;public double getSumOfSquaredDeviation()
The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values. If `count` is zero then this field must be zero, otherwise validation of the request fails.
double sum_of_squared_deviation = 5;getSumOfSquaredDeviation in interface DistributionOrBuilderpublic Distribution.Builder setSumOfSquaredDeviation(double value)
The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values. If `count` is zero then this field must be zero, otherwise validation of the request fails.
double sum_of_squared_deviation = 5;public Distribution.Builder clearSumOfSquaredDeviation()
The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values. If `count` is zero then this field must be zero, otherwise validation of the request fails.
double sum_of_squared_deviation = 5;public java.util.List<java.lang.Long> getBucketCountsList()
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;getBucketCountsList in interface DistributionOrBuilderpublic int getBucketCountsCount()
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;getBucketCountsCount in interface DistributionOrBuilderpublic long getBucketCounts(int index)
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;getBucketCounts in interface DistributionOrBuilderpublic Distribution.Builder setBucketCounts(int index, long value)
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;public Distribution.Builder addBucketCounts(long value)
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;public Distribution.Builder addAllBucketCounts(java.lang.Iterable<? extends java.lang.Long> values)
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;public Distribution.Builder clearBucketCounts()
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;public Distribution.LinearBuckets getLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;getLinearBuckets in interface DistributionOrBuilderpublic Distribution.Builder setLinearBuckets(Distribution.LinearBuckets value)
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;public Distribution.Builder setLinearBuckets(Distribution.LinearBuckets.Builder builderForValue)
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;public Distribution.Builder mergeLinearBuckets(Distribution.LinearBuckets value)
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;public Distribution.Builder clearLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;public Distribution.LinearBuckets.Builder getLinearBucketsBuilder()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;public Distribution.LinearBucketsOrBuilder getLinearBucketsOrBuilder()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;getLinearBucketsOrBuilder in interface DistributionOrBuilderpublic Distribution.ExponentialBuckets getExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;getExponentialBuckets in interface DistributionOrBuilderpublic Distribution.Builder setExponentialBuckets(Distribution.ExponentialBuckets value)
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;public Distribution.Builder setExponentialBuckets(Distribution.ExponentialBuckets.Builder builderForValue)
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;public Distribution.Builder mergeExponentialBuckets(Distribution.ExponentialBuckets value)
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;public Distribution.Builder clearExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;public Distribution.ExponentialBuckets.Builder getExponentialBucketsBuilder()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;public Distribution.ExponentialBucketsOrBuilder getExponentialBucketsOrBuilder()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;getExponentialBucketsOrBuilder in interface DistributionOrBuilderpublic Distribution.ExplicitBuckets getExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;getExplicitBuckets in interface DistributionOrBuilderpublic Distribution.Builder setExplicitBuckets(Distribution.ExplicitBuckets value)
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;public Distribution.Builder setExplicitBuckets(Distribution.ExplicitBuckets.Builder builderForValue)
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;public Distribution.Builder mergeExplicitBuckets(Distribution.ExplicitBuckets value)
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;public Distribution.Builder clearExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;public Distribution.ExplicitBuckets.Builder getExplicitBucketsBuilder()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;public Distribution.ExplicitBucketsOrBuilder getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;getExplicitBucketsOrBuilder in interface DistributionOrBuilderpublic 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>