Class Distribution.BucketOptions.Explicit.Builder (2.11.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Distribution.BucketOptions.Explicit.Builder extends GeneratedMessageV3.Builder<Distribution.BucketOptions.Explicit.Builder> implements Distribution.BucketOptions.ExplicitOrBuilder

Specifies a set of buckets with arbitrary widths. There are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries: Upper bound (0 <= i < N-1): bounds[i] Lower bound (1 <= i < N); bounds[i - 1] The bounds field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.

Protobuf type google.api.Distribution.BucketOptions.Explicit

Static Methods

getDescriptor()

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

Methods

addAllBounds(Iterable<? extends Double> values)

public Distribution.BucketOptions.Explicit.Builder addAllBounds(Iterable<? extends Double> values)

The values must be monotonically increasing.

repeated double bounds = 1;

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

The bounds to add.

Returns
TypeDescription
Distribution.BucketOptions.Explicit.Builder

This builder for chaining.

addBounds(double value)

public Distribution.BucketOptions.Explicit.Builder addBounds(double value)

The values must be monotonically increasing.

repeated double bounds = 1;

Parameter
NameDescription
valuedouble

The bounds to add.

Returns
TypeDescription
Distribution.BucketOptions.Explicit.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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