Class Distribution.ExplicitBuckets.Builder (1.31.0)

public static final class Distribution.ExplicitBuckets.Builder extends GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder> implements Distribution.ExplicitBucketsOrBuilder

Describing buckets with arbitrary user-provided width.

Protobuf type google.api.servicecontrol.v1.Distribution.ExplicitBuckets

Static Methods

getDescriptor()

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

Methods

addAllBounds(Iterable<? extends Double> values)

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

'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details.

The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets.

bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf

repeated double bounds = 1;

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

The bounds to add.

Returns
TypeDescription
Distribution.ExplicitBuckets.Builder

This builder for chaining.

addBounds(double value)

public Distribution.ExplicitBuckets.Builder addBounds(double value)

'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details.

The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets.

bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf

repeated double bounds = 1;

Parameter
NameDescription
valuedouble

The bounds to add.

Returns
TypeDescription
Distribution.ExplicitBuckets.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Distribution.ExplicitBuckets build()
Returns
TypeDescription
Distribution.ExplicitBuckets

buildPartial()

public Distribution.ExplicitBuckets buildPartial()
Returns
TypeDescription
Distribution.ExplicitBuckets

clear()

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

clearBounds()

public Distribution.ExplicitBuckets.Builder clearBounds()

'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details.

The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets.

bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf

repeated double bounds = 1;

Returns
TypeDescription
Distribution.ExplicitBuckets.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBounds(int index)

public double getBounds(int index)

'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details.

The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets.

bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf

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()

'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details.

The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets.

bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf

repeated double bounds = 1;

Returns
TypeDescription
int

The count of bounds.

getBoundsList()

public List<Double> getBoundsList()

'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details.

The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets.

bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf

repeated double bounds = 1;

Returns
TypeDescription
List<Double>

A list containing the bounds.

getDefaultInstanceForType()

public Distribution.ExplicitBuckets getDefaultInstanceForType()
Returns
TypeDescription
Distribution.ExplicitBuckets

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.ExplicitBuckets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBounds(int index, double value)

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

'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details.

The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets.

bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf

repeated double bounds = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valuedouble

The bounds to set.

Returns
TypeDescription
Distribution.ExplicitBuckets.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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