Package com.google.api.servicecontrol.v1
Interface DistributionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Distribution,Distribution.Builder
public interface DistributionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetBucketCounts(int index)The number of samples in each histogram bucket.intgetBucketCountsCount()The number of samples in each histogram bucket.List<Long>getBucketCountsList()The number of samples in each histogram bucket.Distribution.BucketOptionCasegetBucketOptionCase()longgetCount()The total number of samples in the distribution.com.google.api.Distribution.ExemplargetExemplars(int index)Example points.intgetExemplarsCount()Example points.List<com.google.api.Distribution.Exemplar>getExemplarsList()Example points.com.google.api.Distribution.ExemplarOrBuildergetExemplarsOrBuilder(int index)Example points.List<? extends com.google.api.Distribution.ExemplarOrBuilder>getExemplarsOrBuilderList()Example points.Distribution.ExplicitBucketsgetExplicitBuckets()Buckets with arbitrary user-provided width.Distribution.ExplicitBucketsOrBuildergetExplicitBucketsOrBuilder()Buckets with arbitrary user-provided width.Distribution.ExponentialBucketsgetExponentialBuckets()Buckets with exponentially growing width.Distribution.ExponentialBucketsOrBuildergetExponentialBucketsOrBuilder()Buckets with exponentially growing width.Distribution.LinearBucketsgetLinearBuckets()Buckets with constant width.Distribution.LinearBucketsOrBuildergetLinearBucketsOrBuilder()Buckets with constant width.doublegetMaximum()The maximum of the population of values.doublegetMean()The arithmetic mean of the samples in the distribution.doublegetMinimum()The minimum of the population of values.doublegetSumOfSquaredDeviation()The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values.booleanhasExplicitBuckets()Buckets with arbitrary user-provided width.booleanhasExponentialBuckets()Buckets with exponentially growing width.booleanhasLinearBuckets()Buckets with constant width.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getCount
long getCount()
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;- Returns:
- The count.
-
getMean
double getMean()
The arithmetic mean of the samples in the distribution. If `count` is zero then this field must be zero.
double mean = 2;- Returns:
- The mean.
-
getMinimum
double getMinimum()
The minimum of the population of values. Ignored if `count` is zero.
double minimum = 3;- Returns:
- The minimum.
-
getMaximum
double getMaximum()
The maximum of the population of values. Ignored if `count` is zero.
double maximum = 4;- Returns:
- The maximum.
-
getSumOfSquaredDeviation
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;- Returns:
- The sumOfSquaredDeviation.
-
getBucketCountsList
List<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;- Returns:
- A list containing the bucketCounts.
-
getBucketCountsCount
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;- Returns:
- The count of bucketCounts.
-
getBucketCounts
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;- Parameters:
index- The index of the element to return.- Returns:
- The bucketCounts at the given index.
-
hasLinearBuckets
boolean hasLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;- Returns:
- Whether the linearBuckets field is set.
-
getLinearBuckets
Distribution.LinearBuckets getLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;- Returns:
- The linearBuckets.
-
getLinearBucketsOrBuilder
Distribution.LinearBucketsOrBuilder getLinearBucketsOrBuilder()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;
-
hasExponentialBuckets
boolean hasExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;- Returns:
- Whether the exponentialBuckets field is set.
-
getExponentialBuckets
Distribution.ExponentialBuckets getExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;- Returns:
- The exponentialBuckets.
-
getExponentialBucketsOrBuilder
Distribution.ExponentialBucketsOrBuilder getExponentialBucketsOrBuilder()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;
-
hasExplicitBuckets
boolean hasExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;- Returns:
- Whether the explicitBuckets field is set.
-
getExplicitBuckets
Distribution.ExplicitBuckets getExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;- Returns:
- The explicitBuckets.
-
getExplicitBucketsOrBuilder
Distribution.ExplicitBucketsOrBuilder getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;
-
getExemplarsList
List<com.google.api.Distribution.Exemplar> getExemplarsList()
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getExemplars
com.google.api.Distribution.Exemplar getExemplars(int index)
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getExemplarsCount
int getExemplarsCount()
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getExemplarsOrBuilderList
List<? extends com.google.api.Distribution.ExemplarOrBuilder> getExemplarsOrBuilderList()
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getExemplarsOrBuilder
com.google.api.Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index)
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getBucketOptionCase
Distribution.BucketOptionCase getBucketOptionCase()
-
-