Class 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.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
    implements Validate.MapRulesOrBuilder
     MapRules describe the constraints applied to `map` values
     
    Protobuf type validate.MapRules
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • clear

        public Validate.MapRules.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • getDefaultInstanceForType

        public Validate.MapRules getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Validate.MapRules build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Validate.MapRules buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Validate.MapRules.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • setField

        public Validate.MapRules.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • clearField

        public Validate.MapRules.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • clearOneof

        public Validate.MapRules.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • setRepeatedField

        public Validate.MapRules.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • addRepeatedField

        public Validate.MapRules.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • mergeFrom

        public Validate.MapRules.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.MapRules.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • mergeFrom

        public Validate.MapRules.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        hasMinPairs in interface Validate.MapRulesOrBuilder
      • 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 interface Validate.MapRulesOrBuilder
      • 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;
      • 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;
      • 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 interface Validate.MapRulesOrBuilder
      • 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 interface Validate.MapRulesOrBuilder
      • 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;
      • 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;
      • 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 interface Validate.MapRulesOrBuilder
      • 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 interface Validate.MapRulesOrBuilder
      • 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;
      • 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;
      • 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 interface Validate.MapRulesOrBuilder
      • 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;
      • 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 interface Validate.MapRulesOrBuilder
      • 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 interface Validate.MapRulesOrBuilder
      • 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 interface Validate.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:
        hasIgnoreEmpty in interface Validate.MapRulesOrBuilder
      • 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 interface Validate.MapRulesOrBuilder
      • 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;
      • 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;
      • setUnknownFields

        public final Validate.MapRules.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>
      • mergeUnknownFields

        public final Validate.MapRules.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.MapRules.Builder>