Package io.envoyproxy.pgv.validate
Class Validate.MapRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
io.envoyproxy.pgv.validate.Validate.MapRules.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.MapRulesOrBuilder,Cloneable
- Enclosing class:
- Validate.MapRules
public static final class Validate.MapRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder> implements Validate.MapRulesOrBuilder
MapRules describe the constraints applied to `map` valuesProtobuf type
validate.MapRules-
Method Summary
Modifier and Type Method Description Validate.MapRules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Validate.MapRulesbuild()Validate.MapRulesbuildPartial()Validate.MapRules.Builderclear()Validate.MapRules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Validate.MapRules.BuilderclearKeys()Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.BuilderclearMaxPairs()MaxPairs specifies that this field must have the specified number of KVs at a maximumValidate.MapRules.BuilderclearMinPairs()MinPairs specifies that this field must have the specified number of KVs at a minimumValidate.MapRules.BuilderclearNoSparse()NoSparse specifies values in this field cannot be unset.Validate.MapRules.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Validate.MapRules.BuilderclearValues()Values specifies the constraints to be applied to the value of each key in the field.Validate.MapRules.Builderclone()Validate.MapRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Validate.FieldRulesgetKeys()Keys specifies the constraints to be applied to each key in the field.Validate.FieldRules.BuildergetKeysBuilder()Keys specifies the constraints to be applied to each key in the field.Validate.FieldRulesOrBuildergetKeysOrBuilder()Keys specifies the constraints to be applied to each key in the field.longgetMaxPairs()MaxPairs specifies that this field must have the specified number of KVs at a maximumlonggetMinPairs()MinPairs specifies that this field must have the specified number of KVs at a minimumbooleangetNoSparse()NoSparse specifies values in this field cannot be unset.Validate.FieldRulesgetValues()Values specifies the constraints to be applied to the value of each key in the field.Validate.FieldRules.BuildergetValuesBuilder()Values specifies the constraints to be applied to the value of each key in the field.Validate.FieldRulesOrBuildergetValuesOrBuilder()Values specifies the constraints to be applied to the value of each key in the field.booleanhasKeys()Keys specifies the constraints to be applied to each key in the field.booleanhasMaxPairs()MaxPairs specifies that this field must have the specified number of KVs at a maximumbooleanhasMinPairs()MinPairs specifies that this field must have the specified number of KVs at a minimumbooleanhasNoSparse()NoSparse specifies values in this field cannot be unset.booleanhasValues()Values specifies the constraints to be applied to the value of each key in the field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Validate.MapRules.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Validate.MapRules.BuildermergeFrom(com.google.protobuf.Message other)Validate.MapRules.BuildermergeFrom(Validate.MapRules other)Validate.MapRules.BuildermergeKeys(Validate.FieldRules value)Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Validate.MapRules.BuildermergeValues(Validate.FieldRules value)Values specifies the constraints to be applied to the value of each key in the field.Validate.MapRules.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Validate.MapRules.BuildersetKeys(Validate.FieldRules value)Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.BuildersetKeys(Validate.FieldRules.Builder builderForValue)Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.BuildersetMaxPairs(long value)MaxPairs specifies that this field must have the specified number of KVs at a maximumValidate.MapRules.BuildersetMinPairs(long value)MinPairs specifies that this field must have the specified number of KVs at a minimumValidate.MapRules.BuildersetNoSparse(boolean value)NoSparse specifies values in this field cannot be unset.Validate.MapRules.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Validate.MapRules.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Validate.MapRules.BuildersetValues(Validate.FieldRules value)Values specifies the constraints to be applied to the value of each key in the field.Validate.MapRules.BuildersetValues(Validate.FieldRules.Builder builderForValue)Values specifies the constraints to be applied to the value of each key in the field.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.MapRules.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.MapRules.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.MapRules.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.MapRules.Builder>
-
setField
public Validate.MapRules.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.MapRules.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-
setRepeatedField
public Validate.MapRules.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.MapRules.Builder>
-
addRepeatedField
public Validate.MapRules.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.MapRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-
mergeFrom
public Validate.MapRules.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.MapRules.Builder>- Throws:
IOException
-
hasMinPairs
public boolean hasMinPairs()MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;- Specified by:
hasMinPairsin interfaceValidate.MapRulesOrBuilder
-
getMinPairs
public long getMinPairs()MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;- Specified by:
getMinPairsin interfaceValidate.MapRulesOrBuilder
-
setMinPairs
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1; -
clearMinPairs
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1; -
hasMaxPairs
public boolean hasMaxPairs()MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;- Specified by:
hasMaxPairsin interfaceValidate.MapRulesOrBuilder
-
getMaxPairs
public long getMaxPairs()MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;- Specified by:
getMaxPairsin interfaceValidate.MapRulesOrBuilder
-
setMaxPairs
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2; -
clearMaxPairs
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2; -
hasNoSparse
public boolean hasNoSparse()NoSparse specifies values in this field cannot be unset. This only applies to map's with message value types.
optional bool no_sparse = 3;- Specified by:
hasNoSparsein interfaceValidate.MapRulesOrBuilder
-
getNoSparse
public boolean getNoSparse()NoSparse specifies values in this field cannot be unset. This only applies to map's with message value types.
optional bool no_sparse = 3;- Specified by:
getNoSparsein interfaceValidate.MapRulesOrBuilder
-
setNoSparse
NoSparse specifies values in this field cannot be unset. This only applies to map's with message value types.
optional bool no_sparse = 3; -
clearNoSparse
NoSparse specifies values in this field cannot be unset. This only applies to map's with message value types.
optional bool no_sparse = 3; -
hasKeys
public boolean hasKeys()Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;- Specified by:
hasKeysin interfaceValidate.MapRulesOrBuilder
-
getKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;- Specified by:
getKeysin interfaceValidate.MapRulesOrBuilder
-
setKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4; -
setKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4; -
mergeKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4; -
clearKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4; -
getKeysBuilder
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4; -
getKeysOrBuilder
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;- Specified by:
getKeysOrBuilderin interfaceValidate.MapRulesOrBuilder
-
hasValues
public boolean hasValues()Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5;- Specified by:
hasValuesin interfaceValidate.MapRulesOrBuilder
-
getValues
Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5;- Specified by:
getValuesin interfaceValidate.MapRulesOrBuilder
-
setValues
Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5; -
setValues
Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5; -
mergeValues
Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5; -
clearValues
Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5; -
getValuesBuilder
Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5; -
getValuesOrBuilder
Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.
optional .validate.FieldRules values = 5;- Specified by:
getValuesOrBuilderin interfaceValidate.MapRulesOrBuilder
-
setUnknownFields
public final Validate.MapRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-
mergeUnknownFields
public final Validate.MapRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-