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
@Generated
public interface DistributionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlonggetBucketCounts(int index) The number of samples in each histogram bucket.intThe number of samples in each histogram bucket.The number of samples in each histogram bucket.longgetCount()The total number of samples in the distribution.getExemplars(int index) Example points.intExample points.Example points.getExemplarsOrBuilder(int index) Example points.List<? extends Distribution.ExemplarOrBuilder>Example points.Buckets with arbitrary user-provided width.Buckets with arbitrary user-provided width.Buckets with exponentially growing width.Buckets with exponentially growing width.Buckets with constant width.Buckets with constant width.doubleThe maximum of the population of values.doublegetMean()The arithmetic mean of the samples in the distribution.doubleThe minimum of the population of values.doubleThe sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values.booleanBuckets with arbitrary user-provided width.booleanBuckets with exponentially growing width.booleanBuckets with constant width.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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<Distribution.Exemplar> getExemplarsList()Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10; -
getExemplars
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 Distribution.ExemplarOrBuilder> getExemplarsOrBuilderList()Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10; -
getExemplarsOrBuilder
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10; -
getBucketOptionCase
Distribution.BucketOptionCase getBucketOptionCase()
-