Class Distribution.BucketOptions.Exponential (2.7.4)

public static final class Distribution.BucketOptions.Exponential extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Distribution.BucketOptions.Exponential

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.BucketOptions.Exponential getDefaultInstance()
Returns
TypeDescription
Distribution.BucketOptions.Exponential

getDescriptor()

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

newBuilder()

public static Distribution.BucketOptions.Exponential.Builder newBuilder()
Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

newBuilder(Distribution.BucketOptions.Exponential prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

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.

getParserForType()

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

getScale()

public double getScale()

Must be greater than 0.

double scale = 3;

Returns
TypeDescription
double

The scale.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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.BucketOptions.Exponential.Builder newBuilderForType()
Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Distribution.BucketOptions.Exponential.Builder toBuilder()
Returns
TypeDescription
Distribution.BucketOptions.Exponential.Builder

writeTo(CodedOutputStream output)

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