Package com.validate
Class StringRules
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.validate.StringRules
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StringRulesOrBuilder,Serializable
public final class StringRules
extends com.google.protobuf.GeneratedMessageV3
implements StringRulesOrBuilder
StringRules describe the constraints applied to `string` valuesProtobuf type
validate.StringRules- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStringRules describe the constraints applied to `string` valuesstatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final com.google.protobuf.Parser<StringRules>Deprecated.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanAddress 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).getConst()Const specifies that this field must be exactly the specified valuecom.google.protobuf.ByteStringConst specifies that this field must be exactly the specified valueContains specifies that this field must have the specified substring anywhere in the string.com.google.protobuf.ByteStringContains specifies that this field must have the specified substring anywhere in the string.static StringRulesstatic final com.google.protobuf.Descriptors.DescriptorbooleangetEmail()Email specifies that the field must be a valid email address as defined by RFC 5322booleanHostname specifies that the field must be a valid hostname as defined by RFC 1034.booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptygetIn(int index) In specifies that this field must be equal to one of the specified valuescom.google.protobuf.ByteStringgetInBytes(int index) In specifies that this field must be equal to one of the specified valuesintIn specifies that this field must be equal to one of the specified valuescom.google.protobuf.ProtocolStringListIn specifies that this field must be equal to one of the specified valuesbooleangetIp()Ip specifies that the field must be a valid IP (v4 or v6) address.booleangetIpv4()Ipv4 specifies that the field must be a valid IPv4 address.booleangetIpv6()Ipv6 specifies that the field must be a valid IPv6 address.longgetLen()Len specifies that this field must be the specified number of characters (Unicode code points).longLenBytes specifies that this field must be the specified number of byteslongMaxBytes specifies that this field must be the specified number of bytes at a maximumlongMaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.longMinBytes specifies that this field must be the specified number of bytes at a minimumlongMinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.NotContains specifies that this field cannot have the specified substring anywhere in the string.com.google.protobuf.ByteStringNotContains specifies that this field cannot have the specified substring anywhere in the string.getNotIn(int index) NotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.ByteStringgetNotInBytes(int index) NotIn specifies that this field cannot be equal to one of the specified valuesintNotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.ProtocolStringListNotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.Parser<StringRules>Pattern specifes that this field must match against the specified regular expression (RE2 syntax).com.google.protobuf.ByteStringPattern specifes that this field must match against the specified regular expression (RE2 syntax).Prefix specifies that this field must have the specified substring at the beginning of the string.com.google.protobuf.ByteStringPrefix specifies that this field must have the specified substring at the beginning of the string.intbooleanThis applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.Suffix specifies that this field must have the specified substring at the end of the string.com.google.protobuf.ByteStringSuffix specifies that this field must have the specified substring at the end of the string.booleangetUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986booleanUriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.booleangetUuid()Uuid specifies that the field must be a valid UUID as defined by RFC 4122WellKnownRegex specifies a common well known pattern defined as a regex.booleanAddress 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).booleanhasConst()Const specifies that this field must be exactly the specified valuebooleanContains specifies that this field must have the specified substring anywhere in the string.booleanhasEmail()Email specifies that the field must be a valid email address as defined by RFC 5322inthashCode()booleanHostname specifies that the field must be a valid hostname as defined by RFC 1034.booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptybooleanhasIp()Ip specifies that the field must be a valid IP (v4 or v6) address.booleanhasIpv4()Ipv4 specifies that the field must be a valid IPv4 address.booleanhasIpv6()Ipv6 specifies that the field must be a valid IPv6 address.booleanhasLen()Len specifies that this field must be the specified number of characters (Unicode code points).booleanLenBytes specifies that this field must be the specified number of bytesbooleanMaxBytes specifies that this field must be the specified number of bytes at a maximumbooleanMaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.booleanMinBytes specifies that this field must be the specified number of bytes at a minimumbooleanMinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.booleanNotContains specifies that this field cannot have the specified substring anywhere in the string.booleanPattern specifes that this field must match against the specified regular expression (RE2 syntax).booleanPrefix specifies that this field must have the specified substring at the beginning of the string.booleanThis applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.booleanSuffix specifies that this field must have the specified substring at the end of the string.booleanhasUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986booleanUriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.booleanhasUuid()Uuid specifies that the field must be a valid UUID as defined by RFC 4122booleanWellKnownRegex specifies a common well known pattern defined as a regex.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic StringRules.Builderstatic StringRules.BuildernewBuilder(StringRules prototype) protected StringRules.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static StringRulesparseDelimitedFrom(InputStream input) static StringRulesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StringRulesparseFrom(byte[] data) static StringRulesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StringRulesparseFrom(com.google.protobuf.ByteString data) static StringRulesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StringRulesparseFrom(com.google.protobuf.CodedInputStream input) static StringRulesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StringRulesparseFrom(InputStream input) static StringRulesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StringRulesparseFrom(ByteBuffer data) static StringRulesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StringRules>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONST_FIELD_NUMBER
public static final int CONST_FIELD_NUMBER- See Also:
-
LEN_FIELD_NUMBER
public static final int LEN_FIELD_NUMBER- See Also:
-
MIN_LEN_FIELD_NUMBER
public static final int MIN_LEN_FIELD_NUMBER- See Also:
-
MAX_LEN_FIELD_NUMBER
public static final int MAX_LEN_FIELD_NUMBER- See Also:
-
LEN_BYTES_FIELD_NUMBER
public static final int LEN_BYTES_FIELD_NUMBER- See Also:
-
MIN_BYTES_FIELD_NUMBER
public static final int MIN_BYTES_FIELD_NUMBER- See Also:
-
MAX_BYTES_FIELD_NUMBER
public static final int MAX_BYTES_FIELD_NUMBER- See Also:
-
PATTERN_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER- See Also:
-
PREFIX_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER- See Also:
-
SUFFIX_FIELD_NUMBER
public static final int SUFFIX_FIELD_NUMBER- See Also:
-
CONTAINS_FIELD_NUMBER
public static final int CONTAINS_FIELD_NUMBER- See Also:
-
NOT_CONTAINS_FIELD_NUMBER
public static final int NOT_CONTAINS_FIELD_NUMBER- See Also:
-
IN_FIELD_NUMBER
public static final int IN_FIELD_NUMBER- See Also:
-
NOT_IN_FIELD_NUMBER
public static final int NOT_IN_FIELD_NUMBER- See Also:
-
EMAIL_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER- See Also:
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER- See Also:
-
IP_FIELD_NUMBER
public static final int IP_FIELD_NUMBER- See Also:
-
IPV4_FIELD_NUMBER
public static final int IPV4_FIELD_NUMBER- See Also:
-
IPV6_FIELD_NUMBER
public static final int IPV6_FIELD_NUMBER- See Also:
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
URI_REF_FIELD_NUMBER
public static final int URI_REF_FIELD_NUMBER- See Also:
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER- See Also:
-
UUID_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER- See Also:
-
WELL_KNOWN_REGEX_FIELD_NUMBER
public static final int WELL_KNOWN_REGEX_FIELD_NUMBER- See Also:
-
STRICT_FIELD_NUMBER
public static final int STRICT_FIELD_NUMBER- See Also:
-
IGNORE_EMPTY_FIELD_NUMBER
public static final int IGNORE_EMPTY_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getWellKnownCase
- Specified by:
getWellKnownCasein interfaceStringRulesOrBuilder
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional string const = 1 [json_name = "const"];- Specified by:
hasConstin interfaceStringRulesOrBuilder- Returns:
- Whether the const field is set.
-
getConst
Const specifies that this field must be exactly the specified value
optional string const = 1 [json_name = "const"];- Specified by:
getConstin interfaceStringRulesOrBuilder- Returns:
- The const.
-
getConstBytes
public com.google.protobuf.ByteString getConstBytes()Const specifies that this field must be exactly the specified value
optional string const = 1 [json_name = "const"];- Specified by:
getConstBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for const.
-
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 [json_name = "len"];- Specified by:
hasLenin interfaceStringRulesOrBuilder- Returns:
- Whether the len field is set.
-
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 [json_name = "len"];- Specified by:
getLenin interfaceStringRulesOrBuilder- Returns:
- The len.
-
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 [json_name = "minLen"];- Specified by:
hasMinLenin interfaceStringRulesOrBuilder- Returns:
- Whether the minLen field is set.
-
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 [json_name = "minLen"];- Specified by:
getMinLenin interfaceStringRulesOrBuilder- Returns:
- The minLen.
-
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 [json_name = "maxLen"];- Specified by:
hasMaxLenin interfaceStringRulesOrBuilder- Returns:
- Whether the maxLen field is set.
-
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 [json_name = "maxLen"];- Specified by:
getMaxLenin interfaceStringRulesOrBuilder- Returns:
- The maxLen.
-
hasLenBytes
public boolean hasLenBytes()LenBytes specifies that this field must be the specified number of bytes
optional uint64 len_bytes = 20 [json_name = "lenBytes"];- Specified by:
hasLenBytesin interfaceStringRulesOrBuilder- Returns:
- Whether the lenBytes field is set.
-
getLenBytes
public long getLenBytes()LenBytes specifies that this field must be the specified number of bytes
optional uint64 len_bytes = 20 [json_name = "lenBytes"];- Specified by:
getLenBytesin interfaceStringRulesOrBuilder- Returns:
- The lenBytes.
-
hasMinBytes
public boolean hasMinBytes()MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4 [json_name = "minBytes"];- Specified by:
hasMinBytesin interfaceStringRulesOrBuilder- Returns:
- Whether the minBytes field is set.
-
getMinBytes
public long getMinBytes()MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4 [json_name = "minBytes"];- Specified by:
getMinBytesin interfaceStringRulesOrBuilder- Returns:
- The minBytes.
-
hasMaxBytes
public boolean hasMaxBytes()MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5 [json_name = "maxBytes"];- Specified by:
hasMaxBytesin interfaceStringRulesOrBuilder- Returns:
- Whether the maxBytes field is set.
-
getMaxBytes
public long getMaxBytes()MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5 [json_name = "maxBytes"];- Specified by:
getMaxBytesin interfaceStringRulesOrBuilder- Returns:
- The maxBytes.
-
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 [json_name = "pattern"];- Specified by:
hasPatternin interfaceStringRulesOrBuilder- Returns:
- Whether the pattern field is set.
-
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 [json_name = "pattern"];- Specified by:
getPatternin interfaceStringRulesOrBuilder- 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 = 6 [json_name = "pattern"];- Specified by:
getPatternBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for pattern.
-
hasPrefix
public boolean hasPrefix()Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7 [json_name = "prefix"];- Specified by:
hasPrefixin interfaceStringRulesOrBuilder- Returns:
- Whether the prefix field is set.
-
getPrefix
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7 [json_name = "prefix"];- Specified by:
getPrefixin interfaceStringRulesOrBuilder- Returns:
- The prefix.
-
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 [json_name = "prefix"];- Specified by:
getPrefixBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for prefix.
-
hasSuffix
public boolean hasSuffix()Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8 [json_name = "suffix"];- Specified by:
hasSuffixin interfaceStringRulesOrBuilder- Returns:
- Whether the suffix field is set.
-
getSuffix
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8 [json_name = "suffix"];- Specified by:
getSuffixin interfaceStringRulesOrBuilder- Returns:
- The suffix.
-
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 [json_name = "suffix"];- Specified by:
getSuffixBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for suffix.
-
hasContains
public boolean hasContains()Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9 [json_name = "contains"];- Specified by:
hasContainsin interfaceStringRulesOrBuilder- Returns:
- Whether the contains field is set.
-
getContains
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9 [json_name = "contains"];- Specified by:
getContainsin interfaceStringRulesOrBuilder- Returns:
- The contains.
-
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 [json_name = "contains"];- Specified by:
getContainsBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for contains.
-
hasNotContains
public boolean hasNotContains()NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23 [json_name = "notContains"];- Specified by:
hasNotContainsin interfaceStringRulesOrBuilder- Returns:
- Whether the notContains field is set.
-
getNotContains
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23 [json_name = "notContains"];- Specified by:
getNotContainsin interfaceStringRulesOrBuilder- Returns:
- The notContains.
-
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 [json_name = "notContains"];- Specified by:
getNotContainsBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for notContains.
-
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 [json_name = "in"];- Specified by:
getInListin interfaceStringRulesOrBuilder- 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 string in = 10 [json_name = "in"];- Specified by:
getInCountin interfaceStringRulesOrBuilder- Returns:
- The count of in.
-
getIn
In specifies that this field must be equal to one of the specified values
repeated string in = 10 [json_name = "in"];- Specified by:
getInin interfaceStringRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The in at the given index.
-
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 [json_name = "in"];- Specified by:
getInBytesin interfaceStringRulesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the in at the given index.
-
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 [json_name = "notIn"];- Specified by:
getNotInListin interfaceStringRulesOrBuilder- 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 string not_in = 11 [json_name = "notIn"];- Specified by:
getNotInCountin interfaceStringRulesOrBuilder- Returns:
- The count of notIn.
-
getNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11 [json_name = "notIn"];- Specified by:
getNotInin interfaceStringRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notIn at the given index.
-
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 [json_name = "notIn"];- Specified by:
getNotInBytesin interfaceStringRulesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the notIn at the given index.
-
hasEmail
public boolean hasEmail()Email specifies that the field must be a valid email address as defined by RFC 5322
bool email = 12 [json_name = "email"];- Specified by:
hasEmailin interfaceStringRulesOrBuilder- Returns:
- Whether the email field is set.
-
getEmail
public boolean getEmail()Email specifies that the field must be a valid email address as defined by RFC 5322
bool email = 12 [json_name = "email"];- Specified by:
getEmailin interfaceStringRulesOrBuilder- Returns:
- The email.
-
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).
bool hostname = 13 [json_name = "hostname"];- Specified by:
hasHostnamein interfaceStringRulesOrBuilder- Returns:
- Whether the hostname field is set.
-
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).
bool hostname = 13 [json_name = "hostname"];- Specified by:
getHostnamein interfaceStringRulesOrBuilder- Returns:
- The hostname.
-
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.
bool ip = 14 [json_name = "ip"];- Specified by:
hasIpin interfaceStringRulesOrBuilder- 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. Valid IPv6 addresses should not include surrounding square brackets.
bool ip = 14 [json_name = "ip"];- Specified by:
getIpin interfaceStringRulesOrBuilder- Returns:
- The ip.
-
hasIpv4
public boolean hasIpv4()Ipv4 specifies that the field must be a valid IPv4 address.
bool ipv4 = 15 [json_name = "ipv4"];- Specified by:
hasIpv4in interfaceStringRulesOrBuilder- Returns:
- Whether the ipv4 field is set.
-
getIpv4
public boolean getIpv4()Ipv4 specifies that the field must be a valid IPv4 address.
bool ipv4 = 15 [json_name = "ipv4"];- Specified by:
getIpv4in interfaceStringRulesOrBuilder- Returns:
- The ipv4.
-
hasIpv6
public boolean hasIpv6()Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
bool ipv6 = 16 [json_name = "ipv6"];- Specified by:
hasIpv6in interfaceStringRulesOrBuilder- Returns:
- Whether the ipv6 field is set.
-
getIpv6
public boolean getIpv6()Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
bool ipv6 = 16 [json_name = "ipv6"];- Specified by:
getIpv6in interfaceStringRulesOrBuilder- Returns:
- The ipv6.
-
hasUri
public boolean hasUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
bool uri = 17 [json_name = "uri"];- Specified by:
hasUriin interfaceStringRulesOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
public boolean getUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
bool uri = 17 [json_name = "uri"];- Specified by:
getUriin interfaceStringRulesOrBuilder- Returns:
- The uri.
-
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.
bool uri_ref = 18 [json_name = "uriRef"];- Specified by:
hasUriRefin interfaceStringRulesOrBuilder- Returns:
- Whether the uriRef field is set.
-
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.
bool uri_ref = 18 [json_name = "uriRef"];- Specified by:
getUriRefin interfaceStringRulesOrBuilder- Returns:
- The uriRef.
-
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).
bool address = 21 [json_name = "address"];- Specified by:
hasAddressin interfaceStringRulesOrBuilder- Returns:
- Whether the address field is set.
-
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).
bool address = 21 [json_name = "address"];- Specified by:
getAddressin interfaceStringRulesOrBuilder- Returns:
- The address.
-
hasUuid
public boolean hasUuid()Uuid specifies that the field must be a valid UUID as defined by RFC 4122
bool uuid = 22 [json_name = "uuid"];- Specified by:
hasUuidin interfaceStringRulesOrBuilder- Returns:
- Whether the uuid field is set.
-
getUuid
public boolean getUuid()Uuid specifies that the field must be a valid UUID as defined by RFC 4122
bool uuid = 22 [json_name = "uuid"];- Specified by:
getUuidin interfaceStringRulesOrBuilder- Returns:
- The uuid.
-
hasWellKnownRegex
public boolean hasWellKnownRegex()WellKnownRegex specifies a common well known pattern defined as a regex.
.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex"];- Specified by:
hasWellKnownRegexin interfaceStringRulesOrBuilder- Returns:
- Whether the wellKnownRegex field is set.
-
getWellKnownRegex
WellKnownRegex specifies a common well known pattern defined as a regex.
.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex"];- Specified by:
getWellKnownRegexin interfaceStringRulesOrBuilder- Returns:
- The wellKnownRegex.
-
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, json_name = "strict"];- Specified by:
hasStrictin interfaceStringRulesOrBuilder- Returns:
- Whether the strict field is set.
-
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, json_name = "strict"];- Specified by:
getStrictin interfaceStringRulesOrBuilder- Returns:
- The strict.
-
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 [json_name = "ignoreEmpty"];- Specified by:
hasIgnoreEmptyin interfaceStringRulesOrBuilder- 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 = 26 [json_name = "ignoreEmpty"];- Specified by:
getIgnoreEmptyin interfaceStringRulesOrBuilder- Returns:
- The ignoreEmpty.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static StringRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static 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 StringRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StringRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StringRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StringRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StringRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-