Send feedback
Class Distribution.BucketOptions.Explicit.Builder (2.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.13.0 keyboard_arrow_down
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.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 ()
Returns
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Distribution . BucketOptions . Explicit . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public Distribution . BucketOptions . Explicit build ()
Returns
buildPartial()
public Distribution . BucketOptions . Explicit buildPartial ()
Returns
clear()
public Distribution . BucketOptions . Explicit . Builder clear ()
Returns
Overrides
clearBounds()
public Distribution . BucketOptions . Explicit . Builder clearBounds ()
The values must be monotonically increasing.
repeated double bounds = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public Distribution . BucketOptions . Explicit . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Distribution . BucketOptions . Explicit . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public Distribution . BucketOptions . Explicit . Builder clone ()
Returns
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 ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Distribution.BucketOptions.Explicit other)
public Distribution . BucketOptions . Explicit . Builder mergeFrom ( Distribution . BucketOptions . Explicit other )
Parameter
Returns
public Distribution . BucketOptions . Explicit . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Distribution . BucketOptions . Explicit . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Distribution . BucketOptions . Explicit . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Distribution . BucketOptions . Explicit . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Distribution . BucketOptions . Explicit . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Distribution . BucketOptions . Explicit . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]