Package com.validate
Class MapRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
com.validate.MapRules.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MapRulesOrBuilder,Cloneable
- Enclosing class:
MapRules
public static final class MapRules.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
implements MapRulesOrBuilder
MapRules describe the constraints applied to `map` valuesProtobuf type
validate.MapRules-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) 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.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Values specifies the constraints to be applied to the value of each key in the field.clone()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.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeKeys(FieldRules value) Keys specifies the constraints to be applied to each key in the field.final MapRules.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeValues(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(FieldRules value) Keys specifies the constraints to be applied to each key in the field.setKeys(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.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final MapRules.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValues(FieldRules value) Values specifies the constraints to be applied to the value of each key in the field.setValues(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 java.lang.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
-
Method Details
-
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<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<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<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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
setField
public MapRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
setRepeatedField
public MapRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
addRepeatedField
public MapRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MapRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
mergeFrom
public 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<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 [json_name = "minPairs"];- Specified by:
hasMinPairsin interfaceMapRulesOrBuilder- 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 [json_name = "minPairs"];- Specified by:
getMinPairsin interfaceMapRulesOrBuilder- Returns:
- The minPairs.
-
setMinPairs
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1 [json_name = "minPairs"];- 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 [json_name = "minPairs"];- 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 [json_name = "maxPairs"];- Specified by:
hasMaxPairsin interfaceMapRulesOrBuilder- 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 [json_name = "maxPairs"];- Specified by:
getMaxPairsin interfaceMapRulesOrBuilder- Returns:
- The maxPairs.
-
setMaxPairs
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2 [json_name = "maxPairs"];- 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 [json_name = "maxPairs"];- 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 [json_name = "noSparse"];- Specified by:
hasNoSparsein interfaceMapRulesOrBuilder- 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 [json_name = "noSparse"];- Specified by:
getNoSparsein interfaceMapRulesOrBuilder- 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 [json_name = "noSparse"];- 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 [json_name = "noSparse"];- 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 [json_name = "keys"];- Specified by:
hasKeysin interfaceMapRulesOrBuilder- 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 [json_name = "keys"];- Specified by:
getKeysin interfaceMapRulesOrBuilder- Returns:
- The keys.
-
setKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4 [json_name = "keys"]; -
setKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4 [json_name = "keys"]; -
mergeKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4 [json_name = "keys"]; -
clearKeys
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4 [json_name = "keys"]; -
getKeysBuilder
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4 [json_name = "keys"]; -
getKeysOrBuilder
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4 [json_name = "keys"];- Specified by:
getKeysOrBuilderin interfaceMapRulesOrBuilder
-
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 [json_name = "values"];- Specified by:
hasValuesin interfaceMapRulesOrBuilder- 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 [json_name = "values"];- Specified by:
getValuesin interfaceMapRulesOrBuilder- 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 [json_name = "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 [json_name = "values"]; -
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 [json_name = "values"]; -
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 [json_name = "values"]; -
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 [json_name = "values"]; -
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 [json_name = "values"];- Specified by:
getValuesOrBuilderin interfaceMapRulesOrBuilder
-
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 [json_name = "ignoreEmpty"];- Specified by:
hasIgnoreEmptyin interfaceMapRulesOrBuilder- 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 [json_name = "ignoreEmpty"];- Specified by:
getIgnoreEmptyin interfaceMapRulesOrBuilder- 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 [json_name = "ignoreEmpty"];- 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 [json_name = "ignoreEmpty"];- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
-