Package io.envoyproxy.pgv.validate
Class Validate.EnumRules.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>
-
- io.envoyproxy.pgv.validate.Validate.EnumRules.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.EnumRulesOrBuilder,java.lang.Cloneable
- Enclosing class:
- Validate.EnumRules
public static final class Validate.EnumRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder> implements Validate.EnumRulesOrBuilder
EnumRules describe the constraints applied to enum values
Protobuf typevalidate.EnumRules
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.EnumRules.BuilderaddAllIn(java.lang.Iterable<? extends java.lang.Integer> values)In specifies that this field must be equal to one of the specified valuesValidate.EnumRules.BuilderaddAllNotIn(java.lang.Iterable<? extends java.lang.Integer> values)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.EnumRules.BuilderaddIn(int value)In specifies that this field must be equal to one of the specified valuesValidate.EnumRules.BuilderaddNotIn(int value)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.EnumRules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Validate.EnumRulesbuild()Validate.EnumRulesbuildPartial()Validate.EnumRules.Builderclear()Validate.EnumRules.BuilderclearConst()Const specifies that this field must be exactly the specified valueValidate.EnumRules.BuilderclearDefinedOnly()DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.Validate.EnumRules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Validate.EnumRules.BuilderclearIn()In specifies that this field must be equal to one of the specified valuesValidate.EnumRules.BuilderclearNotIn()NotIn specifies that this field cannot be equal to one of the specified valuesValidate.EnumRules.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Validate.EnumRules.Builderclone()intgetConst()Const specifies that this field must be exactly the specified valueValidate.EnumRulesgetDefaultInstanceForType()booleangetDefinedOnly()DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetIn(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.Integer>getInList()In specifies that this field must be equal to one of the specified valuesintgetNotIn(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.Integer>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 valuebooleanhasDefinedOnly()DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Validate.EnumRules.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Validate.EnumRules.BuildermergeFrom(com.google.protobuf.Message other)Validate.EnumRules.BuildermergeFrom(Validate.EnumRules other)Validate.EnumRules.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Validate.EnumRules.BuildersetConst(int value)Const specifies that this field must be exactly the specified valueValidate.EnumRules.BuildersetDefinedOnly(boolean value)DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.Validate.EnumRules.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Validate.EnumRules.BuildersetIn(int index, int value)In specifies that this field must be equal to one of the specified valuesValidate.EnumRules.BuildersetNotIn(int index, int value)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.EnumRules.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Validate.EnumRules.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.EnumRules.Builder>
-
clear
public Validate.EnumRules.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.EnumRules.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.EnumRules.Builder>
-
getDefaultInstanceForType
public Validate.EnumRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.EnumRules build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.EnumRules buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Validate.EnumRules.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.EnumRules.Builder>
-
setField
public Validate.EnumRules.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.EnumRules.Builder>
-
clearField
public Validate.EnumRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>
-
clearOneof
public Validate.EnumRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>
-
setRepeatedField
public Validate.EnumRules.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.EnumRules.Builder>
-
addRepeatedField
public Validate.EnumRules.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.EnumRules.Builder>
-
mergeFrom
public Validate.EnumRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.EnumRules.Builder>
-
mergeFrom
public Validate.EnumRules.Builder mergeFrom(Validate.EnumRules other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>
-
mergeFrom
public Validate.EnumRules.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.EnumRules.Builder>- Throws:
java.io.IOException
-
hasConst
public boolean hasConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1;- Specified by:
hasConstin interfaceValidate.EnumRulesOrBuilder- Returns:
- Whether the const field is set.
-
getConst
public int getConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1;- Specified by:
getConstin interfaceValidate.EnumRulesOrBuilder- Returns:
- The const.
-
setConst
public Validate.EnumRules.Builder setConst(int value)
Const specifies that this field must be exactly the specified value
optional int32 const = 1;- Parameters:
value- The const to set.- Returns:
- This builder for chaining.
-
clearConst
public Validate.EnumRules.Builder clearConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1;- Returns:
- This builder for chaining.
-
hasDefinedOnly
public boolean hasDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;- Specified by:
hasDefinedOnlyin interfaceValidate.EnumRulesOrBuilder- Returns:
- Whether the definedOnly field is set.
-
getDefinedOnly
public boolean getDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;- Specified by:
getDefinedOnlyin interfaceValidate.EnumRulesOrBuilder- Returns:
- The definedOnly.
-
setDefinedOnly
public Validate.EnumRules.Builder setDefinedOnly(boolean value)
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;- Parameters:
value- The definedOnly to set.- Returns:
- This builder for chaining.
-
clearDefinedOnly
public Validate.EnumRules.Builder clearDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;- Returns:
- This builder for chaining.
-
getInList
public java.util.List<java.lang.Integer> getInList()
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;- Specified by:
getInListin interfaceValidate.EnumRulesOrBuilder- 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 int32 in = 3;- Specified by:
getInCountin interfaceValidate.EnumRulesOrBuilder- 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 int32 in = 3;- Specified by:
getInin interfaceValidate.EnumRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The in at the given index.
-
setIn
public Validate.EnumRules.Builder setIn(int index, int value)
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;- Parameters:
index- The index to set the value at.value- The in to set.- Returns:
- This builder for chaining.
-
addIn
public Validate.EnumRules.Builder addIn(int value)
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;- Parameters:
value- The in to add.- Returns:
- This builder for chaining.
-
addAllIn
public Validate.EnumRules.Builder addAllIn(java.lang.Iterable<? extends java.lang.Integer> values)
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;- Parameters:
values- The in to add.- Returns:
- This builder for chaining.
-
clearIn
public Validate.EnumRules.Builder clearIn()
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;- Returns:
- This builder for chaining.
-
getNotInList
public java.util.List<java.lang.Integer> getNotInList()
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;- Specified by:
getNotInListin interfaceValidate.EnumRulesOrBuilder- 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 int32 not_in = 4;- Specified by:
getNotInCountin interfaceValidate.EnumRulesOrBuilder- 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 int32 not_in = 4;- Specified by:
getNotInin interfaceValidate.EnumRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notIn at the given index.
-
setNotIn
public Validate.EnumRules.Builder setNotIn(int index, int value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;- Parameters:
index- The index to set the value at.value- The notIn to set.- Returns:
- This builder for chaining.
-
addNotIn
public Validate.EnumRules.Builder addNotIn(int value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;- Parameters:
value- The notIn to add.- Returns:
- This builder for chaining.
-
addAllNotIn
public Validate.EnumRules.Builder addAllNotIn(java.lang.Iterable<? extends java.lang.Integer> values)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;- Parameters:
values- The notIn to add.- Returns:
- This builder for chaining.
-
clearNotIn
public Validate.EnumRules.Builder clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Validate.EnumRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>
-
mergeUnknownFields
public final Validate.EnumRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>
-
-