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.Builder
addAllBounds(Iterable<? extends Double> values)
'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.Builder
addBounds(double value)
'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Distribution.ExplicitBuckets
build()
Distribution.ExplicitBuckets
buildPartial()
Distribution.ExplicitBuckets.Builder
clear()
Distribution.ExplicitBuckets.Builder
clearBounds()
'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Distribution.ExplicitBuckets.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Distribution.ExplicitBuckets.Builder
clone()
double
getBounds(int index)
'bound' is a list of strictly increasing boundaries between buckets.int
getBoundsCount()
'bound' is a list of strictly increasing boundaries between buckets.List<Double>
getBoundsList()
'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Distribution.ExplicitBuckets.Builder
mergeFrom(Distribution.ExplicitBuckets other)
Distribution.ExplicitBuckets.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Distribution.ExplicitBuckets.Builder
mergeFrom(com.google.protobuf.Message other)
Distribution.ExplicitBuckets.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Distribution.ExplicitBuckets.Builder
setBounds(int index, double value)
'bound' is a list of strictly increasing boundaries between buckets.Distribution.ExplicitBuckets.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Distribution.ExplicitBuckets.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Distribution.ExplicitBuckets.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
clear
public Distribution.ExplicitBuckets.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
getDefaultInstanceForType
public Distribution.ExplicitBuckets getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Distribution.ExplicitBuckets build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Distribution.ExplicitBuckets buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Distribution.ExplicitBuckets.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
setField
public Distribution.ExplicitBuckets.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
clearField
public Distribution.ExplicitBuckets.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
clearOneof
public Distribution.ExplicitBuckets.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
addRepeatedField
public Distribution.ExplicitBuckets.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
mergeFrom
public Distribution.ExplicitBuckets.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Distribution.ExplicitBuckets.Builder>
-
mergeFrom
public Distribution.ExplicitBuckets.Builder mergeFrom(Distribution.ExplicitBuckets other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getBoundsList
in 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:
getBoundsCount
in 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:
getBounds
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
mergeUnknownFields
public final Distribution.ExplicitBuckets.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.ExplicitBuckets.Builder>
-
-