Package io.envoyproxy.pgv.validate
Interface Validate.MapRulesOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Validate.MapRules
,Validate.MapRules.Builder
- Enclosing class:
- Validate
public static interface Validate.MapRulesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.FieldRules
getKeys()
Keys specifies the constraints to be applied to each key in the field.Validate.FieldRulesOrBuilder
getKeysOrBuilder()
Keys specifies the constraints to be applied to each key in the field.long
getMaxPairs()
MaxPairs specifies that this field must have the specified number of KVs at a maximumlong
getMinPairs()
MinPairs specifies that this field must have the specified number of KVs at a minimumboolean
getNoSparse()
NoSparse specifies values in this field cannot be unset.Validate.FieldRules
getValues()
Values specifies the constraints to be applied to the value of each key in the field.Validate.FieldRulesOrBuilder
getValuesOrBuilder()
Values specifies the constraints to be applied to the value of each key in the field.boolean
hasIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyboolean
hasKeys()
Keys specifies the constraints to be applied to each key in the field.boolean
hasMaxPairs()
MaxPairs specifies that this field must have the specified number of KVs at a maximumboolean
hasMinPairs()
MinPairs specifies that this field must have the specified number of KVs at a minimumboolean
hasNoSparse()
NoSparse specifies values in this field cannot be unset.boolean
hasValues()
Values specifies the constraints to be applied to the value of each key in the field.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasMinPairs
boolean hasMinPairs()
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;
- Returns:
- Whether the minPairs field is set.
-
getMinPairs
long getMinPairs()
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;
- Returns:
- The minPairs.
-
hasMaxPairs
boolean hasMaxPairs()
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;
- Returns:
- Whether the maxPairs field is set.
-
getMaxPairs
long getMaxPairs()
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;
- Returns:
- The maxPairs.
-
hasNoSparse
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;
- Returns:
- Whether the noSparse field is set.
-
getNoSparse
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;
- Returns:
- The noSparse.
-
hasKeys
boolean hasKeys()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
- Returns:
- Whether the keys field is set.
-
getKeys
Validate.FieldRules getKeys()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
- Returns:
- The keys.
-
getKeysOrBuilder
Validate.FieldRulesOrBuilder getKeysOrBuilder()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
-
hasValues
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;
- Returns:
- Whether the values field is set.
-
getValues
Validate.FieldRules 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;
- Returns:
- The values.
-
getValuesOrBuilder
Validate.FieldRulesOrBuilder 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;
-
hasIgnoreEmpty
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;
- Returns:
- Whether the ignoreEmpty field is set.
-
getIgnoreEmpty
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;
- Returns:
- The ignoreEmpty.
-
-