- 1.52.0 (latest)
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.1.10
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Distribution.BuilderImplements
DistributionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values |
Iterable<? extends java.lang.Long> The bucketCounts to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.api.Distribution.Exemplar> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
long The bucketCounts to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
com.google.api.Distribution.Exemplar |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
com.google.api.Distribution.Exemplar.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
value |
com.google.api.Distribution.Exemplar |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
builderForValue |
com.google.api.Distribution.Exemplar.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
com.google.api.Distribution.Exemplar.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Distribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
build()
public Distribution build()
Returns | |
---|---|
Type | Description |
Distribution |
buildPartial()
public Distribution buildPartial()
Returns | |
---|---|
Type | Description |
Distribution |
clear()
public Distribution.Builder clear()
Returns | |
---|---|
Type | Description |
Distribution.Builder |
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 | |
---|---|
Type | Description |
Distribution.Builder |
This builder for chaining. |
clearBucketOption()
public Distribution.Builder clearBucketOption()
Returns | |
---|---|
Type | Description |
Distribution.Builder |
clearCount()
public Distribution.Builder clearCount()
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Distribution.Builder |
clearExplicitBuckets()
public Distribution.Builder clearExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;
Returns | |
---|---|
Type | Description |
Distribution.Builder |
clearExponentialBuckets()
public Distribution.Builder clearExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;
Returns | |
---|---|
Type | Description |
Distribution.Builder |
clearField(Descriptors.FieldDescriptor field)
public Distribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
clearLinearBuckets()
public Distribution.Builder clearLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;
Returns | |
---|---|
Type | Description |
Distribution.Builder |
clearMaximum()
public Distribution.Builder clearMaximum()
The maximum of the population of values. Ignored if count
is zero.
double maximum = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Distribution.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Distribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
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 | |
---|---|
Type | Description |
Distribution.Builder |
This builder for chaining. |
clone()
public Distribution.Builder clone()
Returns | |
---|---|
Type | Description |
Distribution.Builder |
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 | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<Long> |
A list containing the bucketCounts. |
getBucketOptionCase()
public Distribution.BucketOptionCase getBucketOptionCase()
Returns | |
---|---|
Type | Description |
Distribution.BucketOptionCase |
getCount()
public long getCount()
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;
Returns | |
---|---|
Type | Description |
long |
The count. |
getDefaultInstanceForType()
public Distribution getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Distribution |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Distribution.ExplicitBuckets.Builder |
getExplicitBucketsOrBuilder()
public Distribution.ExplicitBucketsOrBuilder getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;
Returns | |
---|---|
Type | Description |
Distribution.ExplicitBucketsOrBuilder |
getExponentialBuckets()
public Distribution.ExponentialBuckets getExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Distribution.ExponentialBuckets.Builder |
getExponentialBucketsOrBuilder()
public Distribution.ExponentialBucketsOrBuilder getExponentialBucketsOrBuilder()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;
Returns | |
---|---|
Type | Description |
Distribution.ExponentialBucketsOrBuilder |
getLinearBuckets()
public Distribution.LinearBuckets getLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;
Returns | |
---|---|
Type | Description |
Distribution.LinearBuckets |
The linearBuckets. |
getLinearBucketsBuilder()
public Distribution.LinearBuckets.Builder getLinearBucketsBuilder()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;
Returns | |
---|---|
Type | Description |
Distribution.LinearBuckets.Builder |
getLinearBucketsOrBuilder()
public Distribution.LinearBucketsOrBuilder getLinearBucketsOrBuilder()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;
Returns | |
---|---|
Type | Description |
Distribution.LinearBucketsOrBuilder |
getMaximum()
public double getMaximum()
The maximum of the population of values. Ignored if count
is zero.
double maximum = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
double |
The mean. |
getMinimum()
public double getMinimum()
The minimum of the population of values. Ignored if count
is zero.
double minimum = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
double |
The sumOfSquaredDeviation. |
hasExplicitBuckets()
public boolean hasExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the linearBuckets field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value |
Distribution.ExplicitBuckets |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
Distribution.ExponentialBuckets |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
mergeFrom(Distribution other)
public Distribution.Builder mergeFrom(Distribution other)
Parameter | |
---|---|
Name | Description |
other |
Distribution |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Distribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Distribution.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
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 | |
---|---|
Name | Description |
value |
Distribution.LinearBuckets |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Distribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
long The bucketCounts to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
long The count to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
value |
com.google.api.Distribution.Exemplar |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
builderForValue |
com.google.api.Distribution.Exemplar.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
Distribution.ExplicitBuckets |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Distribution.ExplicitBuckets.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
Distribution.ExponentialBuckets |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Distribution.ExponentialBuckets.Builder |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Distribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
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 | |
---|---|
Name | Description |
value |
Distribution.LinearBuckets |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Distribution.LinearBuckets.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
double The maximum to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
double The mean to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
double The minimum to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
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 | |
---|---|
Name | Description |
value |
double The sumOfSquaredDeviation to set. |
Returns | |
---|---|
Type | Description |
Distribution.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Distribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Distribution.Builder |