Package io.envoyproxy.pgv.validate
Class Validate.DoubleRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Validate.DoubleRules.Builder>
io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.DoubleRulesOrBuilder,Cloneable
- Enclosing class:
- Validate.DoubleRules
public static final class Validate.DoubleRules.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.DoubleRules.Builder>
implements Validate.DoubleRulesOrBuilder
DoubleRules describes the constraints applied to `double` valuesProtobuf type
validate.DoubleRules-
Method Summary
Modifier and TypeMethodDescriptionIn specifies that this field must be equal to one of the specified valuesaddAllNotIn(Iterable<? extends Double> values) NotIn specifies that this field cannot be equal to one of the specified valuesaddIn(double value) In specifies that this field must be equal to one of the specified valuesaddNotIn(double value) NotIn specifies that this field cannot be equal to one of the specified valuesaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Const specifies that this field must be exactly the specified valueclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearGt()Gt specifies that this field must be greater than the specified value, exclusive.clearGte()Gte specifies that this field must be greater than or equal to the specified value, inclusive.IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyclearIn()In specifies that this field must be equal to one of the specified valuesclearLt()Lt specifies that this field must be less than the specified value, exclusiveclearLte()Lte specifies that this field must be less than or equal to the specified value, inclusiveNotIn specifies that this field cannot be equal to one of the specified valuesclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()doublegetConst()Const specifies that this field must be exactly the specified valuestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoublegetGt()Gt specifies that this field must be greater than the specified value, exclusive.doublegetGte()Gte specifies that this field must be greater than or equal to the specified value, inclusive.booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptydoublegetIn(int index) In specifies that this field must be equal to one of the specified valuesintIn specifies that this field must be equal to one of the specified valuesIn specifies that this field must be equal to one of the specified valuesdoublegetLt()Lt specifies that this field must be less than the specified value, exclusivedoublegetLte()Lte specifies that this field must be less than or equal to the specified value, inclusivedoublegetNotIn(int index) NotIn specifies that this field cannot be equal to one of the specified valuesintNotIn specifies that this field cannot be equal to one of the specified valuesNotIn specifies that this field cannot be equal to one of the specified valuesbooleanhasConst()Const specifies that this field must be exactly the specified valuebooleanhasGt()Gt specifies that this field must be greater than the specified value, exclusive.booleanhasGte()Gte specifies that this field must be greater than or equal to the specified value, inclusive.booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptybooleanhasLt()Lt specifies that this field must be less than the specified value, exclusivebooleanhasLte()Lte specifies that this field must be less than or equal to the specified value, inclusiveprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Validate.DoubleRules other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setConst(double value) Const specifies that this field must be exactly the specified valuesetGt(double value) Gt specifies that this field must be greater than the specified value, exclusive.setGte(double value) Gte specifies that this field must be greater than or equal to the specified value, inclusive.setIgnoreEmpty(boolean value) IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptysetIn(int index, double value) In specifies that this field must be equal to one of the specified valuessetLt(double value) Lt specifies that this field must be less than the specified value, exclusivesetLte(double value) Lte specifies that this field must be less than or equal to the specified value, inclusivesetNotIn(int index, double value) NotIn specifies that this field cannot be equal to one of the specified valuessetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<Validate.DoubleRules.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<Validate.DoubleRules.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<Validate.DoubleRules.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<Validate.DoubleRules.Builder>
-
setField
public Validate.DoubleRules.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<Validate.DoubleRules.Builder>
-
clearField
public Validate.DoubleRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.DoubleRules.Builder>
-
clearOneof
public Validate.DoubleRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.DoubleRules.Builder>
-
setRepeatedField
public Validate.DoubleRules.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<Validate.DoubleRules.Builder>
-
addRepeatedField
public Validate.DoubleRules.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<Validate.DoubleRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.DoubleRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.DoubleRules.Builder>
-
mergeFrom
public Validate.DoubleRules.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<Validate.DoubleRules.Builder>- Throws:
IOException
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional double const = 1;- Specified by:
hasConstin interfaceValidate.DoubleRulesOrBuilder- Returns:
- Whether the const field is set.
-
getConst
public double getConst()Const specifies that this field must be exactly the specified value
optional double const = 1;- Specified by:
getConstin interfaceValidate.DoubleRulesOrBuilder- Returns:
- The const.
-
setConst
Const specifies that this field must be exactly the specified value
optional double const = 1;- Parameters:
value- The const to set.- Returns:
- This builder for chaining.
-
clearConst
Const specifies that this field must be exactly the specified value
optional double 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 double lt = 2;- Specified by:
hasLtin interfaceValidate.DoubleRulesOrBuilder- Returns:
- Whether the lt field is set.
-
getLt
public double getLt()Lt specifies that this field must be less than the specified value, exclusive
optional double lt = 2;- Specified by:
getLtin interfaceValidate.DoubleRulesOrBuilder- Returns:
- The lt.
-
setLt
Lt specifies that this field must be less than the specified value, exclusive
optional double lt = 2;- Parameters:
value- The lt to set.- Returns:
- This builder for chaining.
-
clearLt
Lt specifies that this field must be less than the specified value, exclusive
optional double 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 double lte = 3;- Specified by:
hasLtein interfaceValidate.DoubleRulesOrBuilder- Returns:
- Whether the lte field is set.
-
getLte
public double getLte()Lte specifies that this field must be less than or equal to the specified value, inclusive
optional double lte = 3;- Specified by:
getLtein interfaceValidate.DoubleRulesOrBuilder- Returns:
- The lte.
-
setLte
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional double lte = 3;- Parameters:
value- The lte to set.- Returns:
- This builder for chaining.
-
clearLte
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional double 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 double gt = 4;- Specified by:
hasGtin interfaceValidate.DoubleRulesOrBuilder- Returns:
- Whether the gt field is set.
-
getGt
public double 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 double gt = 4;- Specified by:
getGtin interfaceValidate.DoubleRulesOrBuilder- Returns:
- The gt.
-
setGt
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 double gt = 4;- Parameters:
value- The gt to set.- Returns:
- This builder for chaining.
-
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 double 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 double gte = 5;- Specified by:
hasGtein interfaceValidate.DoubleRulesOrBuilder- Returns:
- Whether the gte field is set.
-
getGte
public double 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 double gte = 5;- Specified by:
getGtein interfaceValidate.DoubleRulesOrBuilder- Returns:
- The gte.
-
setGte
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 double gte = 5;- Parameters:
value- The gte to set.- Returns:
- This builder for chaining.
-
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 double gte = 5;- Returns:
- This builder for chaining.
-
getInList
In specifies that this field must be equal to one of the specified values
repeated double in = 6;- Specified by:
getInListin interfaceValidate.DoubleRulesOrBuilder- 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 double in = 6;- Specified by:
getInCountin interfaceValidate.DoubleRulesOrBuilder- Returns:
- The count of in.
-
getIn
public double getIn(int index) In specifies that this field must be equal to one of the specified values
repeated double in = 6;- Specified by:
getInin interfaceValidate.DoubleRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The in at the given index.
-
setIn
In specifies that this field must be equal to one of the specified values
repeated double in = 6;- Parameters:
index- The index to set the value at.value- The in to set.- Returns:
- This builder for chaining.
-
addIn
In specifies that this field must be equal to one of the specified values
repeated double in = 6;- Parameters:
value- The in to add.- Returns:
- This builder for chaining.
-
addAllIn
In specifies that this field must be equal to one of the specified values
repeated double in = 6;- Parameters:
values- The in to add.- Returns:
- This builder for chaining.
-
clearIn
In specifies that this field must be equal to one of the specified values
repeated double in = 6;- Returns:
- This builder for chaining.
-
getNotInList
NotIn specifies that this field cannot be equal to one of the specified values
repeated double not_in = 7;- Specified by:
getNotInListin interfaceValidate.DoubleRulesOrBuilder- 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 double not_in = 7;- Specified by:
getNotInCountin interfaceValidate.DoubleRulesOrBuilder- Returns:
- The count of notIn.
-
getNotIn
public double getNotIn(int index) NotIn specifies that this field cannot be equal to one of the specified values
repeated double not_in = 7;- Specified by:
getNotInin interfaceValidate.DoubleRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notIn at the given index.
-
setNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated double not_in = 7;- Parameters:
index- The index to set the value at.value- The notIn to set.- Returns:
- This builder for chaining.
-
addNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated double not_in = 7;- Parameters:
value- The notIn to add.- Returns:
- This builder for chaining.
-
addAllNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated double not_in = 7;- Parameters:
values- The notIn to add.- Returns:
- This builder for chaining.
-
clearNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated double 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:
hasIgnoreEmptyin interfaceValidate.DoubleRulesOrBuilder- 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:
getIgnoreEmptyin interfaceValidate.DoubleRulesOrBuilder- Returns:
- The ignoreEmpty.
-
setIgnoreEmpty
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
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.
-
setUnknownFields
public final Validate.DoubleRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.DoubleRules.Builder>
-
mergeUnknownFields
public final Validate.DoubleRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.DoubleRules.Builder>
-