Package io.envoyproxy.pgv.validate
Class Validate.Fixed32Rules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Validate.Fixed32Rules.Builder>
io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Validate.Fixed32RulesOrBuilder
,Cloneable
- Enclosing class:
- Validate.Fixed32Rules
public static final class Validate.Fixed32Rules.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Validate.Fixed32Rules.Builder>
implements Validate.Fixed32RulesOrBuilder
Fixed32Rules describes the constraints applied to `fixed32` valuesProtobuf type
validate.Fixed32Rules
-
Method Summary
Modifier and TypeMethodDescriptionIn specifies that this field must be equal to one of the specified valuesaddAllNotIn
(Iterable<? extends Integer> values) NotIn specifies that this field cannot be equal to one of the specified valuesaddIn
(int value) In specifies that this field must be equal to one of the specified valuesaddNotIn
(int value) NotIn specifies that this field cannot be equal to one of the specified valuesbuild()
clear()
Const specifies that this field must be exactly the specified valueclearGt()
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 valuesint
getConst()
Const specifies that this field must be exactly the specified valuestatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getGt()
Gt specifies that this field must be greater than the specified value, exclusive.int
getGte()
Gte specifies that this field must be greater than or equal to the specified value, inclusive.boolean
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyint
getIn
(int index) In specifies that this field must be equal to one of the specified valuesint
In 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 valuesint
getLt()
Lt specifies that this field must be less than the specified value, exclusiveint
getLte()
Lte specifies that this field must be less than or equal to the specified value, inclusiveint
getNotIn
(int index) NotIn specifies that this field cannot be equal to one of the specified valuesint
NotIn 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 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
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
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Validate.Fixed32Rules other) setConst
(int value) Const specifies that this field must be exactly the specified valuesetGt
(int value) Gt specifies that this field must be greater than the specified value, exclusive.setGte
(int 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, int value) In specifies that this field must be equal to one of the specified valuessetLt
(int value) Lt specifies that this field must be less than the specified value, exclusivesetLte
(int value) Lte specifies that this field must be less than or equal to the specified value, inclusivesetNotIn
(int index, int value) NotIn specifies that this field cannot be equal to one of the specified valuesMethods 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.Fixed32Rules.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.Fixed32Rules.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.Fixed32Rules.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.Fixed32Rules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.Fixed32Rules.Builder>
-
mergeFrom
public Validate.Fixed32Rules.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<Validate.Fixed32Rules.Builder>
- Throws:
IOException
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional fixed32 const = 1;
- Specified by:
hasConst
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- Whether the const field is set.
-
getConst
public int getConst()Const specifies that this field must be exactly the specified value
optional fixed32 const = 1;
- Specified by:
getConst
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- The const.
-
setConst
Const specifies that this field must be exactly the specified value
optional fixed32 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 fixed32 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 fixed32 lt = 2;
- Specified by:
hasLt
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- Whether the lt field is set.
-
getLt
public int getLt()Lt specifies that this field must be less than the specified value, exclusive
optional fixed32 lt = 2;
- Specified by:
getLt
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- The lt.
-
setLt
Lt specifies that this field must be less than the specified value, exclusive
optional fixed32 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 fixed32 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 fixed32 lte = 3;
- Specified by:
hasLte
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- Whether the lte field is set.
-
getLte
public int getLte()Lte specifies that this field must be less than or equal to the specified value, inclusive
optional fixed32 lte = 3;
- Specified by:
getLte
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- The lte.
-
setLte
Lte specifies that this field must be less than or equal to the specified value, inclusive
optional fixed32 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 fixed32 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 fixed32 gt = 4;
- Specified by:
hasGt
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- Whether the gt field is set.
-
getGt
public int 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 fixed32 gt = 4;
- Specified by:
getGt
in interfaceValidate.Fixed32RulesOrBuilder
- 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 fixed32 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 fixed32 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 fixed32 gte = 5;
- Specified by:
hasGte
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- Whether the gte field is set.
-
getGte
public int 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 fixed32 gte = 5;
- Specified by:
getGte
in interfaceValidate.Fixed32RulesOrBuilder
- 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 fixed32 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 fixed32 gte = 5;
- Returns:
- This builder for chaining.
-
getInList
In specifies that this field must be equal to one of the specified values
repeated fixed32 in = 6;
- Specified by:
getInList
in interfaceValidate.Fixed32RulesOrBuilder
- 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 fixed32 in = 6;
- Specified by:
getInCount
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- The count of in.
-
getIn
public int getIn(int index) In specifies that this field must be equal to one of the specified values
repeated fixed32 in = 6;
- Specified by:
getIn
in interfaceValidate.Fixed32RulesOrBuilder
- 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 fixed32 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 fixed32 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 fixed32 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 fixed32 in = 6;
- Returns:
- This builder for chaining.
-
getNotInList
NotIn specifies that this field cannot be equal to one of the specified values
repeated fixed32 not_in = 7;
- Specified by:
getNotInList
in interfaceValidate.Fixed32RulesOrBuilder
- 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 fixed32 not_in = 7;
- Specified by:
getNotInCount
in interfaceValidate.Fixed32RulesOrBuilder
- Returns:
- The count of notIn.
-
getNotIn
public int getNotIn(int index) NotIn specifies that this field cannot be equal to one of the specified values
repeated fixed32 not_in = 7;
- Specified by:
getNotIn
in interfaceValidate.Fixed32RulesOrBuilder
- 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 fixed32 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 fixed32 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 fixed32 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 fixed32 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.Fixed32RulesOrBuilder
- 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.Fixed32RulesOrBuilder
- 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.
-