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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Distribution.BucketOptions.Explicit.BuilderImplements
Distribution.BucketOptions.ExplicitOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Double> The bounds to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | double The bounds to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
build()
public Distribution.BucketOptions.Explicit build()
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit |
buildPartial()
public Distribution.BucketOptions.Explicit buildPartial()
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit |
clear()
public Distribution.BucketOptions.Explicit.Builder clear()
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
clearBounds()
public Distribution.BucketOptions.Explicit.Builder clearBounds()
The values must be monotonically increasing.
repeated double bounds = 1;
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Distribution.BucketOptions.Explicit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Distribution.BucketOptions.Explicit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
clone()
public Distribution.BucketOptions.Explicit.Builder clone()
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
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()
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Distribution.BucketOptions.Explicit other)
public Distribution.BucketOptions.Explicit.Builder mergeFrom(Distribution.BucketOptions.Explicit other)
Parameter | |
---|---|
Name | Description |
other | Distribution.BucketOptions.Explicit |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Distribution.BucketOptions.Explicit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Distribution.BucketOptions.Explicit.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Distribution.BucketOptions.Explicit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
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. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Distribution.BucketOptions.Explicit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Distribution.BucketOptions.Explicit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Distribution.BucketOptions.Explicit.Builder |