Package io.envoyproxy.pgv.validate
Class Validate.Int64Rules.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
- io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.Int64RulesOrBuilder,java.lang.Cloneable
- Enclosing class:
- Validate.Int64Rules
public static final class Validate.Int64Rules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder> implements Validate.Int64RulesOrBuilder
Int64Rules describes the constraints applied to `int64` values
Protobuf typevalidate.Int64Rules
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.Int64Rules.BuilderaddAllIn(java.lang.Iterable<? extends java.lang.Long> values)In specifies that this field must be equal to one of the specified valuesValidate.Int64Rules.BuilderaddAllNotIn(java.lang.Iterable<? extends java.lang.Long> values)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.Int64Rules.BuilderaddIn(long value)In specifies that this field must be equal to one of the specified valuesValidate.Int64Rules.BuilderaddNotIn(long value)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.Int64Rules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Validate.Int64Rulesbuild()Validate.Int64RulesbuildPartial()Validate.Int64Rules.Builderclear()Validate.Int64Rules.BuilderclearConst()Const specifies that this field must be exactly the specified valueValidate.Int64Rules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Validate.Int64Rules.BuilderclearGt()Gt specifies that this field must be greater than the specified value, exclusive.Validate.Int64Rules.BuilderclearGte()Gte specifies that this field must be greater than or equal to the specified value, inclusive.Validate.Int64Rules.BuilderclearIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.Int64Rules.BuilderclearIn()In specifies that this field must be equal to one of the specified valuesValidate.Int64Rules.BuilderclearLt()Lt specifies that this field must be less than the specified value, exclusiveValidate.Int64Rules.BuilderclearLte()Lte specifies that this field must be less than or equal to the specified value, inclusiveValidate.Int64Rules.BuilderclearNotIn()NotIn specifies that this field cannot be equal to one of the specified valuesValidate.Int64Rules.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Validate.Int64Rules.Builderclone()longgetConst()Const specifies that this field must be exactly the specified valueValidate.Int64RulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetGt()Gt specifies that this field must be greater than the specified value, exclusive.longgetGte()Gte specifies that this field must be greater than or equal to the specified value, inclusive.booleangetIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptylonggetIn(int index)In specifies that this field must be equal to one of the specified valuesintgetInCount()In specifies that this field must be equal to one of the specified valuesjava.util.List<java.lang.Long>getInList()In specifies that this field must be equal to one of the specified valueslonggetLt()Lt specifies that this field must be less than the specified value, exclusivelonggetLte()Lte specifies that this field must be less than or equal to the specified value, inclusivelonggetNotIn(int index)NotIn specifies that this field cannot be equal to one of the specified valuesintgetNotInCount()NotIn specifies that this field cannot be equal to one of the specified valuesjava.util.List<java.lang.Long>getNotInList()NotIn 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.booleanhasIgnoreEmpty()IgnoreEmpty 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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Validate.Int64Rules.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Validate.Int64Rules.BuildermergeFrom(com.google.protobuf.Message other)Validate.Int64Rules.BuildermergeFrom(Validate.Int64Rules other)Validate.Int64Rules.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Validate.Int64Rules.BuildersetConst(long value)Const specifies that this field must be exactly the specified valueValidate.Int64Rules.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Validate.Int64Rules.BuildersetGt(long value)Gt specifies that this field must be greater than the specified value, exclusive.Validate.Int64Rules.BuildersetGte(long value)Gte specifies that this field must be greater than or equal to the specified value, inclusive.Validate.Int64Rules.BuildersetIgnoreEmpty(boolean value)IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.Int64Rules.BuildersetIn(int index, long value)In specifies that this field must be equal to one of the specified valuesValidate.Int64Rules.BuildersetLt(long value)Lt specifies that this field must be less than the specified value, exclusiveValidate.Int64Rules.BuildersetLte(long value)Lte specifies that this field must be less than or equal to the specified value, inclusiveValidate.Int64Rules.BuildersetNotIn(int index, long value)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.Int64Rules.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Validate.Int64Rules.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<Validate.Int64Rules.Builder>
-
clear
public Validate.Int64Rules.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.Int64Rules.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.Int64Rules.Builder>
-
getDefaultInstanceForType
public Validate.Int64Rules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.Int64Rules build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.Int64Rules buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Validate.Int64Rules.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.Int64Rules.Builder>
-
setField
public Validate.Int64Rules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
clearField
public Validate.Int64Rules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
clearOneof
public Validate.Int64Rules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
setRepeatedField
public Validate.Int64Rules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
addRepeatedField
public Validate.Int64Rules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
mergeFrom
public Validate.Int64Rules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.Int64Rules.Builder>
-
mergeFrom
public Validate.Int64Rules.Builder mergeFrom(Validate.Int64Rules other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
mergeFrom
public Validate.Int64Rules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.Int64Rules.Builder>- Throws:
java.io.IOException
-
hasConst
public boolean hasConst()
Const specifies that this field must be exactly the specified value
optional int64 const = 1;- Specified by:
hasConstin interfaceValidate.Int64RulesOrBuilder- Returns:
- Whether the const field is set.
-
getConst
public long getConst()
Const specifies that this field must be exactly the specified value
optional int64 const = 1;- Specified by:
getConstin interfaceValidate.Int64RulesOrBuilder- Returns:
- The const.
-
setConst
public Validate.Int64Rules.Builder setConst(long value)
Const specifies that this field must be exactly the specified value
optional int64 const = 1;- Parameters:
value- The const to set.- Returns:
- This builder for chaining.
-
clearConst
public Validate.Int64Rules.Builder clearConst()
Const specifies that this field must be exactly the specified value
optional int64 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 int64 lt = 2;- Specified by:
hasLtin interfaceValidate.Int64RulesOrBuilder- Returns:
- Whether the lt field is set.
-
getLt
public long getLt()
Lt specifies that this field must be less than the specified value, exclusive
optional int64 lt = 2;- Specified by:
getLtin interfaceValidate.Int64RulesOrBuilder- Returns:
- The lt.
-
setLt
public Validate.Int64Rules.Builder setLt(long value)
Lt specifies that this field must be less than the specified value, exclusive
optional int64 lt = 2;- Parameters:
value- The lt to set.- Returns:
- This builder for chaining.
-
clearLt
public Validate.Int64Rules.Builder clearLt()
Lt specifies that this field must be less than the specified value, exclusive
optional int64 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 int64 lte = 3;- Specified by:
hasLtein interfaceValidate.Int64RulesOrBuilder- Returns:
- Whether the lte field is set.
-
getLte
public long getLte()
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional int64 lte = 3;- Specified by:
getLtein interfaceValidate.Int64RulesOrBuilder- Returns:
- The lte.
-
setLte
public Validate.Int64Rules.Builder setLte(long value)
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional int64 lte = 3;- Parameters:
value- The lte to set.- Returns:
- This builder for chaining.
-
clearLte
public Validate.Int64Rules.Builder clearLte()
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional int64 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 int64 gt = 4;- Specified by:
hasGtin interfaceValidate.Int64RulesOrBuilder- Returns:
- Whether the gt field is set.
-
getGt
public long 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 int64 gt = 4;- Specified by:
getGtin interfaceValidate.Int64RulesOrBuilder- Returns:
- The gt.
-
setGt
public Validate.Int64Rules.Builder setGt(long 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 int64 gt = 4;- Parameters:
value- The gt to set.- Returns:
- This builder for chaining.
-
clearGt
public Validate.Int64Rules.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 int64 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 int64 gte = 5;- Specified by:
hasGtein interfaceValidate.Int64RulesOrBuilder- Returns:
- Whether the gte field is set.
-
getGte
public long 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 int64 gte = 5;- Specified by:
getGtein interfaceValidate.Int64RulesOrBuilder- Returns:
- The gte.
-
setGte
public Validate.Int64Rules.Builder setGte(long 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 int64 gte = 5;- Parameters:
value- The gte to set.- Returns:
- This builder for chaining.
-
clearGte
public Validate.Int64Rules.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 int64 gte = 5;- Returns:
- This builder for chaining.
-
getInList
public java.util.List<java.lang.Long> getInList()
In specifies that this field must be equal to one of the specified values
repeated int64 in = 6;- Specified by:
getInListin interfaceValidate.Int64RulesOrBuilder- 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 int64 in = 6;- Specified by:
getInCountin interfaceValidate.Int64RulesOrBuilder- Returns:
- The count of in.
-
getIn
public long getIn(int index)
In specifies that this field must be equal to one of the specified values
repeated int64 in = 6;- Specified by:
getInin interfaceValidate.Int64RulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The in at the given index.
-
setIn
public Validate.Int64Rules.Builder setIn(int index, long value)
In specifies that this field must be equal to one of the specified values
repeated int64 in = 6;- Parameters:
index- The index to set the value at.value- The in to set.- Returns:
- This builder for chaining.
-
addIn
public Validate.Int64Rules.Builder addIn(long value)
In specifies that this field must be equal to one of the specified values
repeated int64 in = 6;- Parameters:
value- The in to add.- Returns:
- This builder for chaining.
-
addAllIn
public Validate.Int64Rules.Builder addAllIn(java.lang.Iterable<? extends java.lang.Long> values)
In specifies that this field must be equal to one of the specified values
repeated int64 in = 6;- Parameters:
values- The in to add.- Returns:
- This builder for chaining.
-
clearIn
public Validate.Int64Rules.Builder clearIn()
In specifies that this field must be equal to one of the specified values
repeated int64 in = 6;- Returns:
- This builder for chaining.
-
getNotInList
public java.util.List<java.lang.Long> getNotInList()
NotIn specifies that this field cannot be equal to one of the specified values
repeated int64 not_in = 7;- Specified by:
getNotInListin interfaceValidate.Int64RulesOrBuilder- 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 int64 not_in = 7;- Specified by:
getNotInCountin interfaceValidate.Int64RulesOrBuilder- Returns:
- The count of notIn.
-
getNotIn
public long getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int64 not_in = 7;- Specified by:
getNotInin interfaceValidate.Int64RulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notIn at the given index.
-
setNotIn
public Validate.Int64Rules.Builder setNotIn(int index, long value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int64 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.Int64Rules.Builder addNotIn(long value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int64 not_in = 7;- Parameters:
value- The notIn to add.- Returns:
- This builder for chaining.
-
addAllNotIn
public Validate.Int64Rules.Builder addAllNotIn(java.lang.Iterable<? extends java.lang.Long> values)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int64 not_in = 7;- Parameters:
values- The notIn to add.- Returns:
- This builder for chaining.
-
clearNotIn
public Validate.Int64Rules.Builder clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified values
repeated int64 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.Int64RulesOrBuilder- 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.Int64RulesOrBuilder- Returns:
- The ignoreEmpty.
-
setIgnoreEmpty
public Validate.Int64Rules.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.Int64Rules.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.
-
setUnknownFields
public final Validate.Int64Rules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
mergeUnknownFields
public final Validate.Int64Rules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.Int64Rules.Builder>
-
-