Class Distribution.ExponentialBuckets.Builder (1.13.0)

public static final class Distribution.ExponentialBuckets.Builder extends GeneratedMessageV3.Builder<Distribution.ExponentialBuckets.Builder> implements Distribution.ExponentialBucketsOrBuilder

Describing buckets with exponentially growing width.

Protobuf type google.api.servicecontrol.v1.Distribution.ExponentialBuckets

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Distribution.ExponentialBuckets build()
Returns
TypeDescription
Distribution.ExponentialBuckets

buildPartial()

public Distribution.ExponentialBuckets buildPartial()
Returns
TypeDescription
Distribution.ExponentialBuckets

clear()

public Distribution.ExponentialBuckets.Builder clear()
Returns
TypeDescription
Distribution.ExponentialBuckets.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGrowthFactor()

public Distribution.ExponentialBuckets.Builder clearGrowthFactor()

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be larger than 1.0.

double growth_factor = 2;

Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

This builder for chaining.

clearNumFiniteBuckets()

public Distribution.ExponentialBuckets.Builder clearNumFiniteBuckets()

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details.

int32 num_finite_buckets = 1;

Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScale()

public Distribution.ExponentialBuckets.Builder clearScale()

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be > 0.

double scale = 3;

Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

This builder for chaining.

clone()

public Distribution.ExponentialBuckets.Builder clone()
Returns
TypeDescription
Distribution.ExponentialBuckets.Builder
Overrides

getDefaultInstanceForType()

public Distribution.ExponentialBuckets getDefaultInstanceForType()
Returns
TypeDescription
Distribution.ExponentialBuckets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGrowthFactor()

public double getGrowthFactor()

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be larger than 1.0.

double growth_factor = 2;

Returns
TypeDescription
double

The growthFactor.

getNumFiniteBuckets()

public int getNumFiniteBuckets()

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details.

int32 num_finite_buckets = 1;

Returns
TypeDescription
int

The numFiniteBuckets.

getScale()

public double getScale()

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be > 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.ExponentialBuckets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGrowthFactor(double value)

public Distribution.ExponentialBuckets.Builder setGrowthFactor(double value)

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be larger than 1.0.

double growth_factor = 2;

Parameter
NameDescription
valuedouble

The growthFactor to set.

Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

This builder for chaining.

setNumFiniteBuckets(int value)

public Distribution.ExponentialBuckets.Builder setNumFiniteBuckets(int value)

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details.

int32 num_finite_buckets = 1;

Parameter
NameDescription
valueint

The numFiniteBuckets to set.

Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

This builder for chaining.

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

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

setScale(double value)

public Distribution.ExponentialBuckets.Builder setScale(double value)

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be > 0.

double scale = 3;

Parameter
NameDescription
valuedouble

The scale to set.

Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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