public final class Distribution extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Distribution.BucketOptionCase |
static class |
Distribution.Builder
Distribution represents a frequency distribution of double-valued sample
points.
|
static class |
Distribution.ExplicitBuckets
Describing buckets with arbitrary user-provided width.
|
static interface |
Distribution.ExplicitBucketsOrBuilder |
static class |
Distribution.ExponentialBuckets
Describing buckets with exponentially growing width.
|
static interface |
Distribution.ExponentialBucketsOrBuilder |
static class |
Distribution.LinearBuckets
Describing buckets with constant width.
|
static interface |
Distribution.LinearBucketsOrBuilder |
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_COUNTS_FIELD_NUMBER |
static int |
COUNT_FIELD_NUMBER |
static int |
EXPLICIT_BUCKETS_FIELD_NUMBER |
static int |
EXPONENTIAL_BUCKETS_FIELD_NUMBER |
static int |
LINEAR_BUCKETS_FIELD_NUMBER |
static int |
MAXIMUM_FIELD_NUMBER |
static int |
MEAN_FIELD_NUMBER |
static int |
MINIMUM_FIELD_NUMBER |
static int |
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
static Distribution |
getDefaultInstance() |
Distribution |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Distribution.ExplicitBuckets |
getExplicitBuckets()
Buckets with arbitrary user-provided width.
|
Distribution.ExplicitBucketsOrBuilder |
getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.
|
Distribution.ExponentialBuckets |
getExponentialBuckets()
Buckets with exponentially growing width.
|
Distribution.ExponentialBucketsOrBuilder |
getExponentialBucketsOrBuilder()
Buckets with exponentially growing width.
|
Distribution.LinearBuckets |
getLinearBuckets()
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.
|
com.google.protobuf.Parser<Distribution> |
getParserForType() |
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Distribution.Builder |
newBuilder() |
static Distribution.Builder |
newBuilder(Distribution prototype) |
Distribution.Builder |
newBuilderForType() |
protected Distribution.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Distribution |
parseDelimitedFrom(java.io.InputStream input) |
static Distribution |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(byte[] data) |
static Distribution |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(com.google.protobuf.ByteString data) |
static Distribution |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Distribution |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution |
parseFrom(java.io.InputStream input) |
static Distribution |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Distribution> |
parser() |
Distribution.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int COUNT_FIELD_NUMBER
public static final int MEAN_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
public static final int BUCKET_COUNTS_FIELD_NUMBER
public static final int LINEAR_BUCKETS_FIELD_NUMBER
public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER
public static final int EXPLICIT_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 Distribution.BucketOptionCase getBucketOptionCase()
getBucketOptionCase in interface DistributionOrBuilderpublic long getCount()
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;getCount in interface DistributionOrBuilderpublic 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 double getMinimum()
The minimum of the population of values. Ignored if `count` is zero.
double minimum = 3;getMinimum in interface DistributionOrBuilderpublic double getMaximum()
The maximum of the population of values. Ignored if `count` is zero.
double maximum = 4;getMaximum in interface DistributionOrBuilderpublic 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 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.LinearBuckets getLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;getLinearBuckets in interface DistributionOrBuilderpublic 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.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.ExplicitBucketsOrBuilder getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;getExplicitBucketsOrBuilder in interface DistributionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.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 Distribution parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Distribution.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Distribution.Builder newBuilder()
public static Distribution.Builder newBuilder(Distribution prototype)
public Distribution.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Distribution.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Distribution getDefaultInstance()
public static com.google.protobuf.Parser<Distribution> parser()
public com.google.protobuf.Parser<Distribution> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Distribution getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder