Package com.google.api.servicecontrol.v1
Class Distribution.ExplicitBuckets.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
- com.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.Builder
-
- All Implemented Interfaces:
Distribution.ExplicitBucketsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Distribution.ExplicitBuckets
public static final class Distribution.ExplicitBuckets.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder> implements Distribution.ExplicitBucketsOrBuilder
Describing buckets with arbitrary user-provided width.
Protobuf typegoogle.api.servicecontrol.v1.Distribution.ExplicitBuckets
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Distribution.ExplicitBuckets.BuilderaddAllBounds(Iterable<? extends Double> values)'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.BuilderaddBounds(double value)'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Distribution.ExplicitBucketsbuild()Distribution.ExplicitBucketsbuildPartial()Distribution.ExplicitBuckets.Builderclear()Distribution.ExplicitBuckets.BuilderclearBounds()'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Distribution.ExplicitBuckets.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Distribution.ExplicitBuckets.Builderclone()doublegetBounds(int index)'bound' is a list of strictly increasing boundaries between buckets.intgetBoundsCount()'bound' is a list of strictly increasing boundaries between buckets.List<Double>getBoundsList()'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBucketsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Distribution.ExplicitBuckets.BuildermergeFrom(Distribution.ExplicitBuckets other)Distribution.ExplicitBuckets.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Distribution.ExplicitBuckets.BuildermergeFrom(com.google.protobuf.Message other)Distribution.ExplicitBuckets.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Distribution.ExplicitBuckets.BuildersetBounds(int index, double value)'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Distribution.ExplicitBuckets.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Distribution.ExplicitBuckets.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
clear
public Distribution.ExplicitBuckets.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
getDefaultInstanceForType
public Distribution.ExplicitBuckets getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Distribution.ExplicitBuckets build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Distribution.ExplicitBuckets buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Distribution.ExplicitBuckets.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
setField
public Distribution.ExplicitBuckets.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
clearField
public Distribution.ExplicitBuckets.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
clearOneof
public Distribution.ExplicitBuckets.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
setRepeatedField
public Distribution.ExplicitBuckets.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
addRepeatedField
public Distribution.ExplicitBuckets.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
mergeFrom
public Distribution.ExplicitBuckets.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.ExplicitBuckets.Builder>
-
mergeFrom
public Distribution.ExplicitBuckets.Builder mergeFrom(Distribution.ExplicitBuckets other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
mergeFrom
public Distribution.ExplicitBuckets.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.ExplicitBuckets.Builder>- Throws:
IOException
-
getBoundsList
public List<Double> getBoundsList()
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on `bucket_options` for details. The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
repeated double bounds = 1;- Specified by:
getBoundsListin interfaceDistribution.ExplicitBucketsOrBuilder- Returns:
- A list containing the bounds.
-
getBoundsCount
public int getBoundsCount()
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on `bucket_options` for details. The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
repeated double bounds = 1;- Specified by:
getBoundsCountin interfaceDistribution.ExplicitBucketsOrBuilder- Returns:
- The count of bounds.
-
getBounds
public double getBounds(int index)
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on `bucket_options` for details. The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
repeated double bounds = 1;- Specified by:
getBoundsin interfaceDistribution.ExplicitBucketsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bounds at the given index.
-
setBounds
public Distribution.ExplicitBuckets.Builder setBounds(int index, double value)
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on `bucket_options` for details. The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
repeated double bounds = 1;- Parameters:
index- The index to set the value at.value- The bounds to set.- Returns:
- This builder for chaining.
-
addBounds
public Distribution.ExplicitBuckets.Builder addBounds(double value)
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on `bucket_options` for details. The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
repeated double bounds = 1;- Parameters:
value- The bounds to add.- Returns:
- This builder for chaining.
-
addAllBounds
public Distribution.ExplicitBuckets.Builder addAllBounds(Iterable<? extends Double> values)
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on `bucket_options` for details. The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
repeated double bounds = 1;- Parameters:
values- The bounds to add.- Returns:
- This builder for chaining.
-
clearBounds
public Distribution.ExplicitBuckets.Builder clearBounds()
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on `bucket_options` for details. The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
repeated double bounds = 1;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Distribution.ExplicitBuckets.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
mergeUnknownFields
public final Distribution.ExplicitBuckets.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
-