Class Distribution.BucketOptions.Exponential.Builder (2.43.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Distribution.BucketOptions.Exponential.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides

build()

public Distribution.BucketOptions.Exponential build()
Returns
Type Description
Distribution.BucketOptions.Exponential

buildPartial()

public Distribution.BucketOptions.Exponential buildPartial()
Returns
Type Description
Distribution.BucketOptions.Exponential

clear()

public Distribution.BucketOptions.Exponential.Builder clear()
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Distribution.BucketOptions.Exponential.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides

clearGrowthFactor()

public Distribution.BucketOptions.Exponential.Builder clearGrowthFactor()

Must be greater than 1.

double growth_factor = 2;

Returns
Type Description
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
Type Description
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Distribution.BucketOptions.Exponential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides

clearScale()

public Distribution.BucketOptions.Exponential.Builder clearScale()

Must be greater than 0.

double scale = 3;

Returns
Type Description
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

clone()

public Distribution.BucketOptions.Exponential.Builder clone()
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides

getDefaultInstanceForType()

public Distribution.BucketOptions.Exponential getDefaultInstanceForType()
Returns
Type Description
Distribution.BucketOptions.Exponential

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGrowthFactor()

public double getGrowthFactor()

Must be greater than 1.

double growth_factor = 2;

Returns
Type Description
double

The growthFactor.

getNumFiniteBuckets()

public int getNumFiniteBuckets()

Must be greater than 0.

int32 num_finite_buckets = 1;

Returns
Type Description
int

The numFiniteBuckets.

getScale()

public double getScale()

Must be greater than 0.

double scale = 3;

Returns
Type Description
double

The scale.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Distribution.BucketOptions.Exponential other)

public Distribution.BucketOptions.Exponential.Builder mergeFrom(Distribution.BucketOptions.Exponential other)
Parameter
Name Description
other Distribution.BucketOptions.Exponential
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Distribution.BucketOptions.Exponential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Distribution.BucketOptions.Exponential.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Distribution.BucketOptions.Exponential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Distribution.BucketOptions.Exponential.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value double

The growthFactor to set.

Returns
Type Description
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
Name Description
value int

The numFiniteBuckets to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value double

The scale to set.

Returns
Type Description
Distribution.BucketOptions.Exponential.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Distribution.BucketOptions.Exponential.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Distribution.BucketOptions.Exponential.Builder
Overrides