Package com.validate

Class BytesRules.Builder

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

public static final class BytesRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BytesRules.Builder> implements BytesRulesOrBuilder
 BytesRules describe the constraints applied to `bytes` values
 
Protobuf type validate.BytesRules
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllIn(Iterable<? extends com.google.protobuf.ByteString> values)
    In specifies that this field must be equal to one of the specified values
    addAllNotIn(Iterable<? extends com.google.protobuf.ByteString> values)
    NotIn specifies that this field cannot be equal to one of the specified values
    addIn(com.google.protobuf.ByteString value)
    In specifies that this field must be equal to one of the specified values
    addNotIn(com.google.protobuf.ByteString value)
    NotIn specifies that this field cannot be equal to one of the specified values
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    Const specifies that this field must be exactly the specified value
    Contains specifies that this field must have the specified bytes anywhere in the string.
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    In specifies that this field must be equal to one of the specified values
    Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
    Ipv4 specifies that the field must be a valid IPv4 address in byte format
    Ipv6 specifies that the field must be a valid IPv6 address in byte format
    Len specifies that this field must be the specified number of bytes
    MaxLen specifies that this field must be the specified number of bytes at a maximum
    MinLen specifies that this field must be the specified number of bytes at a minimum
    NotIn specifies that this field cannot be equal to one of the specified values
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
    Prefix specifies that this field must have the specified bytes at the beginning of the string.
    Suffix specifies that this field must have the specified bytes at the end of the string.
     
     
    com.google.protobuf.ByteString
    Const specifies that this field must be exactly the specified value
    com.google.protobuf.ByteString
    Contains specifies that this field must have the specified bytes anywhere in the string.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    com.google.protobuf.ByteString
    getIn(int index)
    In specifies that this field must be equal to one of the specified values
    int
    In specifies that this field must be equal to one of the specified values
    List<com.google.protobuf.ByteString>
    In specifies that this field must be equal to one of the specified values
    boolean
    Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
    boolean
    Ipv4 specifies that the field must be a valid IPv4 address in byte format
    boolean
    Ipv6 specifies that the field must be a valid IPv6 address in byte format
    long
    Len specifies that this field must be the specified number of bytes
    long
    MaxLen specifies that this field must be the specified number of bytes at a maximum
    long
    MinLen specifies that this field must be the specified number of bytes at a minimum
    com.google.protobuf.ByteString
    getNotIn(int index)
    NotIn specifies that this field cannot be equal to one of the specified values
    int
    NotIn specifies that this field cannot be equal to one of the specified values
    List<com.google.protobuf.ByteString>
    NotIn specifies that this field cannot be equal to one of the specified values
    Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
    com.google.protobuf.ByteString
    Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
    com.google.protobuf.ByteString
    Prefix specifies that this field must have the specified bytes at the beginning of the string.
    com.google.protobuf.ByteString
    Suffix specifies that this field must have the specified bytes at the end of the string.
     
    boolean
    Const specifies that this field must be exactly the specified value
    boolean
    Contains specifies that this field must have the specified bytes anywhere in the string.
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    boolean
    Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
    boolean
    Ipv4 specifies that the field must be a valid IPv4 address in byte format
    boolean
    Ipv6 specifies that the field must be a valid IPv6 address in byte format
    boolean
    Len specifies that this field must be the specified number of bytes
    boolean
    MaxLen specifies that this field must be the specified number of bytes at a maximum
    boolean
    MinLen specifies that this field must be the specified number of bytes at a minimum
    boolean
    Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
    boolean
    Prefix specifies that this field must have the specified bytes at the beginning of the string.
    boolean
    Suffix specifies that this field must have the specified bytes at the end of the string.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setConst(com.google.protobuf.ByteString value)
    Const specifies that this field must be exactly the specified value
    setContains(com.google.protobuf.ByteString value)
    Contains specifies that this field must have the specified bytes anywhere in the string.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setIgnoreEmpty(boolean value)
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    setIn(int index, com.google.protobuf.ByteString value)
    In specifies that this field must be equal to one of the specified values
    setIp(boolean value)
    Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
    setIpv4(boolean value)
    Ipv4 specifies that the field must be a valid IPv4 address in byte format
    setIpv6(boolean value)
    Ipv6 specifies that the field must be a valid IPv6 address in byte format
    setLen(long value)
    Len specifies that this field must be the specified number of bytes
    setMaxLen(long value)
    MaxLen specifies that this field must be the specified number of bytes at a maximum
    setMinLen(long value)
    MinLen specifies that this field must be the specified number of bytes at a minimum
    setNotIn(int index, com.google.protobuf.ByteString value)
    NotIn specifies that this field cannot be equal to one of the specified values
    Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
    setPatternBytes(com.google.protobuf.ByteString value)
    Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
    setPrefix(com.google.protobuf.ByteString value)
    Prefix specifies that this field must have the specified bytes at the beginning of the string.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setSuffix(com.google.protobuf.ByteString value)
    Suffix specifies that this field must have the specified bytes at the end of the string.
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<BytesRules.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public BytesRules.Builder mergeFrom(BytesRules other)
    • isInitialized

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

      public BytesRules.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<BytesRules.Builder>
      Throws:
      IOException
    • getWellKnownCase

      public BytesRules.WellKnownCase getWellKnownCase()
      Specified by:
      getWellKnownCase in interface BytesRulesOrBuilder
    • clearWellKnown

      public BytesRules.Builder clearWellKnown()
    • hasConst

      public boolean hasConst()
       Const specifies that this field must be exactly the specified value
       
      optional bytes const = 1 [json_name = "const"];
      Specified by:
      hasConst in interface BytesRulesOrBuilder
      Returns:
      Whether the const field is set.
    • getConst

      public com.google.protobuf.ByteString getConst()
       Const specifies that this field must be exactly the specified value
       
      optional bytes const = 1 [json_name = "const"];
      Specified by:
      getConst in interface BytesRulesOrBuilder
      Returns:
      The const.
    • setConst

      public BytesRules.Builder setConst(com.google.protobuf.ByteString value)
       Const specifies that this field must be exactly the specified value
       
      optional bytes const = 1 [json_name = "const"];
      Parameters:
      value - The const to set.
      Returns:
      This builder for chaining.
    • clearConst

      public BytesRules.Builder clearConst()
       Const specifies that this field must be exactly the specified value
       
      optional bytes const = 1 [json_name = "const"];
      Returns:
      This builder for chaining.
    • hasLen

      public boolean hasLen()
       Len specifies that this field must be the specified number of bytes
       
      optional uint64 len = 13 [json_name = "len"];
      Specified by:
      hasLen in interface BytesRulesOrBuilder
      Returns:
      Whether the len field is set.
    • getLen

      public long getLen()
       Len specifies that this field must be the specified number of bytes
       
      optional uint64 len = 13 [json_name = "len"];
      Specified by:
      getLen in interface BytesRulesOrBuilder
      Returns:
      The len.
    • setLen

      public BytesRules.Builder setLen(long value)
       Len specifies that this field must be the specified number of bytes
       
      optional uint64 len = 13 [json_name = "len"];
      Parameters:
      value - The len to set.
      Returns:
      This builder for chaining.
    • clearLen

      public BytesRules.Builder clearLen()
       Len specifies that this field must be the specified number of bytes
       
      optional uint64 len = 13 [json_name = "len"];
      Returns:
      This builder for chaining.
    • hasMinLen

      public boolean hasMinLen()
       MinLen specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_len = 2 [json_name = "minLen"];
      Specified by:
      hasMinLen in interface BytesRulesOrBuilder
      Returns:
      Whether the minLen field is set.
    • getMinLen

      public long getMinLen()
       MinLen specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_len = 2 [json_name = "minLen"];
      Specified by:
      getMinLen in interface BytesRulesOrBuilder
      Returns:
      The minLen.
    • setMinLen

      public BytesRules.Builder setMinLen(long value)
       MinLen specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_len = 2 [json_name = "minLen"];
      Parameters:
      value - The minLen to set.
      Returns:
      This builder for chaining.
    • clearMinLen

      public BytesRules.Builder clearMinLen()
       MinLen specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_len = 2 [json_name = "minLen"];
      Returns:
      This builder for chaining.
    • hasMaxLen

      public boolean hasMaxLen()
       MaxLen specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_len = 3 [json_name = "maxLen"];
      Specified by:
      hasMaxLen in interface BytesRulesOrBuilder
      Returns:
      Whether the maxLen field is set.
    • getMaxLen

      public long getMaxLen()
       MaxLen specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_len = 3 [json_name = "maxLen"];
      Specified by:
      getMaxLen in interface BytesRulesOrBuilder
      Returns:
      The maxLen.
    • setMaxLen

      public BytesRules.Builder setMaxLen(long value)
       MaxLen specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_len = 3 [json_name = "maxLen"];
      Parameters:
      value - The maxLen to set.
      Returns:
      This builder for chaining.
    • clearMaxLen

      public BytesRules.Builder clearMaxLen()
       MaxLen specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_len = 3 [json_name = "maxLen"];
      Returns:
      This builder for chaining.
    • hasPattern

      public boolean hasPattern()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 4 [json_name = "pattern"];
      Specified by:
      hasPattern in interface BytesRulesOrBuilder
      Returns:
      Whether the pattern field is set.
    • getPattern

      public String getPattern()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 4 [json_name = "pattern"];
      Specified by:
      getPattern in interface BytesRulesOrBuilder
      Returns:
      The pattern.
    • getPatternBytes

      public com.google.protobuf.ByteString getPatternBytes()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 4 [json_name = "pattern"];
      Specified by:
      getPatternBytes in interface BytesRulesOrBuilder
      Returns:
      The bytes for pattern.
    • setPattern

      public BytesRules.Builder setPattern(String value)
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 4 [json_name = "pattern"];
      Parameters:
      value - The pattern to set.
      Returns:
      This builder for chaining.
    • clearPattern

      public BytesRules.Builder clearPattern()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 4 [json_name = "pattern"];
      Returns:
      This builder for chaining.
    • setPatternBytes

      public BytesRules.Builder setPatternBytes(com.google.protobuf.ByteString value)
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 4 [json_name = "pattern"];
      Parameters:
      value - The bytes for pattern to set.
      Returns:
      This builder for chaining.
    • hasPrefix

      public boolean hasPrefix()
       Prefix specifies that this field must have the specified bytes at the
       beginning of the string.
       
      optional bytes prefix = 5 [json_name = "prefix"];
      Specified by:
      hasPrefix in interface BytesRulesOrBuilder
      Returns:
      Whether the prefix field is set.
    • getPrefix

      public com.google.protobuf.ByteString getPrefix()
       Prefix specifies that this field must have the specified bytes at the
       beginning of the string.
       
      optional bytes prefix = 5 [json_name = "prefix"];
      Specified by:
      getPrefix in interface BytesRulesOrBuilder
      Returns:
      The prefix.
    • setPrefix

      public BytesRules.Builder setPrefix(com.google.protobuf.ByteString value)
       Prefix specifies that this field must have the specified bytes at the
       beginning of the string.
       
      optional bytes prefix = 5 [json_name = "prefix"];
      Parameters:
      value - The prefix to set.
      Returns:
      This builder for chaining.
    • clearPrefix

      public BytesRules.Builder clearPrefix()
       Prefix specifies that this field must have the specified bytes at the
       beginning of the string.
       
      optional bytes prefix = 5 [json_name = "prefix"];
      Returns:
      This builder for chaining.
    • hasSuffix

      public boolean hasSuffix()
       Suffix specifies that this field must have the specified bytes at the
       end of the string.
       
      optional bytes suffix = 6 [json_name = "suffix"];
      Specified by:
      hasSuffix in interface BytesRulesOrBuilder
      Returns:
      Whether the suffix field is set.
    • getSuffix

      public com.google.protobuf.ByteString getSuffix()
       Suffix specifies that this field must have the specified bytes at the
       end of the string.
       
      optional bytes suffix = 6 [json_name = "suffix"];
      Specified by:
      getSuffix in interface BytesRulesOrBuilder
      Returns:
      The suffix.
    • setSuffix

      public BytesRules.Builder setSuffix(com.google.protobuf.ByteString value)
       Suffix specifies that this field must have the specified bytes at the
       end of the string.
       
      optional bytes suffix = 6 [json_name = "suffix"];
      Parameters:
      value - The suffix to set.
      Returns:
      This builder for chaining.
    • clearSuffix

      public BytesRules.Builder clearSuffix()
       Suffix specifies that this field must have the specified bytes at the
       end of the string.
       
      optional bytes suffix = 6 [json_name = "suffix"];
      Returns:
      This builder for chaining.
    • hasContains

      public boolean hasContains()
       Contains specifies that this field must have the specified bytes
       anywhere in the string.
       
      optional bytes contains = 7 [json_name = "contains"];
      Specified by:
      hasContains in interface BytesRulesOrBuilder
      Returns:
      Whether the contains field is set.
    • getContains

      public com.google.protobuf.ByteString getContains()
       Contains specifies that this field must have the specified bytes
       anywhere in the string.
       
      optional bytes contains = 7 [json_name = "contains"];
      Specified by:
      getContains in interface BytesRulesOrBuilder
      Returns:
      The contains.
    • setContains

      public BytesRules.Builder setContains(com.google.protobuf.ByteString value)
       Contains specifies that this field must have the specified bytes
       anywhere in the string.
       
      optional bytes contains = 7 [json_name = "contains"];
      Parameters:
      value - The contains to set.
      Returns:
      This builder for chaining.
    • clearContains

      public BytesRules.Builder clearContains()
       Contains specifies that this field must have the specified bytes
       anywhere in the string.
       
      optional bytes contains = 7 [json_name = "contains"];
      Returns:
      This builder for chaining.
    • getInList

      public List<com.google.protobuf.ByteString> getInList()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated bytes in = 8 [json_name = "in"];
      Specified by:
      getInList in interface BytesRulesOrBuilder
      Returns:
      A list containing the in.
    • getInCount

      public int getInCount()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated bytes in = 8 [json_name = "in"];
      Specified by:
      getInCount in interface BytesRulesOrBuilder
      Returns:
      The count of in.
    • getIn

      public com.google.protobuf.ByteString getIn(int index)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated bytes in = 8 [json_name = "in"];
      Specified by:
      getIn in interface BytesRulesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The in at the given index.
    • setIn

      public BytesRules.Builder setIn(int index, com.google.protobuf.ByteString value)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated bytes in = 8 [json_name = "in"];
      Parameters:
      index - The index to set the value at.
      value - The in to set.
      Returns:
      This builder for chaining.
    • addIn

      public BytesRules.Builder addIn(com.google.protobuf.ByteString value)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated bytes in = 8 [json_name = "in"];
      Parameters:
      value - The in to add.
      Returns:
      This builder for chaining.
    • addAllIn

      public BytesRules.Builder addAllIn(Iterable<? extends com.google.protobuf.ByteString> values)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated bytes in = 8 [json_name = "in"];
      Parameters:
      values - The in to add.
      Returns:
      This builder for chaining.
    • clearIn

      public BytesRules.Builder clearIn()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated bytes in = 8 [json_name = "in"];
      Returns:
      This builder for chaining.
    • getNotInList

      public List<com.google.protobuf.ByteString> getNotInList()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated bytes not_in = 9 [json_name = "notIn"];
      Specified by:
      getNotInList in interface BytesRulesOrBuilder
      Returns:
      A list containing the notIn.
    • getNotInCount

      public int getNotInCount()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated bytes not_in = 9 [json_name = "notIn"];
      Specified by:
      getNotInCount in interface BytesRulesOrBuilder
      Returns:
      The count of notIn.
    • getNotIn

      public com.google.protobuf.ByteString getNotIn(int index)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated bytes not_in = 9 [json_name = "notIn"];
      Specified by:
      getNotIn in interface BytesRulesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The notIn at the given index.
    • setNotIn

      public BytesRules.Builder setNotIn(int index, com.google.protobuf.ByteString value)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated bytes not_in = 9 [json_name = "notIn"];
      Parameters:
      index - The index to set the value at.
      value - The notIn to set.
      Returns:
      This builder for chaining.
    • addNotIn

      public BytesRules.Builder addNotIn(com.google.protobuf.ByteString value)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated bytes not_in = 9 [json_name = "notIn"];
      Parameters:
      value - The notIn to add.
      Returns:
      This builder for chaining.
    • addAllNotIn

      public BytesRules.Builder addAllNotIn(Iterable<? extends com.google.protobuf.ByteString> values)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated bytes not_in = 9 [json_name = "notIn"];
      Parameters:
      values - The notIn to add.
      Returns:
      This builder for chaining.
    • clearNotIn

      public BytesRules.Builder clearNotIn()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated bytes not_in = 9 [json_name = "notIn"];
      Returns:
      This builder for chaining.
    • hasIp

      public boolean hasIp()
       Ip specifies that the field must be a valid IP (v4 or v6) address in
       byte format
       
      bool ip = 10 [json_name = "ip"];
      Specified by:
      hasIp in interface BytesRulesOrBuilder
      Returns:
      Whether the ip field is set.
    • getIp

      public boolean getIp()
       Ip specifies that the field must be a valid IP (v4 or v6) address in
       byte format
       
      bool ip = 10 [json_name = "ip"];
      Specified by:
      getIp in interface BytesRulesOrBuilder
      Returns:
      The ip.
    • setIp

      public BytesRules.Builder setIp(boolean value)
       Ip specifies that the field must be a valid IP (v4 or v6) address in
       byte format
       
      bool ip = 10 [json_name = "ip"];
      Parameters:
      value - The ip to set.
      Returns:
      This builder for chaining.
    • clearIp

      public BytesRules.Builder clearIp()
       Ip specifies that the field must be a valid IP (v4 or v6) address in
       byte format
       
      bool ip = 10 [json_name = "ip"];
      Returns:
      This builder for chaining.
    • hasIpv4

      public boolean hasIpv4()
       Ipv4 specifies that the field must be a valid IPv4 address in byte
       format
       
      bool ipv4 = 11 [json_name = "ipv4"];
      Specified by:
      hasIpv4 in interface BytesRulesOrBuilder
      Returns:
      Whether the ipv4 field is set.
    • getIpv4

      public boolean getIpv4()
       Ipv4 specifies that the field must be a valid IPv4 address in byte
       format
       
      bool ipv4 = 11 [json_name = "ipv4"];
      Specified by:
      getIpv4 in interface BytesRulesOrBuilder
      Returns:
      The ipv4.
    • setIpv4

      public BytesRules.Builder setIpv4(boolean value)
       Ipv4 specifies that the field must be a valid IPv4 address in byte
       format
       
      bool ipv4 = 11 [json_name = "ipv4"];
      Parameters:
      value - The ipv4 to set.
      Returns:
      This builder for chaining.
    • clearIpv4

      public BytesRules.Builder clearIpv4()
       Ipv4 specifies that the field must be a valid IPv4 address in byte
       format
       
      bool ipv4 = 11 [json_name = "ipv4"];
      Returns:
      This builder for chaining.
    • hasIpv6

      public boolean hasIpv6()
       Ipv6 specifies that the field must be a valid IPv6 address in byte
       format
       
      bool ipv6 = 12 [json_name = "ipv6"];
      Specified by:
      hasIpv6 in interface BytesRulesOrBuilder
      Returns:
      Whether the ipv6 field is set.
    • getIpv6

      public boolean getIpv6()
       Ipv6 specifies that the field must be a valid IPv6 address in byte
       format
       
      bool ipv6 = 12 [json_name = "ipv6"];
      Specified by:
      getIpv6 in interface BytesRulesOrBuilder
      Returns:
      The ipv6.
    • setIpv6

      public BytesRules.Builder setIpv6(boolean value)
       Ipv6 specifies that the field must be a valid IPv6 address in byte
       format
       
      bool ipv6 = 12 [json_name = "ipv6"];
      Parameters:
      value - The ipv6 to set.
      Returns:
      This builder for chaining.
    • clearIpv6

      public BytesRules.Builder clearIpv6()
       Ipv6 specifies that the field must be a valid IPv6 address in byte
       format
       
      bool ipv6 = 12 [json_name = "ipv6"];
      Returns:
      This builder for chaining.
    • 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 = 14 [json_name = "ignoreEmpty"];
      Specified by:
      hasIgnoreEmpty in interface BytesRulesOrBuilder
      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 = 14 [json_name = "ignoreEmpty"];
      Specified by:
      getIgnoreEmpty in interface BytesRulesOrBuilder
      Returns:
      The ignoreEmpty.
    • setIgnoreEmpty

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

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

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

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