Package io.envoyproxy.pgv.validate
Class Validate.MapRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Validate.MapRules.Builder>
implements Validate.MapRulesOrBuilder
MapRules describe the constraints applied to `map` valuesProtobuf type
validate.MapRules
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
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.Values specifies the constraints to be applied to the value of each key in the field.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
IgnoreEmpty 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.long
MaxPairs specifies that this field must have the specified number of KVs at a maximumlong
MinPairs specifies that this field must have the specified number of KVs at a minimumboolean
NoSparse 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.boolean
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
MaxPairs specifies that this field must have the specified number of KVs at a maximumboolean
MinPairs specifies that this field must have the specified number of KVs at a minimumboolean
NoSparse specifies values in this field cannot be unset.boolean
Values specifies the constraints to be applied to the value of each key in the field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(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.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.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.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.MapRules.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.MapRules.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.MapRules.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.MapRules.Builder>
-
mergeFrom
public Validate.MapRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMinPairs
in 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:
getMinPairs
in 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:
hasMaxPairs
in 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:
getMaxPairs
in 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:
hasNoSparse
in 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:
getNoSparse
in 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:
hasKeys
in 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:
getKeys
in 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:
getKeysOrBuilder
in 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:
hasValues
in 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:
getValues
in 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:
getValuesOrBuilder
in 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:
hasIgnoreEmpty
in 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:
getIgnoreEmpty
in 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.
-