Class Distribution.BucketOptions.Explicit.Builder (2.36.0)

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 &lt;= i &lt; N-1):     bounds[i]
Lower bound (1 &lt;= i &lt; 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
TypeDescription
Distribution.BucketOptions.Explicit.Builder
Overrides

build()

public Distribution.BucketOptions.Explicit build()
Returns
TypeDescription
Distribution.BucketOptions.Explicit

buildPartial()

public Distribution.BucketOptions.Explicit buildPartial()
Returns
TypeDescription
Distribution.BucketOptions.Explicit

clear()

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

clearBounds()

public Distribution.BucketOptions.Explicit.Builder clearBounds()

The values must be monotonically increasing.

repeated double bounds = 1;

Returns
TypeDescription
Distribution.BucketOptions.Explicit.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBounds(int index)

public double getBounds(int index)

The values must be monotonically increasing.

repeated double bounds = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
double

The bounds at the given index.

getBoundsCount()

public int getBoundsCount()

The values must be monotonically increasing.

repeated double bounds = 1;

Returns
TypeDescription
int

The count of bounds.

getBoundsList()

public List<Double> getBoundsList()

The values must be monotonically increasing.

repeated double bounds = 1;

Returns
TypeDescription
List<Double>

A list containing the bounds.

getDefaultInstanceForType()

public Distribution.BucketOptions.Explicit getDefaultInstanceForType()
Returns
TypeDescription
Distribution.BucketOptions.Explicit

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Distribution.BucketOptions.Explicit other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBounds(int index, double value)

public Distribution.BucketOptions.Explicit.Builder setBounds(int index, double value)

The values must be monotonically increasing.

repeated double bounds = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valuedouble

The bounds to set.

Returns
TypeDescription
Distribution.BucketOptions.Explicit.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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