Class Validate.StringRules

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Validate.StringRulesOrBuilder, Serializable
    Enclosing class:
    Validate

    public static final class Validate.StringRules
    extends com.google.protobuf.GeneratedMessageV3
    implements Validate.StringRulesOrBuilder
     StringRules describe the constraints applied to `string` values
     
    Protobuf type validate.StringRules
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Validate.StringRules.Builder
      StringRules describe the constraints applied to `string` values
      static class  Validate.StringRules.WellKnownCase  
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      boolean getAddress()
      Address specifies that the field must be either a valid hostname as defined by RFC 1034 (which does not support internationalized domain names or IDNs), or it can be a valid IP (v4 or v6).
      String getConst()
      Const specifies that this field must be exactly the specified value
      com.google.protobuf.ByteString getConstBytes()
      Const specifies that this field must be exactly the specified value
      String getContains()
      Contains specifies that this field must have the specified substring anywhere in the string.
      com.google.protobuf.ByteString getContainsBytes()
      Contains specifies that this field must have the specified substring anywhere in the string.
      static Validate.StringRules getDefaultInstance()  
      Validate.StringRules getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      boolean getEmail()
      Email specifies that the field must be a valid email address as defined by RFC 5322
      boolean getHostname()
      Hostname specifies that the field must be a valid hostname as defined by RFC 1034.
      boolean getIgnoreEmpty()
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      String getIn​(int index)
      In specifies that this field must be equal to one of the specified values
      com.google.protobuf.ByteString getInBytes​(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
      com.google.protobuf.ProtocolStringList 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.
      boolean getIpv4()
      Ipv4 specifies that the field must be a valid IPv4 address.
      boolean getIpv6()
      Ipv6 specifies that the field must be a valid IPv6 address.
      long getLen()
      Len specifies that this field must be the specified number of characters (Unicode code points).
      long getLenBytes()
      LenBytes specifies that this field must be the specified number of bytes
      long getMaxBytes()
      MaxBytes specifies that this field must be the specified number of bytes at a maximum
      long getMaxLen()
      MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.
      long getMinBytes()
      MinBytes specifies that this field must be the specified number of bytes at a minimum
      long getMinLen()
      MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.
      String getNotContains()
      NotContains specifies that this field cannot have the specified substring anywhere in the string.
      com.google.protobuf.ByteString getNotContainsBytes()
      NotContains specifies that this field cannot have the specified substring anywhere in the string.
      String getNotIn​(int index)
      NotIn specifies that this field cannot be equal to one of the specified values
      com.google.protobuf.ByteString getNotInBytes​(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
      com.google.protobuf.ProtocolStringList getNotInList()
      NotIn specifies that this field cannot be equal to one of the specified values
      com.google.protobuf.Parser<Validate.StringRules> getParserForType()  
      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).
      String getPrefix()
      Prefix specifies that this field must have the specified substring at the beginning of the string.
      com.google.protobuf.ByteString getPrefixBytes()
      Prefix specifies that this field must have the specified substring at the beginning of the string.
      int getSerializedSize()  
      boolean getStrict()
      This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.
      String getSuffix()
      Suffix specifies that this field must have the specified substring at the end of the string.
      com.google.protobuf.ByteString getSuffixBytes()
      Suffix specifies that this field must have the specified substring at the end of the string.
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      boolean getUri()
      Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
      boolean getUriRef()
      UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
      boolean getUuid()
      Uuid specifies that the field must be a valid UUID as defined by RFC 4122
      Validate.StringRules.WellKnownCase getWellKnownCase()  
      Validate.KnownRegex getWellKnownRegex()
      WellKnownRegex specifies a common well known pattern defined as a regex.
      boolean hasAddress()
      Address specifies that the field must be either a valid hostname as defined by RFC 1034 (which does not support internationalized domain names or IDNs), or it can be a valid IP (v4 or v6).
      boolean hasConst()
      Const specifies that this field must be exactly the specified value
      boolean hasContains()
      Contains specifies that this field must have the specified substring anywhere in the string.
      boolean hasEmail()
      Email specifies that the field must be a valid email address as defined by RFC 5322
      int hashCode()  
      boolean hasHostname()
      Hostname specifies that the field must be a valid hostname as defined by RFC 1034.
      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.
      boolean hasIpv4()
      Ipv4 specifies that the field must be a valid IPv4 address.
      boolean hasIpv6()
      Ipv6 specifies that the field must be a valid IPv6 address.
      boolean hasLen()
      Len specifies that this field must be the specified number of characters (Unicode code points).
      boolean hasLenBytes()
      LenBytes specifies that this field must be the specified number of bytes
      boolean hasMaxBytes()
      MaxBytes specifies that this field must be the specified number of bytes at a maximum
      boolean hasMaxLen()
      MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.
      boolean hasMinBytes()
      MinBytes specifies that this field must be the specified number of bytes at a minimum
      boolean hasMinLen()
      MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.
      boolean hasNotContains()
      NotContains specifies that this field cannot have the specified substring anywhere in the string.
      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 substring at the beginning of the string.
      boolean hasStrict()
      This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.
      boolean hasSuffix()
      Suffix specifies that this field must have the specified substring at the end of the string.
      boolean hasUri()
      Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
      boolean hasUriRef()
      UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
      boolean hasUuid()
      Uuid specifies that the field must be a valid UUID as defined by RFC 4122
      boolean hasWellKnownRegex()
      WellKnownRegex specifies a common well known pattern defined as a regex.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static Validate.StringRules.Builder newBuilder()  
      static Validate.StringRules.Builder newBuilder​(Validate.StringRules prototype)  
      Validate.StringRules.Builder newBuilderForType()  
      protected Validate.StringRules.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static Validate.StringRules parseDelimitedFrom​(InputStream input)  
      static Validate.StringRules parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.StringRules parseFrom​(byte[] data)  
      static Validate.StringRules parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.StringRules parseFrom​(com.google.protobuf.ByteString data)  
      static Validate.StringRules parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.StringRules parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Validate.StringRules parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.StringRules parseFrom​(InputStream input)  
      static Validate.StringRules parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Validate.StringRules parseFrom​(ByteBuffer data)  
      static Validate.StringRules parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Validate.StringRules> parser()  
      Validate.StringRules.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • hasConst

        public boolean hasConst()
         Const specifies that this field must be exactly the specified value
         
        optional string const = 1;
        Specified by:
        hasConst in interface Validate.StringRulesOrBuilder
      • getConstBytes

        public com.google.protobuf.ByteString getConstBytes()
         Const specifies that this field must be exactly the specified value
         
        optional string const = 1;
        Specified by:
        getConstBytes in interface Validate.StringRulesOrBuilder
      • hasLen

        public boolean hasLen()
         Len specifies that this field must be the specified number of
         characters (Unicode code points). Note that the number of
         characters may differ from the number of bytes in the string.
         
        optional uint64 len = 19;
        Specified by:
        hasLen in interface Validate.StringRulesOrBuilder
      • getLen

        public long getLen()
         Len specifies that this field must be the specified number of
         characters (Unicode code points). Note that the number of
         characters may differ from the number of bytes in the string.
         
        optional uint64 len = 19;
        Specified by:
        getLen in interface Validate.StringRulesOrBuilder
      • hasMinLen

        public boolean hasMinLen()
         MinLen specifies that this field must be the specified number of
         characters (Unicode code points) at a minimum. Note that the number of
         characters may differ from the number of bytes in the string.
         
        optional uint64 min_len = 2;
        Specified by:
        hasMinLen in interface Validate.StringRulesOrBuilder
      • getMinLen

        public long getMinLen()
         MinLen specifies that this field must be the specified number of
         characters (Unicode code points) at a minimum. Note that the number of
         characters may differ from the number of bytes in the string.
         
        optional uint64 min_len = 2;
        Specified by:
        getMinLen in interface Validate.StringRulesOrBuilder
      • hasMaxLen

        public boolean hasMaxLen()
         MaxLen specifies that this field must be the specified number of
         characters (Unicode code points) at a maximum. Note that the number of
         characters may differ from the number of bytes in the string.
         
        optional uint64 max_len = 3;
        Specified by:
        hasMaxLen in interface Validate.StringRulesOrBuilder
      • getMaxLen

        public long getMaxLen()
         MaxLen specifies that this field must be the specified number of
         characters (Unicode code points) at a maximum. Note that the number of
         characters may differ from the number of bytes in the string.
         
        optional uint64 max_len = 3;
        Specified by:
        getMaxLen in interface Validate.StringRulesOrBuilder
      • hasLenBytes

        public boolean hasLenBytes()
         LenBytes specifies that this field must be the specified number of bytes
         
        optional uint64 len_bytes = 20;
        Specified by:
        hasLenBytes in interface Validate.StringRulesOrBuilder
      • getLenBytes

        public long getLenBytes()
         LenBytes specifies that this field must be the specified number of bytes
         
        optional uint64 len_bytes = 20;
        Specified by:
        getLenBytes in interface Validate.StringRulesOrBuilder
      • hasMinBytes

        public boolean hasMinBytes()
         MinBytes specifies that this field must be the specified number of bytes
         at a minimum
         
        optional uint64 min_bytes = 4;
        Specified by:
        hasMinBytes in interface Validate.StringRulesOrBuilder
      • getMinBytes

        public long getMinBytes()
         MinBytes specifies that this field must be the specified number of bytes
         at a minimum
         
        optional uint64 min_bytes = 4;
        Specified by:
        getMinBytes in interface Validate.StringRulesOrBuilder
      • hasMaxBytes

        public boolean hasMaxBytes()
         MaxBytes specifies that this field must be the specified number of bytes
         at a maximum
         
        optional uint64 max_bytes = 5;
        Specified by:
        hasMaxBytes in interface Validate.StringRulesOrBuilder
      • getMaxBytes

        public long getMaxBytes()
         MaxBytes specifies that this field must be the specified number of bytes
         at a maximum
         
        optional uint64 max_bytes = 5;
        Specified by:
        getMaxBytes in interface Validate.StringRulesOrBuilder
      • 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 = 6;
        Specified by:
        hasPattern in interface Validate.StringRulesOrBuilder
      • 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 = 6;
        Specified by:
        getPattern in interface Validate.StringRulesOrBuilder
      • 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 = 6;
        Specified by:
        getPatternBytes in interface Validate.StringRulesOrBuilder
      • hasPrefix

        public boolean hasPrefix()
         Prefix specifies that this field must have the specified substring at
         the beginning of the string.
         
        optional string prefix = 7;
        Specified by:
        hasPrefix in interface Validate.StringRulesOrBuilder
      • getPrefix

        public String getPrefix()
         Prefix specifies that this field must have the specified substring at
         the beginning of the string.
         
        optional string prefix = 7;
        Specified by:
        getPrefix in interface Validate.StringRulesOrBuilder
      • getPrefixBytes

        public com.google.protobuf.ByteString getPrefixBytes()
         Prefix specifies that this field must have the specified substring at
         the beginning of the string.
         
        optional string prefix = 7;
        Specified by:
        getPrefixBytes in interface Validate.StringRulesOrBuilder
      • hasSuffix

        public boolean hasSuffix()
         Suffix specifies that this field must have the specified substring at
         the end of the string.
         
        optional string suffix = 8;
        Specified by:
        hasSuffix in interface Validate.StringRulesOrBuilder
      • getSuffix

        public String getSuffix()
         Suffix specifies that this field must have the specified substring at
         the end of the string.
         
        optional string suffix = 8;
        Specified by:
        getSuffix in interface Validate.StringRulesOrBuilder
      • getSuffixBytes

        public com.google.protobuf.ByteString getSuffixBytes()
         Suffix specifies that this field must have the specified substring at
         the end of the string.
         
        optional string suffix = 8;
        Specified by:
        getSuffixBytes in interface Validate.StringRulesOrBuilder
      • hasContains

        public boolean hasContains()
         Contains specifies that this field must have the specified substring
         anywhere in the string.
         
        optional string contains = 9;
        Specified by:
        hasContains in interface Validate.StringRulesOrBuilder
      • getContains

        public String getContains()
         Contains specifies that this field must have the specified substring
         anywhere in the string.
         
        optional string contains = 9;
        Specified by:
        getContains in interface Validate.StringRulesOrBuilder
      • getContainsBytes

        public com.google.protobuf.ByteString getContainsBytes()
         Contains specifies that this field must have the specified substring
         anywhere in the string.
         
        optional string contains = 9;
        Specified by:
        getContainsBytes in interface Validate.StringRulesOrBuilder
      • hasNotContains

        public boolean hasNotContains()
         NotContains specifies that this field cannot have the specified substring
         anywhere in the string.
         
        optional string not_contains = 23;
        Specified by:
        hasNotContains in interface Validate.StringRulesOrBuilder
      • getNotContains

        public String getNotContains()
         NotContains specifies that this field cannot have the specified substring
         anywhere in the string.
         
        optional string not_contains = 23;
        Specified by:
        getNotContains in interface Validate.StringRulesOrBuilder
      • getNotContainsBytes

        public com.google.protobuf.ByteString getNotContainsBytes()
         NotContains specifies that this field cannot have the specified substring
         anywhere in the string.
         
        optional string not_contains = 23;
        Specified by:
        getNotContainsBytes in interface Validate.StringRulesOrBuilder
      • getInList

        public com.google.protobuf.ProtocolStringList getInList()
         In specifies that this field must be equal to one of the specified
         values
         
        repeated string in = 10;
        Specified by:
        getInList in interface Validate.StringRulesOrBuilder
      • getInCount

        public int getInCount()
         In specifies that this field must be equal to one of the specified
         values
         
        repeated string in = 10;
        Specified by:
        getInCount in interface Validate.StringRulesOrBuilder
      • getIn

        public String getIn​(int index)
         In specifies that this field must be equal to one of the specified
         values
         
        repeated string in = 10;
        Specified by:
        getIn in interface Validate.StringRulesOrBuilder
      • getInBytes

        public com.google.protobuf.ByteString getInBytes​(int index)
         In specifies that this field must be equal to one of the specified
         values
         
        repeated string in = 10;
        Specified by:
        getInBytes in interface Validate.StringRulesOrBuilder
      • getNotInList

        public com.google.protobuf.ProtocolStringList getNotInList()
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated string not_in = 11;
        Specified by:
        getNotInList in interface Validate.StringRulesOrBuilder
      • getNotInCount

        public int getNotInCount()
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated string not_in = 11;
        Specified by:
        getNotInCount in interface Validate.StringRulesOrBuilder
      • getNotIn

        public String getNotIn​(int index)
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated string not_in = 11;
        Specified by:
        getNotIn in interface Validate.StringRulesOrBuilder
      • getNotInBytes

        public com.google.protobuf.ByteString getNotInBytes​(int index)
         NotIn specifies that this field cannot be equal to one of the specified
         values
         
        repeated string not_in = 11;
        Specified by:
        getNotInBytes in interface Validate.StringRulesOrBuilder
      • hasEmail

        public boolean hasEmail()
         Email specifies that the field must be a valid email address as
         defined by RFC 5322
         
        optional bool email = 12;
        Specified by:
        hasEmail in interface Validate.StringRulesOrBuilder
      • getEmail

        public boolean getEmail()
         Email specifies that the field must be a valid email address as
         defined by RFC 5322
         
        optional bool email = 12;
        Specified by:
        getEmail in interface Validate.StringRulesOrBuilder
      • hasHostname

        public boolean hasHostname()
         Hostname specifies that the field must be a valid hostname as
         defined by RFC 1034. This constraint does not support
         internationalized domain names (IDNs).
         
        optional bool hostname = 13;
        Specified by:
        hasHostname in interface Validate.StringRulesOrBuilder
      • getHostname

        public boolean getHostname()
         Hostname specifies that the field must be a valid hostname as
         defined by RFC 1034. This constraint does not support
         internationalized domain names (IDNs).
         
        optional bool hostname = 13;
        Specified by:
        getHostname in interface Validate.StringRulesOrBuilder
      • hasIp

        public boolean hasIp()
         Ip specifies that the field must be a valid IP (v4 or v6) address.
         Valid IPv6 addresses should not include surrounding square brackets.
         
        optional bool ip = 14;
        Specified by:
        hasIp in interface Validate.StringRulesOrBuilder
      • getIp

        public boolean getIp()
         Ip specifies that the field must be a valid IP (v4 or v6) address.
         Valid IPv6 addresses should not include surrounding square brackets.
         
        optional bool ip = 14;
        Specified by:
        getIp in interface Validate.StringRulesOrBuilder
      • hasIpv4

        public boolean hasIpv4()
         Ipv4 specifies that the field must be a valid IPv4 address.
         
        optional bool ipv4 = 15;
        Specified by:
        hasIpv4 in interface Validate.StringRulesOrBuilder
      • getIpv4

        public boolean getIpv4()
         Ipv4 specifies that the field must be a valid IPv4 address.
         
        optional bool ipv4 = 15;
        Specified by:
        getIpv4 in interface Validate.StringRulesOrBuilder
      • hasIpv6

        public boolean hasIpv6()
         Ipv6 specifies that the field must be a valid IPv6 address. Valid
         IPv6 addresses should not include surrounding square brackets.
         
        optional bool ipv6 = 16;
        Specified by:
        hasIpv6 in interface Validate.StringRulesOrBuilder
      • getIpv6

        public boolean getIpv6()
         Ipv6 specifies that the field must be a valid IPv6 address. Valid
         IPv6 addresses should not include surrounding square brackets.
         
        optional bool ipv6 = 16;
        Specified by:
        getIpv6 in interface Validate.StringRulesOrBuilder
      • hasUri

        public boolean hasUri()
         Uri specifies that the field must be a valid, absolute URI as defined
         by RFC 3986
         
        optional bool uri = 17;
        Specified by:
        hasUri in interface Validate.StringRulesOrBuilder
      • getUri

        public boolean getUri()
         Uri specifies that the field must be a valid, absolute URI as defined
         by RFC 3986
         
        optional bool uri = 17;
        Specified by:
        getUri in interface Validate.StringRulesOrBuilder
      • hasUriRef

        public boolean hasUriRef()
         UriRef specifies that the field must be a valid URI as defined by RFC
         3986 and may be relative or absolute.
         
        optional bool uri_ref = 18;
        Specified by:
        hasUriRef in interface Validate.StringRulesOrBuilder
      • getUriRef

        public boolean getUriRef()
         UriRef specifies that the field must be a valid URI as defined by RFC
         3986 and may be relative or absolute.
         
        optional bool uri_ref = 18;
        Specified by:
        getUriRef in interface Validate.StringRulesOrBuilder
      • hasAddress

        public boolean hasAddress()
         Address specifies that the field must be either a valid hostname as
         defined by RFC 1034 (which does not support internationalized domain
         names or IDNs), or it can be a valid IP (v4 or v6).
         
        optional bool address = 21;
        Specified by:
        hasAddress in interface Validate.StringRulesOrBuilder
      • getAddress

        public boolean getAddress()
         Address specifies that the field must be either a valid hostname as
         defined by RFC 1034 (which does not support internationalized domain
         names or IDNs), or it can be a valid IP (v4 or v6).
         
        optional bool address = 21;
        Specified by:
        getAddress in interface Validate.StringRulesOrBuilder
      • hasUuid

        public boolean hasUuid()
         Uuid specifies that the field must be a valid UUID as defined by
         RFC 4122
         
        optional bool uuid = 22;
        Specified by:
        hasUuid in interface Validate.StringRulesOrBuilder
      • getUuid

        public boolean getUuid()
         Uuid specifies that the field must be a valid UUID as defined by
         RFC 4122
         
        optional bool uuid = 22;
        Specified by:
        getUuid in interface Validate.StringRulesOrBuilder
      • hasWellKnownRegex

        public boolean hasWellKnownRegex()
         WellKnownRegex specifies a common well known pattern defined as a regex.
         
        optional .validate.KnownRegex well_known_regex = 24;
        Specified by:
        hasWellKnownRegex in interface Validate.StringRulesOrBuilder
      • hasStrict

        public boolean hasStrict()
         This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
         strict header validation.
         By default, this is true, and HTTP header validations are RFC-compliant.
         Setting to false will enable a looser validations that only disallows
         \r\n\0 characters, which can be used to bypass header matching rules.
         
        optional bool strict = 25 [default = true];
        Specified by:
        hasStrict in interface Validate.StringRulesOrBuilder
      • getStrict

        public boolean getStrict()
         This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
         strict header validation.
         By default, this is true, and HTTP header validations are RFC-compliant.
         Setting to false will enable a looser validations that only disallows
         \r\n\0 characters, which can be used to bypass header matching rules.
         
        optional bool strict = 25 [default = true];
        Specified by:
        getStrict in interface Validate.StringRulesOrBuilder
      • 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 = 26;
        Specified by:
        hasIgnoreEmpty in interface Validate.StringRulesOrBuilder
      • 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 = 26;
        Specified by:
        getIgnoreEmpty in interface Validate.StringRulesOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Validate.StringRules parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.StringRules parseFrom​(ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.StringRules parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.StringRules parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.StringRules parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Validate.StringRules parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Validate.StringRules.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Validate.StringRules.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Validate.StringRules.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Validate.StringRules> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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