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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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 |
Name |
Description |
values |
Iterable<? extends java.lang.Double>
The bounds to add.
|
addBounds(double value)
public Distribution.BucketOptions.Explicit.Builder addBounds(double value)
The values must be monotonically increasing.
repeated double bounds = 1;
Parameter |
Name |
Description |
value |
double
The bounds to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Distribution.BucketOptions.Explicit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Distribution.BucketOptions.Explicit build()
buildPartial()
public Distribution.BucketOptions.Explicit buildPartial()
clear()
public Distribution.BucketOptions.Explicit.Builder clear()
Overrides
clearBounds()
public Distribution.BucketOptions.Explicit.Builder clearBounds()
The values must be monotonically increasing.
repeated double bounds = 1;
clearField(Descriptors.FieldDescriptor field)
public Distribution.BucketOptions.Explicit.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Distribution.BucketOptions.Explicit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Distribution.BucketOptions.Explicit.Builder clone()
Overrides
getBounds(int index)
public double getBounds(int index)
The values must be monotonically increasing.
repeated double bounds = 1;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
double |
The bounds at the given index.
|
getBoundsCount()
public int getBoundsCount()
The values must be monotonically increasing.
repeated double bounds = 1;
Returns |
Type |
Description |
int |
The count of bounds.
|
getBoundsList()
public List<Double> getBoundsList()
The values must be monotonically increasing.
repeated double bounds = 1;
Returns |
Type |
Description |
List<Double> |
A list containing the bounds.
|
getDefaultInstanceForType()
public Distribution.BucketOptions.Explicit getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Distribution.BucketOptions.Explicit other)
public Distribution.BucketOptions.Explicit.Builder mergeFrom(Distribution.BucketOptions.Explicit other)
public Distribution.BucketOptions.Explicit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Distribution.BucketOptions.Explicit.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Distribution.BucketOptions.Explicit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
Name |
Description |
index |
int
The index to set the value at.
|
value |
double
The bounds to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Distribution.BucketOptions.Explicit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Distribution.BucketOptions.Explicit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Distribution.BucketOptions.Explicit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides