Package io.envoyproxy.pgv.validate
Class Validate.FloatRules.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Validate.FloatRules.Builder>
-
- io.envoyproxy.pgv.validate.Validate.FloatRules.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Validate.FloatRulesOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Validate.FloatRules
public static final class Validate.FloatRules.Builder extends com.google.protobuf.GeneratedMessage.Builder<Validate.FloatRules.Builder> implements Validate.FloatRulesOrBuilder
FloatRules describes the constraints applied to `float` values
Protobuf typevalidate.FloatRules
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private float
const_
private float
gt_
private float
gte_
private boolean
ignoreEmpty_
private com.google.protobuf.Internal.FloatList
in_
private float
lt_
private float
lte_
private com.google.protobuf.Internal.FloatList
notIn_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.FloatRules.Builder
addAllIn(java.lang.Iterable<? extends java.lang.Float> values)
In specifies that this field must be equal to one of the specified valuesValidate.FloatRules.Builder
addAllNotIn(java.lang.Iterable<? extends java.lang.Float> values)
NotIn specifies that this field cannot be equal to one of the specified valuesValidate.FloatRules.Builder
addIn(float value)
In specifies that this field must be equal to one of the specified valuesValidate.FloatRules.Builder
addNotIn(float value)
NotIn specifies that this field cannot be equal to one of the specified valuesValidate.FloatRules
build()
Validate.FloatRules
buildPartial()
private void
buildPartial0(Validate.FloatRules result)
Validate.FloatRules.Builder
clear()
Validate.FloatRules.Builder
clearConst()
Const specifies that this field must be exactly the specified valueValidate.FloatRules.Builder
clearGt()
Gt specifies that this field must be greater than the specified value, exclusive.Validate.FloatRules.Builder
clearGte()
Gte specifies that this field must be greater than or equal to the specified value, inclusive.Validate.FloatRules.Builder
clearIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.FloatRules.Builder
clearIn()
In specifies that this field must be equal to one of the specified valuesValidate.FloatRules.Builder
clearLt()
Lt specifies that this field must be less than the specified value, exclusiveValidate.FloatRules.Builder
clearLte()
Lte specifies that this field must be less than or equal to the specified value, inclusiveValidate.FloatRules.Builder
clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified valuesprivate void
ensureInIsMutable()
private void
ensureInIsMutable(int capacity)
private void
ensureNotInIsMutable()
private void
ensureNotInIsMutable(int capacity)
float
getConst()
Const specifies that this field must be exactly the specified valueValidate.FloatRules
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
float
getGt()
Gt specifies that this field must be greater than the specified value, exclusive.float
getGte()
Gte specifies that this field must be greater than or equal to the specified value, inclusive.boolean
getIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyfloat
getIn(int index)
In specifies that this field must be equal to one of the specified valuesint
getInCount()
In specifies that this field must be equal to one of the specified valuesjava.util.List<java.lang.Float>
getInList()
In specifies that this field must be equal to one of the specified valuesfloat
getLt()
Lt specifies that this field must be less than the specified value, exclusivefloat
getLte()
Lte specifies that this field must be less than or equal to the specified value, inclusivefloat
getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified valuesint
getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified valuesjava.util.List<java.lang.Float>
getNotInList()
NotIn specifies that this field cannot be equal to one of the specified valuesboolean
hasConst()
Const specifies that this field must be exactly the specified valueboolean
hasGt()
Gt specifies that this field must be greater than the specified value, exclusive.boolean
hasGte()
Gte specifies that this field must be greater than or equal to the specified value, inclusive.boolean
hasIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyboolean
hasLt()
Lt specifies that this field must be less than the specified value, exclusiveboolean
hasLte()
Lte specifies that this field must be less than or equal to the specified value, inclusiveprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Validate.FloatRules.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Validate.FloatRules.Builder
mergeFrom(com.google.protobuf.Message other)
Validate.FloatRules.Builder
mergeFrom(Validate.FloatRules other)
Validate.FloatRules.Builder
setConst(float value)
Const specifies that this field must be exactly the specified valueValidate.FloatRules.Builder
setGt(float value)
Gt specifies that this field must be greater than the specified value, exclusive.Validate.FloatRules.Builder
setGte(float value)
Gte specifies that this field must be greater than or equal to the specified value, inclusive.Validate.FloatRules.Builder
setIgnoreEmpty(boolean value)
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.FloatRules.Builder
setIn(int index, float value)
In specifies that this field must be equal to one of the specified valuesValidate.FloatRules.Builder
setLt(float value)
Lt specifies that this field must be less than the specified value, exclusiveValidate.FloatRules.Builder
setLte(float value)
Lte specifies that this field must be less than or equal to the specified value, inclusiveValidate.FloatRules.Builder
setNotIn(int index, float value)
NotIn specifies that this field cannot be equal to one of the specified values-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
const_
private float const_
-
lt_
private float lt_
-
lte_
private float lte_
-
gt_
private float gt_
-
gte_
private float gte_
-
in_
private com.google.protobuf.Internal.FloatList in_
-
notIn_
private com.google.protobuf.Internal.FloatList notIn_
-
ignoreEmpty_
private boolean ignoreEmpty_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.FloatRules.Builder>
-
clear
public Validate.FloatRules.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.GeneratedMessage.Builder<Validate.FloatRules.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.GeneratedMessage.Builder<Validate.FloatRules.Builder>
-
getDefaultInstanceForType
public Validate.FloatRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.FloatRules build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.FloatRules buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Validate.FloatRules result)
-
mergeFrom
public Validate.FloatRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.FloatRules.Builder>
-
mergeFrom
public Validate.FloatRules.Builder mergeFrom(Validate.FloatRules other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.FloatRules.Builder>
-
mergeFrom
public Validate.FloatRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<Validate.FloatRules.Builder>
- Throws:
java.io.IOException
-
hasConst
public boolean hasConst()
Const specifies that this field must be exactly the specified value
optional float const = 1;
- Specified by:
hasConst
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- Whether the const field is set.
-
getConst
public float getConst()
Const specifies that this field must be exactly the specified value
optional float const = 1;
- Specified by:
getConst
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The const.
-
setConst
public Validate.FloatRules.Builder setConst(float value)
Const specifies that this field must be exactly the specified value
optional float const = 1;
- Parameters:
value
- The const to set.- Returns:
- This builder for chaining.
-
clearConst
public Validate.FloatRules.Builder clearConst()
Const specifies that this field must be exactly the specified value
optional float const = 1;
- Returns:
- This builder for chaining.
-
hasLt
public boolean hasLt()
Lt specifies that this field must be less than the specified value, exclusive
optional float lt = 2;
- Specified by:
hasLt
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- Whether the lt field is set.
-
getLt
public float getLt()
Lt specifies that this field must be less than the specified value, exclusive
optional float lt = 2;
- Specified by:
getLt
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The lt.
-
setLt
public Validate.FloatRules.Builder setLt(float value)
Lt specifies that this field must be less than the specified value, exclusive
optional float lt = 2;
- Parameters:
value
- The lt to set.- Returns:
- This builder for chaining.
-
clearLt
public Validate.FloatRules.Builder clearLt()
Lt specifies that this field must be less than the specified value, exclusive
optional float lt = 2;
- Returns:
- This builder for chaining.
-
hasLte
public boolean hasLte()
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional float lte = 3;
- Specified by:
hasLte
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- Whether the lte field is set.
-
getLte
public float getLte()
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional float lte = 3;
- Specified by:
getLte
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The lte.
-
setLte
public Validate.FloatRules.Builder setLte(float value)
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional float lte = 3;
- Parameters:
value
- The lte to set.- Returns:
- This builder for chaining.
-
clearLte
public Validate.FloatRules.Builder clearLte()
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional float lte = 3;
- Returns:
- This builder for chaining.
-
hasGt
public boolean hasGt()
Gt specifies that this field must be greater than the specified value, exclusive. If the value of Gt is larger than a specified Lt or Lte, the range is reversed.
optional float gt = 4;
- Specified by:
hasGt
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- Whether the gt field is set.
-
getGt
public float getGt()
Gt specifies that this field must be greater than the specified value, exclusive. If the value of Gt is larger than a specified Lt or Lte, the range is reversed.
optional float gt = 4;
- Specified by:
getGt
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The gt.
-
setGt
public Validate.FloatRules.Builder setGt(float value)
Gt specifies that this field must be greater than the specified value, exclusive. If the value of Gt is larger than a specified Lt or Lte, the range is reversed.
optional float gt = 4;
- Parameters:
value
- The gt to set.- Returns:
- This builder for chaining.
-
clearGt
public Validate.FloatRules.Builder clearGt()
Gt specifies that this field must be greater than the specified value, exclusive. If the value of Gt is larger than a specified Lt or Lte, the range is reversed.
optional float gt = 4;
- Returns:
- This builder for chaining.
-
hasGte
public boolean hasGte()
Gte specifies that this field must be greater than or equal to the specified value, inclusive. If the value of Gte is larger than a specified Lt or Lte, the range is reversed.
optional float gte = 5;
- Specified by:
hasGte
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- Whether the gte field is set.
-
getGte
public float getGte()
Gte specifies that this field must be greater than or equal to the specified value, inclusive. If the value of Gte is larger than a specified Lt or Lte, the range is reversed.
optional float gte = 5;
- Specified by:
getGte
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The gte.
-
setGte
public Validate.FloatRules.Builder setGte(float value)
Gte specifies that this field must be greater than or equal to the specified value, inclusive. If the value of Gte is larger than a specified Lt or Lte, the range is reversed.
optional float gte = 5;
- Parameters:
value
- The gte to set.- Returns:
- This builder for chaining.
-
clearGte
public Validate.FloatRules.Builder clearGte()
Gte specifies that this field must be greater than or equal to the specified value, inclusive. If the value of Gte is larger than a specified Lt or Lte, the range is reversed.
optional float gte = 5;
- Returns:
- This builder for chaining.
-
ensureInIsMutable
private void ensureInIsMutable()
-
ensureInIsMutable
private void ensureInIsMutable(int capacity)
-
getInList
public java.util.List<java.lang.Float> getInList()
In specifies that this field must be equal to one of the specified values
repeated float in = 6;
- Specified by:
getInList
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- A list containing the in.
-
getInCount
public int getInCount()
In specifies that this field must be equal to one of the specified values
repeated float in = 6;
- Specified by:
getInCount
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The count of in.
-
getIn
public float getIn(int index)
In specifies that this field must be equal to one of the specified values
repeated float in = 6;
- Specified by:
getIn
in interfaceValidate.FloatRulesOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The in at the given index.
-
setIn
public Validate.FloatRules.Builder setIn(int index, float value)
In specifies that this field must be equal to one of the specified values
repeated float in = 6;
- Parameters:
index
- The index to set the value at.value
- The in to set.- Returns:
- This builder for chaining.
-
addIn
public Validate.FloatRules.Builder addIn(float value)
In specifies that this field must be equal to one of the specified values
repeated float in = 6;
- Parameters:
value
- The in to add.- Returns:
- This builder for chaining.
-
addAllIn
public Validate.FloatRules.Builder addAllIn(java.lang.Iterable<? extends java.lang.Float> values)
In specifies that this field must be equal to one of the specified values
repeated float in = 6;
- Parameters:
values
- The in to add.- Returns:
- This builder for chaining.
-
clearIn
public Validate.FloatRules.Builder clearIn()
In specifies that this field must be equal to one of the specified values
repeated float in = 6;
- Returns:
- This builder for chaining.
-
ensureNotInIsMutable
private void ensureNotInIsMutable()
-
ensureNotInIsMutable
private void ensureNotInIsMutable(int capacity)
-
getNotInList
public java.util.List<java.lang.Float> getNotInList()
NotIn specifies that this field cannot be equal to one of the specified values
repeated float not_in = 7;
- Specified by:
getNotInList
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- A list containing the notIn.
-
getNotInCount
public int getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified values
repeated float not_in = 7;
- Specified by:
getNotInCount
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The count of notIn.
-
getNotIn
public float getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified values
repeated float not_in = 7;
- Specified by:
getNotIn
in interfaceValidate.FloatRulesOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The notIn at the given index.
-
setNotIn
public Validate.FloatRules.Builder setNotIn(int index, float value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated float not_in = 7;
- Parameters:
index
- The index to set the value at.value
- The notIn to set.- Returns:
- This builder for chaining.
-
addNotIn
public Validate.FloatRules.Builder addNotIn(float value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated float not_in = 7;
- Parameters:
value
- The notIn to add.- Returns:
- This builder for chaining.
-
addAllNotIn
public Validate.FloatRules.Builder addAllNotIn(java.lang.Iterable<? extends java.lang.Float> values)
NotIn specifies that this field cannot be equal to one of the specified values
repeated float not_in = 7;
- Parameters:
values
- The notIn to add.- Returns:
- This builder for chaining.
-
clearNotIn
public Validate.FloatRules.Builder clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified values
repeated float not_in = 7;
- Returns:
- This builder for chaining.
-
hasIgnoreEmpty
public boolean hasIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 8;
- Specified by:
hasIgnoreEmpty
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- Whether the ignoreEmpty field is set.
-
getIgnoreEmpty
public boolean getIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 8;
- Specified by:
getIgnoreEmpty
in interfaceValidate.FloatRulesOrBuilder
- Returns:
- The ignoreEmpty.
-
setIgnoreEmpty
public Validate.FloatRules.Builder setIgnoreEmpty(boolean value)
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 8;
- Parameters:
value
- The ignoreEmpty to set.- Returns:
- This builder for chaining.
-
clearIgnoreEmpty
public Validate.FloatRules.Builder clearIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 8;
- Returns:
- This builder for chaining.
-
-