Class Distribution.BucketOptions.Exponential.Builder (2.37.1)

public static final class Distribution.BucketOptions.Exponential.Builder extends GeneratedMessageV3.Builder<Distribution.BucketOptions.Exponential.Builder> implements Distribution.BucketOptions.ExponentialOrBuilder

Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.

There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:

Upper bound (0 &lt;= i &lt; N-1):     scale * (growth_factor ^ i).

Lower bound (1 &lt;= i &lt; N):       scale * (growth_factor ^ (i - 1)).

Protobuf type google.api.Distribution.BucketOptions.Exponential

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGrowthFactor()

public Distribution.BucketOptions.Exponential.Builder clearGrowthFactor()

Must be greater than 1.

double growth_factor = 2;

Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

clearNumFiniteBuckets()

public Distribution.BucketOptions.Exponential.Builder clearNumFiniteBuckets()

Must be greater than 0.

int32 num_finite_buckets = 1;

Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScale()

public Distribution.BucketOptions.Exponential.Builder clearScale()

Must be greater than 0.

double scale = 3;

Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGrowthFactor()

public double getGrowthFactor()

Must be greater than 1.

double growth_factor = 2;

Returns
TypeDescription
double

The growthFactor.

getNumFiniteBuckets()

public int getNumFiniteBuckets()

Must be greater than 0.

int32 num_finite_buckets = 1;

Returns
TypeDescription
int

The numFiniteBuckets.

getScale()

public double getScale()

Must be greater than 0.

double scale = 3;

Returns
TypeDescription
double

The scale.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Distribution.BucketOptions.Exponential other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGrowthFactor(double value)

public Distribution.BucketOptions.Exponential.Builder setGrowthFactor(double value)

Must be greater than 1.

double growth_factor = 2;

Parameter
NameDescription
valuedouble

The growthFactor to set.

Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

setNumFiniteBuckets(int value)

public Distribution.BucketOptions.Exponential.Builder setNumFiniteBuckets(int value)

Must be greater than 0.

int32 num_finite_buckets = 1;

Parameter
NameDescription
valueint

The numFiniteBuckets to set.

Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

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

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

setScale(double value)

public Distribution.BucketOptions.Exponential.Builder setScale(double value)

Must be greater than 0.

double scale = 3;

Parameter
NameDescription
valuedouble

The scale to set.

Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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