Package io.envoyproxy.pgv.validate
Class Validate.StringRules
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.pgv.validate.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` valuesProtobuf type
validate.StringRules- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidate.StringRules.BuilderStringRules describe the constraints applied to `string` valuesstatic classValidate.StringRules.WellKnownCaseNested 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 -
Field Summary
Fields Modifier and Type Field Description static intADDRESS_FIELD_NUMBERstatic intCONST_FIELD_NUMBERstatic intCONTAINS_FIELD_NUMBERstatic intEMAIL_FIELD_NUMBERstatic intHOSTNAME_FIELD_NUMBERstatic intIN_FIELD_NUMBERstatic intIP_FIELD_NUMBERstatic intIPV4_FIELD_NUMBERstatic intIPV6_FIELD_NUMBERstatic intLEN_BYTES_FIELD_NUMBERstatic intLEN_FIELD_NUMBERstatic intMAX_BYTES_FIELD_NUMBERstatic intMAX_LEN_FIELD_NUMBERstatic intMIN_BYTES_FIELD_NUMBERstatic intMIN_LEN_FIELD_NUMBERstatic intNOT_CONTAINS_FIELD_NUMBERstatic intNOT_IN_FIELD_NUMBERstatic com.google.protobuf.Parser<Validate.StringRules>PARSERDeprecated.static intPATTERN_FIELD_NUMBERstatic intPREFIX_FIELD_NUMBERstatic intSTRICT_FIELD_NUMBERstatic intSUFFIX_FIELD_NUMBERstatic intURI_FIELD_NUMBERstatic intURI_REF_FIELD_NUMBERstatic intUUID_FIELD_NUMBERstatic intWELL_KNOWN_REGEX_FIELD_NUMBER -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)booleangetAddress()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).StringgetConst()Const specifies that this field must be exactly the specified valuecom.google.protobuf.ByteStringgetConstBytes()Const specifies that this field must be exactly the specified valueStringgetContains()Contains specifies that this field must have the specified substring anywhere in the string.com.google.protobuf.ByteStringgetContainsBytes()Contains specifies that this field must have the specified substring anywhere in the string.static Validate.StringRulesgetDefaultInstance()Validate.StringRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEmail()Email specifies that the field must be a valid email address as defined by RFC 5322booleangetHostname()Hostname specifies that the field must be a valid hostname as defined by RFC 1034.StringgetIn(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 valuesintgetInCount()In specifies that this field must be equal to one of the specified valuescom.google.protobuf.ProtocolStringListgetInList()In 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).longgetLenBytes()LenBytes specifies that this field must be the specified number of bytes at a minimumlonggetMaxBytes()MaxBytes specifies that this field must be the specified number of bytes at a maximumlonggetMaxLen()MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.longgetMinBytes()MinBytes specifies that this field must be the specified number of bytes at a minimumlonggetMinLen()MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.StringgetNotContains()NotContains specifies that this field cannot have the specified substring anywhere in the string.com.google.protobuf.ByteStringgetNotContainsBytes()NotContains specifies that this field cannot have the specified substring anywhere in the string.StringgetNotIn(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 valuesintgetNotInCount()NotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.ProtocolStringListgetNotInList()NotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.Parser<Validate.StringRules>getParserForType()StringgetPattern()Pattern specifes that this field must match against the specified regular expression (RE2 syntax).com.google.protobuf.ByteStringgetPatternBytes()Pattern specifes that this field must match against the specified regular expression (RE2 syntax).StringgetPrefix()Prefix specifies that this field must have the specified substring at the beginning of the string.com.google.protobuf.ByteStringgetPrefixBytes()Prefix specifies that this field must have the specified substring at the beginning of the string.intgetSerializedSize()booleangetStrict()This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.StringgetSuffix()Suffix specifies that this field must have the specified substring at the end of the string.com.google.protobuf.ByteStringgetSuffixBytes()Suffix specifies that this field must have the specified substring at the end of the string.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleangetUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986booleangetUriRef()UriRef 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 4122Validate.StringRules.WellKnownCasegetWellKnownCase()Validate.KnownRegexgetWellKnownRegex()WellKnownRegex specifies a common well known pattern defined as a regex.booleanhasAddress()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).booleanhasConst()Const specifies that this field must be exactly the specified valuebooleanhasContains()Contains 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()booleanhasHostname()Hostname specifies that the field must be a valid hostname as defined by RFC 1034.booleanhasIp()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).booleanhasLenBytes()LenBytes specifies that this field must be the specified number of bytes at a minimumbooleanhasMaxBytes()MaxBytes specifies that this field must be the specified number of bytes at a maximumbooleanhasMaxLen()MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.booleanhasMinBytes()MinBytes specifies that this field must be the specified number of bytes at a minimumbooleanhasMinLen()MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.booleanhasNotContains()NotContains specifies that this field cannot have the specified substring anywhere in the string.booleanhasPattern()Pattern specifes that this field must match against the specified regular expression (RE2 syntax).booleanhasPrefix()Prefix specifies that this field must have the specified substring at the beginning of the string.booleanhasStrict()This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.booleanhasSuffix()Suffix 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 3986booleanhasUriRef()UriRef 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 4122booleanhasWellKnownRegex()WellKnownRegex specifies a common well known pattern defined as a regex.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Validate.StringRules.BuildernewBuilder()static Validate.StringRules.BuildernewBuilder(Validate.StringRules prototype)Validate.StringRules.BuildernewBuilderForType()protected Validate.StringRules.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)static Validate.StringRulesparseDelimitedFrom(InputStream input)static Validate.StringRulesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.StringRulesparseFrom(byte[] data)static Validate.StringRulesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.StringRulesparseFrom(com.google.protobuf.ByteString data)static Validate.StringRulesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.StringRulesparseFrom(com.google.protobuf.CodedInputStream input)static Validate.StringRulesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.StringRulesparseFrom(InputStream input)static Validate.StringRulesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Validate.StringRules>parser()Validate.StringRules.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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, wait
-
Field Details
-
CONST_FIELD_NUMBER
public static final int CONST_FIELD_NUMBER- See Also:
- Constant Field Values
-
LEN_FIELD_NUMBER
public static final int LEN_FIELD_NUMBER- See Also:
- Constant Field Values
-
MIN_LEN_FIELD_NUMBER
public static final int MIN_LEN_FIELD_NUMBER- See Also:
- Constant Field Values
-
MAX_LEN_FIELD_NUMBER
public static final int MAX_LEN_FIELD_NUMBER- See Also:
- Constant Field Values
-
LEN_BYTES_FIELD_NUMBER
public static final int LEN_BYTES_FIELD_NUMBER- See Also:
- Constant Field Values
-
MIN_BYTES_FIELD_NUMBER
public static final int MIN_BYTES_FIELD_NUMBER- See Also:
- Constant Field Values
-
MAX_BYTES_FIELD_NUMBER
public static final int MAX_BYTES_FIELD_NUMBER- See Also:
- Constant Field Values
-
PATTERN_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER- See Also:
- Constant Field Values
-
PREFIX_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER- See Also:
- Constant Field Values
-
SUFFIX_FIELD_NUMBER
public static final int SUFFIX_FIELD_NUMBER- See Also:
- Constant Field Values
-
CONTAINS_FIELD_NUMBER
public static final int CONTAINS_FIELD_NUMBER- See Also:
- Constant Field Values
-
NOT_CONTAINS_FIELD_NUMBER
public static final int NOT_CONTAINS_FIELD_NUMBER- See Also:
- Constant Field Values
-
IN_FIELD_NUMBER
public static final int IN_FIELD_NUMBER- See Also:
- Constant Field Values
-
NOT_IN_FIELD_NUMBER
public static final int NOT_IN_FIELD_NUMBER- See Also:
- Constant Field Values
-
EMAIL_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER- See Also:
- Constant Field Values
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER- See Also:
- Constant Field Values
-
IP_FIELD_NUMBER
public static final int IP_FIELD_NUMBER- See Also:
- Constant Field Values
-
IPV4_FIELD_NUMBER
public static final int IPV4_FIELD_NUMBER- See Also:
- Constant Field Values
-
IPV6_FIELD_NUMBER
public static final int IPV6_FIELD_NUMBER- See Also:
- Constant Field Values
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
- Constant Field Values
-
URI_REF_FIELD_NUMBER
public static final int URI_REF_FIELD_NUMBER- See Also:
- Constant Field Values
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER- See Also:
- Constant Field Values
-
UUID_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER- See Also:
- Constant Field Values
-
WELL_KNOWN_REGEX_FIELD_NUMBER
public static final int WELL_KNOWN_REGEX_FIELD_NUMBER- See Also:
- Constant Field Values
-
STRICT_FIELD_NUMBER
public static final int STRICT_FIELD_NUMBER- See Also:
- Constant Field Values
-
PARSER
Deprecated.
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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 interfaceValidate.StringRulesOrBuilder
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional string const = 1;- Specified by:
hasConstin interfaceValidate.StringRulesOrBuilder
-
getConst
Const specifies that this field must be exactly the specified value
optional string const = 1;- Specified by:
getConstin interfaceValidate.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:
getConstBytesin interfaceValidate.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:
hasLenin interfaceValidate.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:
getLenin interfaceValidate.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:
hasMinLenin interfaceValidate.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:
getMinLenin interfaceValidate.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:
hasMaxLenin interfaceValidate.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:
getMaxLenin interfaceValidate.StringRulesOrBuilder
-
hasLenBytes
public boolean hasLenBytes()LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20;- Specified by:
hasLenBytesin interfaceValidate.StringRulesOrBuilder
-
getLenBytes
public long getLenBytes()LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20;- Specified by:
getLenBytesin interfaceValidate.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:
hasMinBytesin interfaceValidate.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:
getMinBytesin interfaceValidate.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:
hasMaxBytesin interfaceValidate.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:
getMaxBytesin interfaceValidate.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:
hasPatternin interfaceValidate.StringRulesOrBuilder
-
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:
getPatternin interfaceValidate.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:
getPatternBytesin interfaceValidate.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:
hasPrefixin interfaceValidate.StringRulesOrBuilder
-
getPrefix
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;- Specified by:
getPrefixin interfaceValidate.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:
getPrefixBytesin interfaceValidate.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:
hasSuffixin interfaceValidate.StringRulesOrBuilder
-
getSuffix
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;- Specified by:
getSuffixin interfaceValidate.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:
getSuffixBytesin interfaceValidate.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:
hasContainsin interfaceValidate.StringRulesOrBuilder
-
getContains
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;- Specified by:
getContainsin interfaceValidate.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:
getContainsBytesin interfaceValidate.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:
hasNotContainsin interfaceValidate.StringRulesOrBuilder
-
getNotContains
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;- Specified by:
getNotContainsin interfaceValidate.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:
getNotContainsBytesin interfaceValidate.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:
getInListin interfaceValidate.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:
getInCountin interfaceValidate.StringRulesOrBuilder
-
getIn
In specifies that this field must be equal to one of the specified values
repeated string in = 10;- Specified by:
getInin interfaceValidate.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:
getInBytesin interfaceValidate.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:
getNotInListin interfaceValidate.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:
getNotInCountin interfaceValidate.StringRulesOrBuilder
-
getNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;- Specified by:
getNotInin interfaceValidate.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:
getNotInBytesin interfaceValidate.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:
hasEmailin interfaceValidate.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:
getEmailin interfaceValidate.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:
hasHostnamein interfaceValidate.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:
getHostnamein interfaceValidate.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:
hasIpin interfaceValidate.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:
getIpin interfaceValidate.StringRulesOrBuilder
-
hasIpv4
public boolean hasIpv4()Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15;- Specified by:
hasIpv4in interfaceValidate.StringRulesOrBuilder
-
getIpv4
public boolean getIpv4()Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15;- Specified by:
getIpv4in interfaceValidate.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:
hasIpv6in interfaceValidate.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:
getIpv6in interfaceValidate.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:
hasUriin interfaceValidate.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:
getUriin interfaceValidate.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:
hasUriRefin interfaceValidate.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:
getUriRefin interfaceValidate.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:
hasAddressin interfaceValidate.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:
getAddressin interfaceValidate.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:
hasUuidin interfaceValidate.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:
getUuidin interfaceValidate.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:
hasWellKnownRegexin interfaceValidate.StringRulesOrBuilder
-
getWellKnownRegex
WellKnownRegex specifies a common well known pattern defined as a regex.
optional .validate.KnownRegex well_known_regex = 24;- Specified by:
getWellKnownRegexin interfaceValidate.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:
hasStrictin interfaceValidate.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:
getStrictin interfaceValidate.StringRulesOrBuilder
-
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 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
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Validate.StringRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Validate.StringRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
parseFrom
public static Validate.StringRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException- Throws:
IOException
-
parseFrom
public static Validate.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 Validate.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
-