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 type validate.MapRules
| Modifier and Type | Method and Description |
|---|---|
Validate.MapRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Validate.MapRules |
build() |
Validate.MapRules |
buildPartial() |
Validate.MapRules.Builder |
clear() |
Validate.MapRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Validate.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 maximum
|
Validate.MapRules.Builder |
clearMinPairs()
MinPairs specifies that this field must have the specified number of
KVs at a minimum
|
Validate.MapRules.Builder |
clearNoSparse()
NoSparse specifies values in this field cannot be unset.
|
Validate.MapRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Validate.MapRules.Builder |
clearValues()
Values specifies the constraints to be applied to the value of each key
in the field.
|
Validate.MapRules.Builder |
clone() |
Validate.MapRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Validate.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.
|
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 maximum
|
long |
getMinPairs()
MinPairs specifies that this field must have the specified number of
KVs at a minimum
|
boolean |
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.
|
Validate.FieldRulesOrBuilder |
getValuesOrBuilder()
Values specifies the constraints to be applied to the value of each key
in the field.
|
boolean |
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 maximum
|
boolean |
hasMinPairs()
MinPairs specifies that this field must have the specified number of
KVs at a minimum
|
boolean |
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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Validate.MapRules.Builder |
setKeys(Validate.FieldRules.Builder builderForValue)
Keys specifies the constraints to be applied to each key in the field.
|
Validate.MapRules.Builder |
setKeys(Validate.FieldRules value)
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 maximum
|
Validate.MapRules.Builder |
setMinPairs(long value)
MinPairs specifies that this field must have the specified number of
KVs at a minimum
|
Validate.MapRules.Builder |
setNoSparse(boolean value)
NoSparse specifies values in this field cannot be unset.
|
Validate.MapRules.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Validate.MapRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Validate.MapRules.Builder |
setValues(Validate.FieldRules.Builder builderForValue)
Values specifies the constraints to be applied to the value of each key
in the field.
|
Validate.MapRules.Builder |
setValues(Validate.FieldRules value)
Values specifies the constraints to be applied to the value of each key
in the field.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Validate.MapRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Validate.MapRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Validate.MapRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder mergeFrom(Validate.MapRules other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public Validate.MapRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>IOExceptionpublic boolean hasMinPairs()
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;hasMinPairs in interface Validate.MapRulesOrBuilderpublic long getMinPairs()
MinPairs specifies that this field must have the specified number of KVs at a minimum
optional uint64 min_pairs = 1;getMinPairs in interface Validate.MapRulesOrBuilderpublic 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;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;public boolean hasMaxPairs()
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;hasMaxPairs in interface Validate.MapRulesOrBuilderpublic long getMaxPairs()
MaxPairs specifies that this field must have the specified number of KVs at a maximum
optional uint64 max_pairs = 2;getMaxPairs in interface Validate.MapRulesOrBuilderpublic 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;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;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;hasNoSparse in interface Validate.MapRulesOrBuilderpublic 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;getNoSparse in interface Validate.MapRulesOrBuilderpublic 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;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;public boolean hasKeys()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;hasKeys in interface Validate.MapRulesOrBuilderpublic Validate.FieldRules getKeys()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;getKeys in interface Validate.MapRulesOrBuilderpublic 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;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;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;public Validate.MapRules.Builder clearKeys()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;public Validate.FieldRules.Builder getKeysBuilder()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;public Validate.FieldRulesOrBuilder getKeysOrBuilder()
Keys specifies the constraints to be applied to each key in the field.
optional .validate.FieldRules keys = 4;getKeysOrBuilder in interface Validate.MapRulesOrBuilderpublic 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;hasValues in interface Validate.MapRulesOrBuilderpublic 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;getValues in interface Validate.MapRulesOrBuilderpublic 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;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;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;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;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;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;getValuesOrBuilder in interface Validate.MapRulesOrBuilderpublic final Validate.MapRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>public final Validate.MapRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>Copyright © 2019 WSO2. All rights reserved.