Class Distribution.BucketOptions.Exponential.Builder (2.65.0)

public static final class Distribution.BucketOptions.Exponential.Builder extends GeneratedMessage.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 <= i < N-1): scale * (growth_factor ^ i).

Lower bound (1 <= i < 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

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

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.

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.

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 GeneratedMessage.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

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.

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.