Class Validate.RepeatedRules.Builder

    • 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.RepeatedRules.Builder>
      • clear

        public Validate.RepeatedRules.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.RepeatedRules.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.RepeatedRules.Builder>
      • getDefaultInstanceForType

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

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

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

        public Validate.RepeatedRules.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.RepeatedRules.Builder>
      • clearField

        public Validate.RepeatedRules.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.RepeatedRules.Builder>
      • clearOneof

        public Validate.RepeatedRules.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.RepeatedRules.Builder>
      • setRepeatedField

        public Validate.RepeatedRules.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.RepeatedRules.Builder>
      • addRepeatedField

        public Validate.RepeatedRules.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.RepeatedRules.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.RepeatedRules.Builder>
      • mergeFrom

        public Validate.RepeatedRules.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.RepeatedRules.Builder>
        Throws:
        IOException
      • hasMinItems

        public boolean hasMinItems()
         MinItems specifies that this field must have the specified number of
         items at a minimum
         
        optional uint64 min_items = 1;
        Specified by:
        hasMinItems in interface Validate.RepeatedRulesOrBuilder
      • getMinItems

        public long getMinItems()
         MinItems specifies that this field must have the specified number of
         items at a minimum
         
        optional uint64 min_items = 1;
        Specified by:
        getMinItems in interface Validate.RepeatedRulesOrBuilder
      • setMinItems

        public Validate.RepeatedRules.Builder setMinItems​(long value)
         MinItems specifies that this field must have the specified number of
         items at a minimum
         
        optional uint64 min_items = 1;
      • clearMinItems

        public Validate.RepeatedRules.Builder clearMinItems()
         MinItems specifies that this field must have the specified number of
         items at a minimum
         
        optional uint64 min_items = 1;
      • hasMaxItems

        public boolean hasMaxItems()
         MaxItems specifies that this field must have the specified number of
         items at a maximum
         
        optional uint64 max_items = 2;
        Specified by:
        hasMaxItems in interface Validate.RepeatedRulesOrBuilder
      • getMaxItems

        public long getMaxItems()
         MaxItems specifies that this field must have the specified number of
         items at a maximum
         
        optional uint64 max_items = 2;
        Specified by:
        getMaxItems in interface Validate.RepeatedRulesOrBuilder
      • setMaxItems

        public Validate.RepeatedRules.Builder setMaxItems​(long value)
         MaxItems specifies that this field must have the specified number of
         items at a maximum
         
        optional uint64 max_items = 2;
      • clearMaxItems

        public Validate.RepeatedRules.Builder clearMaxItems()
         MaxItems specifies that this field must have the specified number of
         items at a maximum
         
        optional uint64 max_items = 2;
      • hasUnique

        public boolean hasUnique()
         Unique specifies that all elements in this field must be unique. This
         contraint is only applicable to scalar and enum types (messages are not
         supported).
         
        optional bool unique = 3;
        Specified by:
        hasUnique in interface Validate.RepeatedRulesOrBuilder
      • getUnique

        public boolean getUnique()
         Unique specifies that all elements in this field must be unique. This
         contraint is only applicable to scalar and enum types (messages are not
         supported).
         
        optional bool unique = 3;
        Specified by:
        getUnique in interface Validate.RepeatedRulesOrBuilder
      • setUnique

        public Validate.RepeatedRules.Builder setUnique​(boolean value)
         Unique specifies that all elements in this field must be unique. This
         contraint is only applicable to scalar and enum types (messages are not
         supported).
         
        optional bool unique = 3;
      • clearUnique

        public Validate.RepeatedRules.Builder clearUnique()
         Unique specifies that all elements in this field must be unique. This
         contraint is only applicable to scalar and enum types (messages are not
         supported).
         
        optional bool unique = 3;
      • hasItems

        public boolean hasItems()
         Items specifies the contraints to be applied to each item in the field.
         Repeated message fields will still execute validation against each item
         unless skip is specified here.
         
        optional .validate.FieldRules items = 4;
        Specified by:
        hasItems in interface Validate.RepeatedRulesOrBuilder
      • getItems

        public Validate.FieldRules getItems()
         Items specifies the contraints to be applied to each item in the field.
         Repeated message fields will still execute validation against each item
         unless skip is specified here.
         
        optional .validate.FieldRules items = 4;
        Specified by:
        getItems in interface Validate.RepeatedRulesOrBuilder
      • setItems

        public Validate.RepeatedRules.Builder setItems​(Validate.FieldRules value)
         Items specifies the contraints to be applied to each item in the field.
         Repeated message fields will still execute validation against each item
         unless skip is specified here.
         
        optional .validate.FieldRules items = 4;
      • setItems

        public Validate.RepeatedRules.Builder setItems​(Validate.FieldRules.Builder builderForValue)
         Items specifies the contraints to be applied to each item in the field.
         Repeated message fields will still execute validation against each item
         unless skip is specified here.
         
        optional .validate.FieldRules items = 4;
      • mergeItems

        public Validate.RepeatedRules.Builder mergeItems​(Validate.FieldRules value)
         Items specifies the contraints to be applied to each item in the field.
         Repeated message fields will still execute validation against each item
         unless skip is specified here.
         
        optional .validate.FieldRules items = 4;
      • clearItems

        public Validate.RepeatedRules.Builder clearItems()
         Items specifies the contraints to be applied to each item in the field.
         Repeated message fields will still execute validation against each item
         unless skip is specified here.
         
        optional .validate.FieldRules items = 4;
      • getItemsBuilder

        public Validate.FieldRules.Builder getItemsBuilder()
         Items specifies the contraints to be applied to each item in the field.
         Repeated message fields will still execute validation against each item
         unless skip is specified here.
         
        optional .validate.FieldRules items = 4;
      • 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 = 5;
        Specified by:
        hasIgnoreEmpty in interface Validate.RepeatedRulesOrBuilder
      • 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 = 5;
        Specified by:
        getIgnoreEmpty in interface Validate.RepeatedRulesOrBuilder
      • setIgnoreEmpty

        public Validate.RepeatedRules.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 = 5;
      • clearIgnoreEmpty

        public Validate.RepeatedRules.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 = 5;
      • setUnknownFields

        public final Validate.RepeatedRules.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.RepeatedRules.Builder>
      • mergeUnknownFields

        public final Validate.RepeatedRules.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.RepeatedRules.Builder>