Class Distribution.ExponentialBuckets (1.30.0)

public static final class Distribution.ExponentialBuckets extends GeneratedMessageV3 implements Distribution.ExponentialBucketsOrBuilder

Describing buckets with exponentially growing width.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Distribution.ExponentialBuckets

Static Fields

GROWTH_FACTOR_FIELD_NUMBER

public static final int GROWTH_FACTOR_FIELD_NUMBER
Field Value
TypeDescription
int

NUM_FINITE_BUCKETS_FIELD_NUMBER

public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

SCALE_FIELD_NUMBER

public static final int SCALE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Distribution.ExponentialBuckets getDefaultInstance()
Returns
TypeDescription
Distribution.ExponentialBuckets

getDescriptor()

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

newBuilder()

public static Distribution.ExponentialBuckets.Builder newBuilder()
Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

newBuilder(Distribution.ExponentialBuckets prototype)

public static Distribution.ExponentialBuckets.Builder newBuilder(Distribution.ExponentialBuckets prototype)
Parameter
NameDescription
prototypeDistribution.ExponentialBuckets
Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

parseDelimitedFrom(InputStream input)

public static Distribution.ExponentialBuckets parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Distribution.ExponentialBuckets parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Distribution.ExponentialBuckets parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Distribution.ExponentialBuckets parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Distribution.ExponentialBuckets parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Distribution.ExponentialBuckets parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Distribution.ExponentialBuckets parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Distribution.ExponentialBuckets parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Distribution.ExponentialBuckets parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Distribution.ExponentialBuckets parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Distribution.ExponentialBuckets parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Distribution.ExponentialBuckets parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Distribution.ExponentialBuckets
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Distribution.ExponentialBuckets> parser()
Returns
TypeDescription
Parser<ExponentialBuckets>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Distribution.ExponentialBuckets> getParserForType()
Returns
TypeDescription
Parser<ExponentialBuckets>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Distribution.ExponentialBuckets.Builder newBuilderForType()
Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Distribution.ExponentialBuckets.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Distribution.ExponentialBuckets.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Distribution.ExponentialBuckets.Builder toBuilder()
Returns
TypeDescription
Distribution.ExponentialBuckets.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException