Package com.validate

Class RepeatedRules.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RepeatedRules.Builder>
com.validate.RepeatedRules.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RepeatedRulesOrBuilder, Cloneable
Enclosing class:
RepeatedRules

public static final class RepeatedRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RepeatedRules.Builder> implements RepeatedRulesOrBuilder
 RepeatedRules describe the constraints applied to `repeated` values
 
Protobuf type validate.RepeatedRules
  • Method Details

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

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

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

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

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

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

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

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

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

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

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

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

      public RepeatedRules.Builder mergeFrom(RepeatedRules other)
    • isInitialized

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

      public 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<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 [json_name = "minItems"];
      Specified by:
      hasMinItems in interface RepeatedRulesOrBuilder
      Returns:
      Whether the minItems field is set.
    • getMinItems

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

      public 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 [json_name = "minItems"];
      Parameters:
      value - The minItems to set.
      Returns:
      This builder for chaining.
    • clearMinItems

      public RepeatedRules.Builder clearMinItems()
       MinItems specifies that this field must have the specified number of
       items at a minimum
       
      optional uint64 min_items = 1 [json_name = "minItems"];
      Returns:
      This builder for chaining.
    • hasMaxItems

      public boolean hasMaxItems()
       MaxItems specifies that this field must have the specified number of
       items at a maximum
       
      optional uint64 max_items = 2 [json_name = "maxItems"];
      Specified by:
      hasMaxItems in interface RepeatedRulesOrBuilder
      Returns:
      Whether the maxItems field is set.
    • getMaxItems

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

      public 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 [json_name = "maxItems"];
      Parameters:
      value - The maxItems to set.
      Returns:
      This builder for chaining.
    • clearMaxItems

      public RepeatedRules.Builder clearMaxItems()
       MaxItems specifies that this field must have the specified number of
       items at a maximum
       
      optional uint64 max_items = 2 [json_name = "maxItems"];
      Returns:
      This builder for chaining.
    • 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 [json_name = "unique"];
      Specified by:
      hasUnique in interface RepeatedRulesOrBuilder
      Returns:
      Whether the unique field is set.
    • 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 [json_name = "unique"];
      Specified by:
      getUnique in interface RepeatedRulesOrBuilder
      Returns:
      The unique.
    • setUnique

      public 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 [json_name = "unique"];
      Parameters:
      value - The unique to set.
      Returns:
      This builder for chaining.
    • clearUnique

      public 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 [json_name = "unique"];
      Returns:
      This builder for chaining.
    • 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 [json_name = "items"];
      Specified by:
      hasItems in interface RepeatedRulesOrBuilder
      Returns:
      Whether the items field is set.
    • getItems

      public 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 [json_name = "items"];
      Specified by:
      getItems in interface RepeatedRulesOrBuilder
      Returns:
      The items.
    • setItems

      public RepeatedRules.Builder setItems(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 [json_name = "items"];
    • setItems

      public RepeatedRules.Builder setItems(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 [json_name = "items"];
    • mergeItems

      public RepeatedRules.Builder mergeItems(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 [json_name = "items"];
    • clearItems

      public 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 [json_name = "items"];
    • getItemsBuilder

      public 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 [json_name = "items"];
    • getItemsOrBuilder

      public FieldRulesOrBuilder getItemsOrBuilder()
       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 [json_name = "items"];
      Specified by:
      getItemsOrBuilder in interface RepeatedRulesOrBuilder
    • 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 [json_name = "ignoreEmpty"];
      Specified by:
      hasIgnoreEmpty in interface RepeatedRulesOrBuilder
      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 = 5 [json_name = "ignoreEmpty"];
      Specified by:
      getIgnoreEmpty in interface RepeatedRulesOrBuilder
      Returns:
      The ignoreEmpty.
    • setIgnoreEmpty

      public 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 [json_name = "ignoreEmpty"];
      Parameters:
      value - The ignoreEmpty to set.
      Returns:
      This builder for chaining.
    • clearIgnoreEmpty

      public 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 [json_name = "ignoreEmpty"];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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