Package io.envoyproxy.pgv.validate
Class Validate.EnumRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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,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 valuesProtobuf type
validate.EnumRules-
Method Summary
Modifier and Type Method Description Validate.EnumRules.BuilderaddAllIn(Iterable<? extends Integer> values)In specifies that this field must be equal to one of the specified valuesValidate.EnumRules.BuilderaddAllNotIn(Iterable<? extends 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, 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 valuesList<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 valuesList<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, 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, 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, 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, newUninitializedMessageException
-
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.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
- 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.EnumRules.Builder>
-
setField
public Validate.EnumRules.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.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, 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, Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.EnumRules.Builder>
-
mergeFrom
-
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 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:
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
-
getConst
public int getConst()Const specifies that this field must be exactly the specified value
optional int32 const = 1;- Specified by:
getConstin interfaceValidate.EnumRulesOrBuilder
-
setConst
Const specifies that this field must be exactly the specified value
optional int32 const = 1; -
clearConst
Const specifies that this field must be exactly the specified value
optional int32 const = 1; -
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
-
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
-
setDefinedOnly
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; -
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; -
getInList
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;- Specified by:
getInListin interfaceValidate.EnumRulesOrBuilder
-
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
-
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
-
setIn
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3; -
addIn
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3; -
addAllIn
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3; -
clearIn
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3; -
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
-
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
-
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
-
setNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4; -
addNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4; -
addAllNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4; -
clearNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4; -
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>
-