Class Validate.MapRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>
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-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate Validate.FieldRulesprivate com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> private longprivate longprivate booleanprivate Validate.FieldRulesprivate com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(Validate.MapRules result) 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.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.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> Keys specifies the constraints to be applied to each key in the field.private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> Values specifies the constraints to be applied to the value of each key in the field.final booleanprivate voidmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods 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
-
Field Details
-
bitField0_
private int bitField0_ -
minPairs_
private long minPairs_ -
maxPairs_
private long maxPairs_ -
noSparse_
private boolean noSparse_ -
keys_
-
keysBuilder_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> keysBuilder_ -
values_
-
valuesBuilder_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> valuesBuilder_ -
ignoreEmpty_
private boolean ignoreEmpty_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Validate.MapRules.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.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
-
buildPartial0
-
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.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:
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
-
internalGetKeysFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> internalGetKeysFieldBuilder()Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4; -
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
-
internalGetValuesFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> internalGetValuesFieldBuilder()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
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.
-