Interface DistributionOrBuilder (1.8.0)

public interface DistributionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBucketCounts(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
long

The bucketCounts at the given index.

getBucketCountsCount()

public abstract 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
TypeDescription
int

The count of bucketCounts.

getBucketCountsList()

public abstract 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
TypeDescription
List<Long>

A list containing the bucketCounts.

getBucketOptionCase()

public abstract Distribution.BucketOptionCase getBucketOptionCase()
Returns
TypeDescription
Distribution.BucketOptionCase

getCount()

public abstract long getCount()

The total number of samples in the distribution. Must be >= 0.

int64 count = 1;

Returns
TypeDescription
long

The count.

getExemplars(int index)

public abstract Distribution.Exemplar getExemplars(int index)

Example points. Must be in increasing order of value field.

repeated .google.api.Distribution.Exemplar exemplars = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.Distribution.Exemplar

getExemplarsCount()

public abstract int getExemplarsCount()

Example points. Must be in increasing order of value field.

repeated .google.api.Distribution.Exemplar exemplars = 10;

Returns
TypeDescription
int

getExemplarsList()

public abstract List<Distribution.Exemplar> getExemplarsList()

Example points. Must be in increasing order of value field.

repeated .google.api.Distribution.Exemplar exemplars = 10;

Returns
TypeDescription
List<com.google.api.Distribution.Exemplar>

getExemplarsOrBuilder(int index)

public abstract Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index)

Example points. Must be in increasing order of value field.

repeated .google.api.Distribution.Exemplar exemplars = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.Distribution.ExemplarOrBuilder

getExemplarsOrBuilderList()

public abstract List<? extends Distribution.ExemplarOrBuilder> getExemplarsOrBuilderList()

Example points. Must be in increasing order of value field.

repeated .google.api.Distribution.Exemplar exemplars = 10;

Returns
TypeDescription
List<? extends com.google.api.Distribution.ExemplarOrBuilder>

getExplicitBuckets()

public abstract Distribution.ExplicitBuckets getExplicitBuckets()

Buckets with arbitrary user-provided width.

.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;

Returns
TypeDescription
Distribution.ExplicitBuckets

The explicitBuckets.

getExplicitBucketsOrBuilder()

public abstract Distribution.ExplicitBucketsOrBuilder getExplicitBucketsOrBuilder()

Buckets with arbitrary user-provided width.

.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;

Returns
TypeDescription
Distribution.ExplicitBucketsOrBuilder

getExponentialBuckets()

public abstract Distribution.ExponentialBuckets getExponentialBuckets()

Buckets with exponentially growing width.

.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;

Returns
TypeDescription
Distribution.ExponentialBuckets

The exponentialBuckets.

getExponentialBucketsOrBuilder()

public abstract Distribution.ExponentialBucketsOrBuilder getExponentialBucketsOrBuilder()

Buckets with exponentially growing width.

.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;

Returns
TypeDescription
Distribution.ExponentialBucketsOrBuilder

getLinearBuckets()

public abstract Distribution.LinearBuckets getLinearBuckets()

Buckets with constant width.

.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;

Returns
TypeDescription
Distribution.LinearBuckets

The linearBuckets.

getLinearBucketsOrBuilder()

public abstract Distribution.LinearBucketsOrBuilder getLinearBucketsOrBuilder()

Buckets with constant width.

.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;

Returns
TypeDescription
Distribution.LinearBucketsOrBuilder

getMaximum()

public abstract double getMaximum()

The maximum of the population of values. Ignored if count is zero.

double maximum = 4;

Returns
TypeDescription
double

The maximum.

getMean()

public abstract 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
TypeDescription
double

The mean.

getMinimum()

public abstract double getMinimum()

The minimum of the population of values. Ignored if count is zero.

double minimum = 3;

Returns
TypeDescription
double

The minimum.

getSumOfSquaredDeviation()

public abstract double getSumOfSquaredDeviation()

The sum of squared deviations from the mean: Sumi=1..count^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
TypeDescription
double

The sumOfSquaredDeviation.

hasExplicitBuckets()

public abstract boolean hasExplicitBuckets()

Buckets with arbitrary user-provided width.

.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;

Returns
TypeDescription
boolean

Whether the explicitBuckets field is set.

hasExponentialBuckets()

public abstract boolean hasExponentialBuckets()

Buckets with exponentially growing width.

.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;

Returns
TypeDescription
boolean

Whether the exponentialBuckets field is set.

hasLinearBuckets()

public abstract boolean hasLinearBuckets()

Buckets with constant width.

.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;

Returns
TypeDescription
boolean

Whether the linearBuckets field is set.