Class Distribution.Builder (1.24.0)

public static final class Distribution.Builder extends 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 points

Protobuf type google.api.servicecontrol.v1.Distribution

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBucketCounts(Iterable<? extends Long> values)

public Distribution.Builder addAllBucketCounts(Iterable<? extends 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;

Parameter
NameDescription
valuesIterable<? extends java.lang.Long>

The bucketCounts to add.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

addAllExemplars(Iterable<? extends Distribution.Exemplar> values)

public Distribution.Builder addAllExemplars(Iterable<? extends Distribution.Exemplar> values)

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.api.Distribution.Exemplar>
Returns
TypeDescription
Distribution.Builder

addBucketCounts(long value)

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;

Parameter
NameDescription
valuelong

The bucketCounts to add.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

addExemplars(Distribution.Exemplar value)

public Distribution.Builder addExemplars(Distribution.Exemplar value)

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

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

Parameter
NameDescription
valuecom.google.api.Distribution.Exemplar
Returns
TypeDescription
Distribution.Builder

addExemplars(Distribution.Exemplar.Builder builderForValue)

public Distribution.Builder addExemplars(Distribution.Exemplar.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValuecom.google.api.Distribution.Exemplar.Builder
Returns
TypeDescription
Distribution.Builder

addExemplars(int index, Distribution.Exemplar value)

public Distribution.Builder addExemplars(int index, Distribution.Exemplar value)

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

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

Parameters
NameDescription
indexint
valuecom.google.api.Distribution.Exemplar
Returns
TypeDescription
Distribution.Builder

addExemplars(int index, Distribution.Exemplar.Builder builderForValue)

public Distribution.Builder addExemplars(int index, Distribution.Exemplar.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValuecom.google.api.Distribution.Exemplar.Builder
Returns
TypeDescription
Distribution.Builder

addExemplarsBuilder()

public Distribution.Exemplar.Builder addExemplarsBuilder()

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

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

Returns
TypeDescription
com.google.api.Distribution.Exemplar.Builder

addExemplarsBuilder(int index)

public Distribution.Exemplar.Builder addExemplarsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Distribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Distribution.Builder
Overrides

build()

public Distribution build()
Returns
TypeDescription
Distribution

buildPartial()

public Distribution buildPartial()
Returns
TypeDescription
Distribution

clear()

public Distribution.Builder clear()
Returns
TypeDescription
Distribution.Builder
Overrides

clearBucketCounts()

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;

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearBucketOption()

public Distribution.Builder clearBucketOption()
Returns
TypeDescription
Distribution.Builder

clearCount()

public Distribution.Builder clearCount()

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

int64 count = 1;

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearExemplars()

public Distribution.Builder clearExemplars()

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

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

Returns
TypeDescription
Distribution.Builder

clearExplicitBuckets()

public Distribution.Builder clearExplicitBuckets()

Buckets with arbitrary user-provided width.

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

Returns
TypeDescription
Distribution.Builder

clearExponentialBuckets()

public Distribution.Builder clearExponentialBuckets()

Buckets with exponentially growing width.

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

Returns
TypeDescription
Distribution.Builder

clearField(Descriptors.FieldDescriptor field)

public Distribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Distribution.Builder
Overrides

clearLinearBuckets()

public Distribution.Builder clearLinearBuckets()

Buckets with constant width.

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

Returns
TypeDescription
Distribution.Builder

clearMaximum()

public Distribution.Builder clearMaximum()

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

double maximum = 4;

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearMean()

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;

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearMinimum()

public Distribution.Builder clearMinimum()

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

double minimum = 3;

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Distribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Distribution.Builder
Overrides

clearSumOfSquaredDeviation()

public Distribution.Builder clearSumOfSquaredDeviation()

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
Distribution.Builder

This builder for chaining.

clone()

public Distribution.Builder clone()
Returns
TypeDescription
Distribution.Builder
Overrides

getBucketCounts(int index)

public 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 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 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 Distribution.BucketOptionCase getBucketOptionCase()
Returns
TypeDescription
Distribution.BucketOptionCase

getCount()

public long getCount()

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

int64 count = 1;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public Distribution getDefaultInstanceForType()
Returns
TypeDescription
Distribution

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExemplars(int index)

public 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

getExemplarsBuilder(int index)

public Distribution.Exemplar.Builder getExemplarsBuilder(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.Builder

getExemplarsBuilderList()

public List<Distribution.Exemplar.Builder> getExemplarsBuilderList()

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.Builder>

getExemplarsCount()

public int getExemplarsCount()

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

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

Returns
TypeDescription
int

getExemplarsList()

public 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 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 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 Distribution.ExplicitBuckets getExplicitBuckets()

Buckets with arbitrary user-provided width.

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

Returns
TypeDescription
Distribution.ExplicitBuckets

The explicitBuckets.

getExplicitBucketsBuilder()

public Distribution.ExplicitBuckets.Builder getExplicitBucketsBuilder()

Buckets with arbitrary user-provided width.

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

Returns
TypeDescription
Distribution.ExplicitBuckets.Builder

getExplicitBucketsOrBuilder()

public Distribution.ExplicitBucketsOrBuilder getExplicitBucketsOrBuilder()

Buckets with arbitrary user-provided width.

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

Returns
TypeDescription
Distribution.ExplicitBucketsOrBuilder

getExponentialBuckets()

public Distribution.ExponentialBuckets getExponentialBuckets()

Buckets with exponentially growing width.

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

Returns
TypeDescription
Distribution.ExponentialBuckets

The exponentialBuckets.

getExponentialBucketsBuilder()

public Distribution.ExponentialBuckets.Builder getExponentialBucketsBuilder()

Buckets with exponentially growing width.

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

Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

getExponentialBucketsOrBuilder()

public Distribution.ExponentialBucketsOrBuilder getExponentialBucketsOrBuilder()

Buckets with exponentially growing width.

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

Returns
TypeDescription
Distribution.ExponentialBucketsOrBuilder

getLinearBuckets()

public Distribution.LinearBuckets getLinearBuckets()

Buckets with constant width.

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

Returns
TypeDescription
Distribution.LinearBuckets

The linearBuckets.

getLinearBucketsBuilder()

public Distribution.LinearBuckets.Builder getLinearBucketsBuilder()

Buckets with constant width.

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

Returns
TypeDescription
Distribution.LinearBuckets.Builder

getLinearBucketsOrBuilder()

public Distribution.LinearBucketsOrBuilder getLinearBucketsOrBuilder()

Buckets with constant width.

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

Returns
TypeDescription
Distribution.LinearBucketsOrBuilder

getMaximum()

public double getMaximum()

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

double maximum = 4;

Returns
TypeDescription
double

The maximum.

getMean()

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;

Returns
TypeDescription
double

The mean.

getMinimum()

public double getMinimum()

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

double minimum = 3;

Returns
TypeDescription
double

The minimum.

getSumOfSquaredDeviation()

public 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 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 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 boolean hasLinearBuckets()

Buckets with constant width.

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

Returns
TypeDescription
boolean

Whether the linearBuckets field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExplicitBuckets(Distribution.ExplicitBuckets value)

public Distribution.Builder mergeExplicitBuckets(Distribution.ExplicitBuckets value)

Buckets with arbitrary user-provided width.

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

Parameter
NameDescription
valueDistribution.ExplicitBuckets
Returns
TypeDescription
Distribution.Builder

mergeExponentialBuckets(Distribution.ExponentialBuckets value)

public Distribution.Builder mergeExponentialBuckets(Distribution.ExponentialBuckets value)

Buckets with exponentially growing width.

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

Parameter
NameDescription
valueDistribution.ExponentialBuckets
Returns
TypeDescription
Distribution.Builder

mergeFrom(Distribution other)

public Distribution.Builder mergeFrom(Distribution other)
Parameter
NameDescription
otherDistribution
Returns
TypeDescription
Distribution.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Distribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Distribution.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Distribution.Builder
Overrides

mergeLinearBuckets(Distribution.LinearBuckets value)

public Distribution.Builder mergeLinearBuckets(Distribution.LinearBuckets value)

Buckets with constant width.

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

Parameter
NameDescription
valueDistribution.LinearBuckets
Returns
TypeDescription
Distribution.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Distribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Distribution.Builder
Overrides

removeExemplars(int index)

public Distribution.Builder removeExemplars(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Distribution.Builder

setBucketCounts(int index, long value)

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

Parameters
NameDescription
indexint

The index to set the value at.

valuelong

The bucketCounts to set.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

setCount(long value)

public Distribution.Builder setCount(long value)

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

int64 count = 1;

Parameter
NameDescription
valuelong

The count to set.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

setExemplars(int index, Distribution.Exemplar value)

public Distribution.Builder setExemplars(int index, Distribution.Exemplar value)

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

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

Parameters
NameDescription
indexint
valuecom.google.api.Distribution.Exemplar
Returns
TypeDescription
Distribution.Builder

setExemplars(int index, Distribution.Exemplar.Builder builderForValue)

public Distribution.Builder setExemplars(int index, Distribution.Exemplar.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValuecom.google.api.Distribution.Exemplar.Builder
Returns
TypeDescription
Distribution.Builder

setExplicitBuckets(Distribution.ExplicitBuckets value)

public Distribution.Builder setExplicitBuckets(Distribution.ExplicitBuckets value)

Buckets with arbitrary user-provided width.

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

Parameter
NameDescription
valueDistribution.ExplicitBuckets
Returns
TypeDescription
Distribution.Builder

setExplicitBuckets(Distribution.ExplicitBuckets.Builder builderForValue)

public Distribution.Builder setExplicitBuckets(Distribution.ExplicitBuckets.Builder builderForValue)

Buckets with arbitrary user-provided width.

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

Parameter
NameDescription
builderForValueDistribution.ExplicitBuckets.Builder
Returns
TypeDescription
Distribution.Builder

setExponentialBuckets(Distribution.ExponentialBuckets value)

public Distribution.Builder setExponentialBuckets(Distribution.ExponentialBuckets value)

Buckets with exponentially growing width.

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

Parameter
NameDescription
valueDistribution.ExponentialBuckets
Returns
TypeDescription
Distribution.Builder

setExponentialBuckets(Distribution.ExponentialBuckets.Builder builderForValue)

public Distribution.Builder setExponentialBuckets(Distribution.ExponentialBuckets.Builder builderForValue)

Buckets with exponentially growing width.

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

Parameter
NameDescription
builderForValueDistribution.ExponentialBuckets.Builder
Returns
TypeDescription
Distribution.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Distribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Distribution.Builder
Overrides

setLinearBuckets(Distribution.LinearBuckets value)

public Distribution.Builder setLinearBuckets(Distribution.LinearBuckets value)

Buckets with constant width.

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

Parameter
NameDescription
valueDistribution.LinearBuckets
Returns
TypeDescription
Distribution.Builder

setLinearBuckets(Distribution.LinearBuckets.Builder builderForValue)

public Distribution.Builder setLinearBuckets(Distribution.LinearBuckets.Builder builderForValue)

Buckets with constant width.

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

Parameter
NameDescription
builderForValueDistribution.LinearBuckets.Builder
Returns
TypeDescription
Distribution.Builder

setMaximum(double value)

public Distribution.Builder setMaximum(double value)

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

double maximum = 4;

Parameter
NameDescription
valuedouble

The maximum to set.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

setMean(double value)

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

Parameter
NameDescription
valuedouble

The mean to set.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

setMinimum(double value)

public Distribution.Builder setMinimum(double value)

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

double minimum = 3;

Parameter
NameDescription
valuedouble

The minimum to set.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Distribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Distribution.Builder
Overrides

setSumOfSquaredDeviation(double value)

public Distribution.Builder setSumOfSquaredDeviation(double value)

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;

Parameter
NameDescription
valuedouble

The sumOfSquaredDeviation to set.

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Distribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Distribution.Builder
Overrides