Class Validate.RepeatedRules.Builder

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

public static final class Validate.RepeatedRules.Builder extends com.google.protobuf.GeneratedMessage.Builder<Validate.RepeatedRules.Builder> implements Validate.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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
      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;
      Specified by:
      getMinItems in interface Validate.RepeatedRulesOrBuilder
      Returns:
      The minItems.
    • 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;
      Parameters:
      value - The minItems to set.
      Returns:
      This builder for chaining.
    • 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;
      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;
      Specified by:
      hasMaxItems in interface Validate.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;
      Specified by:
      getMaxItems in interface Validate.RepeatedRulesOrBuilder
      Returns:
      The maxItems.
    • 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;
      Parameters:
      value - The maxItems to set.
      Returns:
      This builder for chaining.
    • 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;
      Returns:
      This builder for chaining.
    • hasUnique

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

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

      public Validate.RepeatedRules.Builder setUnique(boolean value)
       Unique specifies that all elements in this field must be unique. This
       constraint is only applicable to scalar and enum types (messages are not
       supported).
       
      optional bool unique = 3;
      Parameters:
      value - The unique to set.
      Returns:
      This builder for chaining.
    • clearUnique

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

      public boolean hasItems()
       Items specifies the constraints 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
      Returns:
      Whether the items field is set.
    • getItems

      public Validate.FieldRules getItems()
       Items specifies the constraints 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
      Returns:
      The items.
    • setItems

       Items specifies the constraints 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

       Items specifies the constraints 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

       Items specifies the constraints 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 constraints 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 constraints 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;
    • getItemsOrBuilder

      public Validate.FieldRulesOrBuilder getItemsOrBuilder()
       Items specifies the constraints 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:
      getItemsOrBuilder in interface Validate.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;
      Specified by:
      hasIgnoreEmpty in interface Validate.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;
      Specified by:
      getIgnoreEmpty in interface Validate.RepeatedRulesOrBuilder
      Returns:
      The ignoreEmpty.
    • 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;
      Parameters:
      value - The ignoreEmpty to set.
      Returns:
      This builder for chaining.
    • 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;
      Returns:
      This builder for chaining.