public static final class Distribution.BucketOptions.Linear extends GeneratedMessageV3 implements Distribution.BucketOptions.LinearOrBuilder
Specifies a linear sequence of buckets that all have the same width
(except overflow and underflow). Each bucket represents a constant
absolute uncertainty on the 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): offset + (width * i).
Lower bound (1 <= i < N): offset + (width * (i - 1)).
Protobuf type google.api.Distribution.BucketOptions.Linear| Modifier and Type | Class and Description |
|---|---|
static class |
Distribution.BucketOptions.Linear.Builder
Specifies a linear sequence of buckets that all have the same width
(except overflow and underflow).
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_FINITE_BUCKETS_FIELD_NUMBER |
static int |
OFFSET_FIELD_NUMBER |
static int |
WIDTH_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NUM_FINITE_BUCKETS_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public int getNumFiniteBuckets()
Must be greater than 0.
int32 num_finite_buckets = 1;getNumFiniteBuckets in interface Distribution.BucketOptions.LinearOrBuilderpublic double getWidth()
Must be greater than 0.
double width = 2;getWidth in interface Distribution.BucketOptions.LinearOrBuilderpublic double getOffset()
Lower bound of the first bucket.
double offset = 3;getOffset in interface Distribution.BucketOptions.LinearOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Distribution.BucketOptions.Linear parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions.Linear parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions.Linear parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions.Linear parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions.Linear parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions.Linear parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Distribution.BucketOptions.Linear parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions.Linear parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions.Linear parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions.Linear parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions.Linear parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.BucketOptions.Linear parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Distribution.BucketOptions.Linear.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Distribution.BucketOptions.Linear.Builder newBuilder()
public static Distribution.BucketOptions.Linear.Builder newBuilder(Distribution.BucketOptions.Linear prototype)
public Distribution.BucketOptions.Linear.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Distribution.BucketOptions.Linear.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Distribution.BucketOptions.Linear getDefaultInstance()
public static Parser<Distribution.BucketOptions.Linear> parser()
public Parser<Distribution.BucketOptions.Linear> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Distribution.BucketOptions.Linear getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder