public static final class Distribution.LinearBuckets.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder> implements Distribution.LinearBucketsOrBuilder
Describing buckets with constant width.Protobuf type
google.api.servicecontrol.v1.Distribution.LinearBuckets| Modifier and Type | Method and Description |
|---|---|
Distribution.LinearBuckets.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution.LinearBuckets |
build() |
Distribution.LinearBuckets |
buildPartial() |
Distribution.LinearBuckets.Builder |
clear() |
Distribution.LinearBuckets.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Distribution.LinearBuckets.Builder |
clearNumFiniteBuckets()
The number of finite buckets.
|
Distribution.LinearBuckets.Builder |
clearOffset()
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
|
Distribution.LinearBuckets.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Distribution.LinearBuckets.Builder |
clearWidth()
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
|
Distribution.LinearBuckets.Builder |
clone() |
Distribution.LinearBuckets |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getNumFiniteBuckets()
The number of finite buckets.
|
double |
getOffset()
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
|
double |
getWidth()
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Distribution.LinearBuckets.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Distribution.LinearBuckets.Builder |
mergeFrom(Distribution.LinearBuckets other) |
Distribution.LinearBuckets.Builder |
mergeFrom(com.google.protobuf.Message other) |
Distribution.LinearBuckets.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Distribution.LinearBuckets.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution.LinearBuckets.Builder |
setNumFiniteBuckets(int value)
The number of finite buckets.
|
Distribution.LinearBuckets.Builder |
setOffset(double value)
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
|
Distribution.LinearBuckets.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Distribution.LinearBuckets.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Distribution.LinearBuckets.Builder |
setWidth(double value)
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Distribution.LinearBuckets build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Distribution.LinearBuckets buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Distribution.LinearBuckets.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder mergeFrom(Distribution.LinearBuckets other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public Distribution.LinearBuckets.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Distribution.LinearBuckets.Builder>java.io.IOExceptionpublic 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;getNumFiniteBuckets in interface Distribution.LinearBucketsOrBuilderpublic Distribution.LinearBuckets.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;public Distribution.LinearBuckets.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;public double getWidth()
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive.
double width = 2;getWidth in interface Distribution.LinearBucketsOrBuilderpublic Distribution.LinearBuckets.Builder setWidth(double value)
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive.
double width = 2;public Distribution.LinearBuckets.Builder clearWidth()
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive.
double width = 2;public double getOffset()
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive.
double offset = 3;getOffset in interface Distribution.LinearBucketsOrBuilderpublic Distribution.LinearBuckets.Builder setOffset(double value)
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive.
double offset = 3;public Distribution.LinearBuckets.Builder clearOffset()
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive.
double offset = 3;public final Distribution.LinearBuckets.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>public final Distribution.LinearBuckets.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.LinearBuckets.Builder>