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.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,java.lang.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` values
Protobuf typevalidate.MapRules
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.MapRules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Validate.MapRulesbuild()Validate.MapRulesbuildPartial()Validate.MapRules.Builderclear()Validate.MapRules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Validate.MapRules.BuilderclearIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.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()booleangetIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.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.booleanhasIgnoreEmpty()IgnoreEmpty 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.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, java.lang.Object value)Validate.MapRules.BuildersetIgnoreEmpty(boolean value)IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.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, java.lang.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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
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
public 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
public Validate.MapRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.MapRules build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.MapRules buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Validate.MapRules.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, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-
clearField
public Validate.MapRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-
clearOneof
public Validate.MapRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
-
mergeFrom
public Validate.MapRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>
-
mergeFrom
public Validate.MapRules.Builder mergeFrom(Validate.MapRules other)
-
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 java.io.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:
java.io.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
public Validate.MapRules.Builder setMinPairs(long value)
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
public Validate.MapRules.Builder 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
public Validate.MapRules.Builder setMaxPairs(long value)
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
public Validate.MapRules.Builder 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
public Validate.MapRules.Builder setNoSparse(boolean value)
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
public Validate.MapRules.Builder 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
public Validate.FieldRules 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
public Validate.MapRules.Builder setKeys(Validate.FieldRules value)
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
-
setKeys
public Validate.MapRules.Builder setKeys(Validate.FieldRules.Builder builderForValue)
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
-
mergeKeys
public Validate.MapRules.Builder mergeKeys(Validate.FieldRules value)
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
-
clearKeys
public Validate.MapRules.Builder clearKeys()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
-
getKeysBuilder
public Validate.FieldRules.Builder getKeysBuilder()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;
-
getKeysOrBuilder
public Validate.FieldRulesOrBuilder 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
public 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;- Specified by:
getValuesin interfaceValidate.MapRulesOrBuilder- Returns:
- The values.
-
setValues
public Validate.MapRules.Builder setValues(Validate.FieldRules value)
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
public Validate.MapRules.Builder setValues(Validate.FieldRules.Builder builderForValue)
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
public Validate.MapRules.Builder mergeValues(Validate.FieldRules value)
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
public Validate.MapRules.Builder 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
public Validate.FieldRules.Builder 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
public 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;- 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
public Validate.MapRules.Builder setIgnoreEmpty(boolean value)
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
public Validate.MapRules.Builder 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>
-
-