Interface Validate.BytesRulesOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Validate.BytesRules, Validate.BytesRules.Builder
    Enclosing class:
    Validate

    public static interface Validate.BytesRulesOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.ByteString getConst()
      Const specifies that this field must be exactly the specified value
      com.google.protobuf.ByteString getContains()
      Contains specifies that this field must have the specified bytes anywhere in the string.
      boolean getIgnoreEmpty()
      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 getInCount()
      In specifies that this field must be equal to one of the specified values
      java.util.List<com.google.protobuf.ByteString> getInList()
      In specifies that this field must be equal to one of the specified values
      boolean getIp()
      Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
      boolean getIpv4()
      Ipv4 specifies that the field must be a valid IPv4 address in byte format
      boolean getIpv6()
      Ipv6 specifies that the field must be a valid IPv6 address in byte format
      long getLen()
      Len specifies that this field must be the specified number of bytes
      long getMaxLen()
      MaxLen specifies that this field must be the specified number of bytes at a maximum
      long getMinLen()
      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 getNotInCount()
      NotIn specifies that this field cannot be equal to one of the specified values
      java.util.List<com.google.protobuf.ByteString> getNotInList()
      NotIn specifies that this field cannot be equal to one of the specified values
      java.lang.String getPattern()
      Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
      com.google.protobuf.ByteString getPatternBytes()
      Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
      com.google.protobuf.ByteString getPrefix()
      Prefix specifies that this field must have the specified bytes at the beginning of the string.
      com.google.protobuf.ByteString getSuffix()
      Suffix specifies that this field must have the specified bytes at the end of the string.
      Validate.BytesRules.WellKnownCase getWellKnownCase()  
      boolean hasConst()
      Const specifies that this field must be exactly the specified value
      boolean hasContains()
      Contains specifies that this field must have the specified bytes anywhere in the string.
      boolean hasIgnoreEmpty()
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      boolean hasIp()
      Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
      boolean hasIpv4()
      Ipv4 specifies that the field must be a valid IPv4 address in byte format
      boolean hasIpv6()
      Ipv6 specifies that the field must be a valid IPv6 address in byte format
      boolean hasLen()
      Len specifies that this field must be the specified number of bytes
      boolean hasMaxLen()
      MaxLen specifies that this field must be the specified number of bytes at a maximum
      boolean hasMinLen()
      MinLen specifies that this field must be the specified number of bytes at a minimum
      boolean hasPattern()
      Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
      boolean hasPrefix()
      Prefix specifies that this field must have the specified bytes at the beginning of the string.
      boolean hasSuffix()
      Suffix specifies that this field must have the specified bytes at the end of the string.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasConst

        boolean hasConst()
         Const specifies that this field must be exactly the specified value
         
        optional bytes const = 1;
        Returns:
        Whether the const field is set.
      • getConst

        com.google.protobuf.ByteString getConst()
         Const specifies that this field must be exactly the specified value
         
        optional bytes const = 1;
        Returns:
        The const.
      • hasLen

        boolean hasLen()
         Len specifies that this field must be the specified number of bytes
         
        optional uint64 len = 13;
        Returns:
        Whether the len field is set.
      • getLen

        long getLen()
         Len specifies that this field must be the specified number of bytes
         
        optional uint64 len = 13;
        Returns:
        The len.
      • hasMinLen

        boolean hasMinLen()
         MinLen specifies that this field must be the specified number of bytes
         at a minimum
         
        optional uint64 min_len = 2;
        Returns:
        Whether the minLen field is set.
      • getMinLen

        long getMinLen()
         MinLen specifies that this field must be the specified number of bytes
         at a minimum
         
        optional uint64 min_len = 2;
        Returns:
        The minLen.
      • hasMaxLen

        boolean hasMaxLen()
         MaxLen specifies that this field must be the specified number of bytes
         at a maximum
         
        optional uint64 max_len = 3;
        Returns:
        Whether the maxLen field is set.
      • getMaxLen

        long getMaxLen()
         MaxLen specifies that this field must be the specified number of bytes
         at a maximum
         
        optional uint64 max_len = 3;
        Returns:
        The maxLen.
      • hasPattern

        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;
        Returns:
        Whether the pattern field is set.
      • getPattern

        java.lang.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;
        Returns:
        The pattern.
      • getPatternBytes

        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;
        Returns:
        The bytes for pattern.
      • hasPrefix

        boolean hasPrefix()
         Prefix specifies that this field must have the specified bytes at the
         beginning of the string.
         
        optional bytes prefix = 5;
        Returns:
        Whether the prefix field is set.
      • getPrefix

        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;
        Returns:
        The prefix.
      • hasSuffix

        boolean hasSuffix()
         Suffix specifies that this field must have the specified bytes at the
         end of the string.
         
        optional bytes suffix = 6;
        Returns:
        Whether the suffix field is set.
      • getSuffix

        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;
        Returns:
        The suffix.
      • hasContains

        boolean hasContains()
         Contains specifies that this field must have the specified bytes
         anywhere in the string.
         
        optional bytes contains = 7;
        Returns:
        Whether the contains field is set.
      • getContains

        com.google.protobuf.ByteString getContains()
         Contains specifies that this field must have the specified bytes
         anywhere in the string.
         
        optional bytes contains = 7;
        Returns:
        The contains.
      • getInList

        java.util.List<com.google.protobuf.ByteString> getInList()
         In specifies that this field must be equal to one of the specified
         values
         
        repeated bytes in = 8;
        Returns:
        A list containing the in.
      • getInCount

        int getInCount()
         In specifies that this field must be equal to one of the specified
         values
         
        repeated bytes in = 8;
        Returns:
        The count of in.
      • getIn

        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;
        Parameters:
        index - The index of the element to return.
        Returns:
        The in at the given index.
      • getNotInList

        java.util.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;
        Returns:
        A list containing the notIn.
      • getNotInCount

        int getNotInCount()
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated bytes not_in = 9;
        Returns:
        The count of notIn.
      • getNotIn

        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;
        Parameters:
        index - The index of the element to return.
        Returns:
        The notIn at the given index.
      • hasIp

        boolean hasIp()
         Ip specifies that the field must be a valid IP (v4 or v6) address in
         byte format
         
        bool ip = 10;
        Returns:
        Whether the ip field is set.
      • getIp

        boolean getIp()
         Ip specifies that the field must be a valid IP (v4 or v6) address in
         byte format
         
        bool ip = 10;
        Returns:
        The ip.
      • hasIpv4

        boolean hasIpv4()
         Ipv4 specifies that the field must be a valid IPv4 address in byte
         format
         
        bool ipv4 = 11;
        Returns:
        Whether the ipv4 field is set.
      • getIpv4

        boolean getIpv4()
         Ipv4 specifies that the field must be a valid IPv4 address in byte
         format
         
        bool ipv4 = 11;
        Returns:
        The ipv4.
      • hasIpv6

        boolean hasIpv6()
         Ipv6 specifies that the field must be a valid IPv6 address in byte
         format
         
        bool ipv6 = 12;
        Returns:
        Whether the ipv6 field is set.
      • getIpv6

        boolean getIpv6()
         Ipv6 specifies that the field must be a valid IPv6 address in byte
         format
         
        bool ipv6 = 12;
        Returns:
        The ipv6.
      • hasIgnoreEmpty

        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;
        Returns:
        Whether the ignoreEmpty field is set.
      • getIgnoreEmpty

        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;
        Returns:
        The ignoreEmpty.