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
,java.lang.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` values
Protobuf typevalidate.MapRules
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private boolean
ignoreEmpty_
private Validate.FieldRules
keys_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder>
keysBuilder_
private long
maxPairs_
private long
minPairs_
private boolean
noSparse_
private Validate.FieldRules
values_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder>
valuesBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.MapRules
build()
Validate.MapRules
buildPartial()
private void
buildPartial0(Validate.MapRules result)
Validate.MapRules.Builder
clear()
Validate.MapRules.Builder
clearIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.MapRules.Builder
clearKeys()
Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.Builder
clearMaxPairs()
MaxPairs specifies that this field must have the specified number of KVs at a maximumValidate.MapRules.Builder
clearMinPairs()
MinPairs specifies that this field must have the specified number of KVs at a minimumValidate.MapRules.Builder
clearNoSparse()
NoSparse specifies values in this field cannot be unset.Validate.MapRules.Builder
clearValues()
Values specifies the constraints to be applied to the value of each key in the field.Validate.MapRules
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.FieldRules.Builder
getKeysBuilder()
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>
getKeysFieldBuilder()
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.FieldRules.Builder
getValuesBuilder()
Values specifies the constraints to be applied to the value of each key in the field.private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder>
getValuesFieldBuilder()
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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
Validate.MapRules.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Validate.MapRules.Builder
mergeFrom(com.google.protobuf.Message other)
Validate.MapRules.Builder
mergeFrom(Validate.MapRules other)
Validate.MapRules.Builder
mergeKeys(Validate.FieldRules value)
Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.Builder
mergeValues(Validate.FieldRules value)
Values specifies the constraints to be applied to the value of each key in the field.Validate.MapRules.Builder
setIgnoreEmpty(boolean value)
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.MapRules.Builder
setKeys(Validate.FieldRules value)
Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.Builder
setKeys(Validate.FieldRules.Builder builderForValue)
Keys specifies the constraints to be applied to each key in the field.Validate.MapRules.Builder
setMaxPairs(long value)
MaxPairs specifies that this field must have the specified number of KVs at a maximumValidate.MapRules.Builder
setMinPairs(long value)
MinPairs specifies that this field must have the specified number of KVs at a minimumValidate.MapRules.Builder
setNoSparse(boolean value)
NoSparse specifies values in this field cannot be unset.Validate.MapRules.Builder
setValues(Validate.FieldRules value)
Values specifies the constraints to be applied to the value of each key in the field.Validate.MapRules.Builder
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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
minPairs_
private long minPairs_
-
maxPairs_
private long maxPairs_
-
noSparse_
private boolean noSparse_
-
keys_
private Validate.FieldRules keys_
-
keysBuilder_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder> keysBuilder_
-
values_
private Validate.FieldRules values_
-
valuesBuilder_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder> valuesBuilder_
-
ignoreEmpty_
private boolean ignoreEmpty_
-
-
Method Detail
-
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>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public 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
public Validate.MapRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.MapRules build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.MapRules buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Validate.MapRules result)
-
mergeFrom
public Validate.MapRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>
-
mergeFrom
public Validate.MapRules.Builder mergeFrom(Validate.MapRules other)
-
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 java.io.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:
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:
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
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:
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
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:
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
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:
hasKeys
in 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:
getKeys
in 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:
getKeysOrBuilder
in interfaceValidate.MapRulesOrBuilder
-
getKeysFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder> getKeysFieldBuilder()
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:
hasValues
in 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:
getValues
in 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:
getValuesOrBuilder
in interfaceValidate.MapRulesOrBuilder
-
getValuesFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder> getValuesFieldBuilder()
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:
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
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.
-
-