Package io.envoyproxy.pgv.validate
Class Validate.StringRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
io.envoyproxy.pgv.validate.Validate.StringRules.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.StringRulesOrBuilder,Cloneable
- Enclosing class:
- Validate.StringRules
public static final class Validate.StringRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder> implements Validate.StringRulesOrBuilder
StringRules describe the constraints applied to `string` valuesProtobuf type
validate.StringRules-
Method Summary
Modifier and Type Method Description Validate.StringRules.BuilderaddAllIn(Iterable<String> values)In specifies that this field must be equal to one of the specified valuesValidate.StringRules.BuilderaddAllNotIn(Iterable<String> values)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.StringRules.BuilderaddIn(String value)In specifies that this field must be equal to one of the specified valuesValidate.StringRules.BuilderaddInBytes(com.google.protobuf.ByteString value)In specifies that this field must be equal to one of the specified valuesValidate.StringRules.BuilderaddNotIn(String value)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.StringRules.BuilderaddNotInBytes(com.google.protobuf.ByteString value)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.StringRules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Validate.StringRulesbuild()Validate.StringRulesbuildPartial()Validate.StringRules.Builderclear()Validate.StringRules.BuilderclearAddress()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).Validate.StringRules.BuilderclearConst()Const specifies that this field must be exactly the specified valueValidate.StringRules.BuilderclearContains()Contains specifies that this field must have the specified substring anywhere in the string.Validate.StringRules.BuilderclearEmail()Email specifies that the field must be a valid email address as defined by RFC 5322Validate.StringRules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Validate.StringRules.BuilderclearHostname()Hostname specifies that the field must be a valid hostname as defined by RFC 1034.Validate.StringRules.BuilderclearIn()In specifies that this field must be equal to one of the specified valuesValidate.StringRules.BuilderclearIp()Ip specifies that the field must be a valid IP (v4 or v6) address.Validate.StringRules.BuilderclearIpv4()Ipv4 specifies that the field must be a valid IPv4 address.Validate.StringRules.BuilderclearIpv6()Ipv6 specifies that the field must be a valid IPv6 address.Validate.StringRules.BuilderclearLen()Len specifies that this field must be the specified number of characters (Unicode code points).Validate.StringRules.BuilderclearLenBytes()LenBytes specifies that this field must be the specified number of bytes at a minimumValidate.StringRules.BuilderclearMaxBytes()MaxBytes specifies that this field must be the specified number of bytes at a maximumValidate.StringRules.BuilderclearMaxLen()MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.Validate.StringRules.BuilderclearMinBytes()MinBytes specifies that this field must be the specified number of bytes at a minimumValidate.StringRules.BuilderclearMinLen()MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.Validate.StringRules.BuilderclearNotContains()NotContains specifies that this field cannot have the specified substring anywhere in the string.Validate.StringRules.BuilderclearNotIn()NotIn specifies that this field cannot be equal to one of the specified valuesValidate.StringRules.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Validate.StringRules.BuilderclearPattern()Pattern specifes that this field must match against the specified regular expression (RE2 syntax).Validate.StringRules.BuilderclearPrefix()Prefix specifies that this field must have the specified substring at the beginning of the string.Validate.StringRules.BuilderclearStrict()This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.Validate.StringRules.BuilderclearSuffix()Suffix specifies that this field must have the specified substring at the end of the string.Validate.StringRules.BuilderclearUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986Validate.StringRules.BuilderclearUriRef()UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.Validate.StringRules.BuilderclearUuid()Uuid specifies that the field must be a valid UUID as defined by RFC 4122Validate.StringRules.BuilderclearWellKnown()Validate.StringRules.BuilderclearWellKnownRegex()WellKnownRegex specifies a common well known pattern defined as a regex.Validate.StringRules.Builderclone()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.Validate.StringRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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 valuesStringgetPattern()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.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.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 5322booleanhasHostname()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()Validate.StringRules.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Validate.StringRules.BuildermergeFrom(com.google.protobuf.Message other)Validate.StringRules.BuildermergeFrom(Validate.StringRules other)Validate.StringRules.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Validate.StringRules.BuildersetAddress(boolean value)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).Validate.StringRules.BuildersetConst(String value)Const specifies that this field must be exactly the specified valueValidate.StringRules.BuildersetConstBytes(com.google.protobuf.ByteString value)Const specifies that this field must be exactly the specified valueValidate.StringRules.BuildersetContains(String value)Contains specifies that this field must have the specified substring anywhere in the string.Validate.StringRules.BuildersetContainsBytes(com.google.protobuf.ByteString value)Contains specifies that this field must have the specified substring anywhere in the string.Validate.StringRules.BuildersetEmail(boolean value)Email specifies that the field must be a valid email address as defined by RFC 5322Validate.StringRules.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Validate.StringRules.BuildersetHostname(boolean value)Hostname specifies that the field must be a valid hostname as defined by RFC 1034.Validate.StringRules.BuildersetIn(int index, String value)In specifies that this field must be equal to one of the specified valuesValidate.StringRules.BuildersetIp(boolean value)Ip specifies that the field must be a valid IP (v4 or v6) address.Validate.StringRules.BuildersetIpv4(boolean value)Ipv4 specifies that the field must be a valid IPv4 address.Validate.StringRules.BuildersetIpv6(boolean value)Ipv6 specifies that the field must be a valid IPv6 address.Validate.StringRules.BuildersetLen(long value)Len specifies that this field must be the specified number of characters (Unicode code points).Validate.StringRules.BuildersetLenBytes(long value)LenBytes specifies that this field must be the specified number of bytes at a minimumValidate.StringRules.BuildersetMaxBytes(long value)MaxBytes specifies that this field must be the specified number of bytes at a maximumValidate.StringRules.BuildersetMaxLen(long value)MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.Validate.StringRules.BuildersetMinBytes(long value)MinBytes specifies that this field must be the specified number of bytes at a minimumValidate.StringRules.BuildersetMinLen(long value)MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.Validate.StringRules.BuildersetNotContains(String value)NotContains specifies that this field cannot have the specified substring anywhere in the string.Validate.StringRules.BuildersetNotContainsBytes(com.google.protobuf.ByteString value)NotContains specifies that this field cannot have the specified substring anywhere in the string.Validate.StringRules.BuildersetNotIn(int index, String value)NotIn specifies that this field cannot be equal to one of the specified valuesValidate.StringRules.BuildersetPattern(String value)Pattern specifes that this field must match against the specified regular expression (RE2 syntax).Validate.StringRules.BuildersetPatternBytes(com.google.protobuf.ByteString value)Pattern specifes that this field must match against the specified regular expression (RE2 syntax).Validate.StringRules.BuildersetPrefix(String value)Prefix specifies that this field must have the specified substring at the beginning of the string.Validate.StringRules.BuildersetPrefixBytes(com.google.protobuf.ByteString value)Prefix specifies that this field must have the specified substring at the beginning of the string.Validate.StringRules.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Validate.StringRules.BuildersetStrict(boolean value)This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.Validate.StringRules.BuildersetSuffix(String value)Suffix specifies that this field must have the specified substring at the end of the string.Validate.StringRules.BuildersetSuffixBytes(com.google.protobuf.ByteString value)Suffix specifies that this field must have the specified substring at the end of the string.Validate.StringRules.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Validate.StringRules.BuildersetUri(boolean value)Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986Validate.StringRules.BuildersetUriRef(boolean value)UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.Validate.StringRules.BuildersetUuid(boolean value)Uuid specifies that the field must be a valid UUID as defined by RFC 4122Validate.StringRules.BuildersetWellKnownRegex(Validate.KnownRegex value)WellKnownRegex specifies a common well known pattern defined as a regex.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
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.Builder<Validate.StringRules.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
setField
public Validate.StringRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
clearField
public Validate.StringRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
clearOneof
public Validate.StringRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
setRepeatedField
public Validate.StringRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
addRepeatedField
public Validate.StringRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.StringRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
mergeFrom
public Validate.StringRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.StringRules.Builder>- Throws:
IOException
-
getWellKnownCase
- Specified by:
getWellKnownCasein interfaceValidate.StringRulesOrBuilder
-
clearWellKnown
-
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
-
setConst
Const specifies that this field must be exactly the specified value
optional string const = 1; -
clearConst
Const specifies that this field must be exactly the specified value
optional string const = 1; -
setConstBytes
Const specifies that this field must be exactly the specified value
optional string const = 1; -
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
-
setLen
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; -
clearLen
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; -
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
-
setMinLen
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; -
clearMinLen
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; -
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
-
setMaxLen
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; -
clearMaxLen
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; -
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
-
setLenBytes
LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20; -
clearLenBytes
LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20; -
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
-
setMinBytes
MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4; -
clearMinBytes
MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4; -
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
-
setMaxBytes
MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5; -
clearMaxBytes
MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5; -
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
-
setPattern
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; -
clearPattern
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6; -
setPatternBytes
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; -
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
-
setPrefix
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7; -
clearPrefix
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7; -
setPrefixBytes
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7; -
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
-
setSuffix
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8; -
clearSuffix
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8; -
setSuffixBytes
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8; -
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
-
setContains
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9; -
clearContains
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9; -
setContainsBytes
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9; -
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
-
setNotContains
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23; -
clearNotContains
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23; -
setNotContainsBytes
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23; -
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
-
setIn
In specifies that this field must be equal to one of the specified values
repeated string in = 10; -
addIn
In specifies that this field must be equal to one of the specified values
repeated string in = 10; -
addAllIn
In specifies that this field must be equal to one of the specified values
repeated string in = 10; -
clearIn
In specifies that this field must be equal to one of the specified values
repeated string in = 10; -
addInBytes
In specifies that this field must be equal to one of the specified values
repeated string in = 10; -
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
-
setNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11; -
addNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11; -
addAllNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11; -
clearNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11; -
addNotInBytes
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11; -
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
-
setEmail
Email specifies that the field must be a valid email address as defined by RFC 5322
optional bool email = 12; -
clearEmail
Email specifies that the field must be a valid email address as defined by RFC 5322
optional bool email = 12; -
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
-
setHostname
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; -
clearHostname
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; -
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
-
setIp
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; -
clearIp
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; -
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
-
setIpv4
Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15; -
clearIpv4
Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15; -
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
-
setIpv6
Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ipv6 = 16; -
clearIpv6
Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ipv6 = 16; -
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
-
setUri
Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
optional bool uri = 17; -
clearUri
Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
optional bool uri = 17; -
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
-
setUriRef
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; -
clearUriRef
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; -
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
-
setAddress
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; -
clearAddress
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; -
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
-
setUuid
Uuid specifies that the field must be a valid UUID as defined by RFC 4122
optional bool uuid = 22; -
clearUuid
Uuid specifies that the field must be a valid UUID as defined by RFC 4122
optional bool uuid = 22; -
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
-
setWellKnownRegex
WellKnownRegex specifies a common well known pattern defined as a regex.
optional .validate.KnownRegex well_known_regex = 24; -
clearWellKnownRegex
WellKnownRegex specifies a common well known pattern defined as a regex.
optional .validate.KnownRegex well_known_regex = 24; -
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
-
setStrict
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]; -
clearStrict
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]; -
setUnknownFields
public final Validate.StringRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-
mergeUnknownFields
public final Validate.StringRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
-