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 TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyKeys specifies the constraints to be applied to each key in the field.MaxPairs specifies that this field must have the specified number of KVs at a maximumMinPairs specifies that this field must have the specified number of KVs at a minimumNoSparse specifies values in this field cannot be unset.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Values specifies the constraints to be applied to the value of each key in the field.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptygetKeys()Keys specifies the constraints to be applied to each key in the field.Keys specifies the constraints to be applied to each key in the field.Keys specifies the constraints to be applied to each key in the field.longMaxPairs specifies that this field must have the specified number of KVs at a maximumlongMinPairs specifies that this field must have the specified number of KVs at a minimumbooleanNoSparse specifies values in this field cannot be unset.Values specifies the constraints to be applied to the value of each key in the field.Values specifies the constraints to be applied to the value of each key in the field.Values specifies the constraints to be applied to the value of each key in the field.booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptybooleanhasKeys()Keys specifies the constraints to be applied to each key in the field.booleanMaxPairs specifies that this field must have the specified number of KVs at a maximumbooleanMinPairs specifies that this field must have the specified number of KVs at a minimumbooleanNoSparse specifies values in this field cannot be unset.booleanValues specifies the constraints to be applied to the value of each key in the field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Validate.MapRules other) mergeKeys(Validate.FieldRules value) Keys specifies the constraints to be applied to each key in the field.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeValues(Validate.FieldRules value) Values specifies the constraints to be applied to the value of each key in the field.setIgnoreEmpty(boolean value) IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptysetKeys(Validate.FieldRules value) Keys specifies the constraints to be applied to each key in the field.setKeys(Validate.FieldRules.Builder builderForValue) Keys specifies the constraints to be applied to each key in the field.setMaxPairs(long value) MaxPairs specifies that this field must have the specified number of KVs at a maximumsetMinPairs(long value) MinPairs specifies that this field must have the specified number of KVs at a minimumsetNoSparse(boolean value) NoSparse specifies values in this field cannot be unset.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValues(Validate.FieldRules value) Values specifies the constraints to be applied to the value of each key in the field.setValues(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, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.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- Returns:
- Whether the minPairs field is set.
-
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- Returns:
- The minPairs.
-
setMinPairs
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;- Parameters:
value- The minPairs to set.- Returns:
- This builder for chaining.
-
clearMinPairs
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;- Returns:
- This builder for chaining.
-
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- Returns:
- Whether the maxPairs field is set.
-
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- Returns:
- The maxPairs.
-
setMaxPairs
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;- Parameters:
value- The maxPairs to set.- Returns:
- This builder for chaining.
-
clearMaxPairs
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;- Returns:
- This builder for chaining.
-
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- Returns:
- Whether the noSparse field is set.
-
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- Returns:
- The noSparse.
-
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;- Parameters:
value- The noSparse to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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- Returns:
- Whether the keys field is set.
-
getKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;- Specified by:
getKeysin interfaceValidate.MapRulesOrBuilder- Returns:
- The keys.
-
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- Returns:
- Whether the values field is set.
-
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- Returns:
- The values.
-
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
-
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 = 6;- Specified by:
hasIgnoreEmptyin interfaceValidate.MapRulesOrBuilder- 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 = 6;- Specified by:
getIgnoreEmptyin interfaceValidate.MapRulesOrBuilder- 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 = 6;- 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 = 6;- Returns:
- This builder for chaining.
-
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>
-