Package build.buf.validate
Class StringRules
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<StringRules>
build.buf.validate.StringRules
- All Implemented Interfaces:
StringRulesOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<StringRules>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class StringRules
extends com.google.protobuf.GeneratedMessage.ExtendableMessage<StringRules>
implements StringRulesOrBuilder
StringRules describes the rules applied to `string` values These rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.Protobuf type
buf.validate.StringRules- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStringRules describes the rules applied to `string` values These rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriterNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested 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 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 intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean`address` specifies that the field value must be either a valid hostname (for example, "example.com"), or a valid IP (v4 or v6) address (for example, "192.168.0.1", or "::1").getConst()`const` requires the field value to exactly match the specified value.com.google.protobuf.ByteString`const` requires the field value to exactly match the specified value.`contains` specifies that the field value must have the specified substring anywhere in the string.com.google.protobuf.ByteString`contains` specifies that the field value must have the specified substring anywhere in the string.static StringRulesstatic final com.google.protobuf.Descriptors.DescriptorbooleangetEmail()`email` specifies that the field value must be a valid email address, for example "foo@example.com".getExample(int index) `example` specifies values that the field may have.com.google.protobuf.ByteStringgetExampleBytes(int index) `example` specifies values that the field may have.int`example` specifies values that the field may have.com.google.protobuf.ProtocolStringList`example` specifies values that the field may have.boolean`host_and_port` specifies that the field value must be valid host/port pair—for example, "example.com:8080".boolean`hostname` specifies that the field value must be a valid hostname, for example "foo.example.com".getIn(int index) `in` specifies that the field value must be equal to one of the specified values.com.google.protobuf.ByteStringgetInBytes(int index) `in` specifies that the field value must be equal to one of the specified values.int`in` specifies that the field value must be equal to one of the specified values.com.google.protobuf.ProtocolStringList`in` specifies that the field value must be equal to one of the specified values.booleangetIp()`ip` specifies that the field value must be a valid IP (v4 or v6) address.boolean`ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix—for example, "192.168.0.0/16" or "2001:0DB8:ABCD:0012::0/64".booleangetIpv4()`ipv4` specifies that the field value must be a valid IPv4 address—for example "192.168.5.21".boolean`ipv4_prefix` specifies that the field value must be a valid IPv4 prefix, for example "192.168.0.0/16".boolean`ipv4_with_prefixlen` specifies that the field value must be a valid IPv4 address with prefix length—for example, "192.168.5.21/16".booleangetIpv6()`ipv6` specifies that the field value must be a valid IPv6 address—for example "::1", or "d7a:115c:a1e0:ab12:4843:cd96:626b:430b".boolean`ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for example, "2001:0DB8:ABCD:0012::0/64".boolean`ipv6_with_prefixlen` specifies that the field value must be a valid IPv6 address with prefix length—for example, "2001:0DB8:ABCD:0012::F1/64".boolean`ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6) address with prefix length—for example, "192.168.5.21/16" or "2001:0DB8:ABCD:0012::F1/64".longgetLen()`len` dictates that the field value must have the specified number of characters (Unicode code points), which may differ from the number of bytes in the string.long`len_bytes` dictates that the field value must have the specified number of bytes.long`max_bytes` specifies that the field value must have no more than the specified number of bytes.long`max_len` specifies that the field value must have no more than the specified number of characters (Unicode code points), which may differ from the number of bytes in the string.long`min_bytes` specifies that the field value must have at least the specified number of bytes.long`min_len` specifies that the field value must have at least the specified number of characters (Unicode code points), which may differ from the number of bytes in the string.`not_contains` specifies that the field value must not have the specified substring anywhere in the string.com.google.protobuf.ByteString`not_contains` specifies that the field value must not have the specified substring anywhere in the string.getNotIn(int index) `not_in` specifies that the field value cannot be equal to any of the specified values.com.google.protobuf.ByteStringgetNotInBytes(int index) `not_in` specifies that the field value cannot be equal to any of the specified values.int`not_in` specifies that the field value cannot be equal to any of the specified values.com.google.protobuf.ProtocolStringList`not_in` specifies that the field value cannot be equal to any of the specified values.com.google.protobuf.Parser<StringRules> `pattern` specifies that the field value must match the specified regular expression (RE2 syntax), with the expression provided without any delimiters.com.google.protobuf.ByteString`pattern` specifies that the field value must match the specified regular expression (RE2 syntax), with the expression provided without any delimiters.`prefix` specifies that the field value must have the specified substring at the beginning of the string.com.google.protobuf.ByteString`prefix` specifies that the field value 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 the field value must have the specified substring at the end of the string.com.google.protobuf.ByteString`suffix` specifies that the field value must have the specified substring at the end of the string.booleangetTuuid()`tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes omitted.booleangetUri()`uri` specifies that the field value must be a valid URI, for example "https://example.com/foo/bar?baz=quux#frag".boolean`uri_ref` specifies that the field value must be a valid URI Reference—either a URI such as "https://example.com/foo/bar?baz=quux#frag", or a Relative Reference such as "./foo/bar?query".booleangetUuid()`uuid` specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).`well_known_regex` specifies a common well-known pattern defined as a regex.boolean`address` specifies that the field value must be either a valid hostname (for example, "example.com"), or a valid IP (v4 or v6) address (for example, "192.168.0.1", or "::1").booleanhasConst()`const` requires the field value to exactly match the specified value.boolean`contains` specifies that the field value must have the specified substring anywhere in the string.booleanhasEmail()`email` specifies that the field value must be a valid email address, for example "foo@example.com".inthashCode()boolean`host_and_port` specifies that the field value must be valid host/port pair—for example, "example.com:8080".boolean`hostname` specifies that the field value must be a valid hostname, for example "foo.example.com".booleanhasIp()`ip` specifies that the field value must be a valid IP (v4 or v6) address.boolean`ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix—for example, "192.168.0.0/16" or "2001:0DB8:ABCD:0012::0/64".booleanhasIpv4()`ipv4` specifies that the field value must be a valid IPv4 address—for example "192.168.5.21".boolean`ipv4_prefix` specifies that the field value must be a valid IPv4 prefix, for example "192.168.0.0/16".boolean`ipv4_with_prefixlen` specifies that the field value must be a valid IPv4 address with prefix length—for example, "192.168.5.21/16".booleanhasIpv6()`ipv6` specifies that the field value must be a valid IPv6 address—for example "::1", or "d7a:115c:a1e0:ab12:4843:cd96:626b:430b".boolean`ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for example, "2001:0DB8:ABCD:0012::0/64".boolean`ipv6_with_prefixlen` specifies that the field value must be a valid IPv6 address with prefix length—for example, "2001:0DB8:ABCD:0012::F1/64".boolean`ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6) address with prefix length—for example, "192.168.5.21/16" or "2001:0DB8:ABCD:0012::F1/64".booleanhasLen()`len` dictates that the field value must have the specified number of characters (Unicode code points), which may differ from the number of bytes in the string.boolean`len_bytes` dictates that the field value must have the specified number of bytes.boolean`max_bytes` specifies that the field value must have no more than the specified number of bytes.boolean`max_len` specifies that the field value must have no more than the specified number of characters (Unicode code points), which may differ from the number of bytes in the string.boolean`min_bytes` specifies that the field value must have at least the specified number of bytes.boolean`min_len` specifies that the field value must have at least the specified number of characters (Unicode code points), which may differ from the number of bytes in the string.boolean`not_contains` specifies that the field value must not have the specified substring anywhere in the string.boolean`pattern` specifies that the field value must match the specified regular expression (RE2 syntax), with the expression provided without any delimiters.boolean`prefix` specifies that the field value 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.boolean`suffix` specifies that the field value must have the specified substring at the end of the string.booleanhasTuuid()`tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes omitted.booleanhasUri()`uri` specifies that the field value must be a valid URI, for example "https://example.com/foo/bar?baz=quux#frag".boolean`uri_ref` specifies that the field value must be a valid URI Reference—either a URI such as "https://example.com/foo/bar?baz=quux#frag", or a Relative Reference such as "./foo/bar?query".booleanhasUuid()`uuid` specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).boolean`well_known_regex` specifies a common well-known pattern defined as a regex.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic StringRules.Builderstatic StringRules.BuildernewBuilder(StringRules prototype) protected StringRules.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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.GeneratedMessage.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriterMethods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
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.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtensionMethods 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:
-
TUUID_FIELD_NUMBER
public static final int TUUID_FIELD_NUMBER- See Also:
-
IP_WITH_PREFIXLEN_FIELD_NUMBER
public static final int IP_WITH_PREFIXLEN_FIELD_NUMBER- See Also:
-
IPV4_WITH_PREFIXLEN_FIELD_NUMBER
public static final int IPV4_WITH_PREFIXLEN_FIELD_NUMBER- See Also:
-
IPV6_WITH_PREFIXLEN_FIELD_NUMBER
public static final int IPV6_WITH_PREFIXLEN_FIELD_NUMBER- See Also:
-
IP_PREFIX_FIELD_NUMBER
public static final int IP_PREFIX_FIELD_NUMBER- See Also:
-
IPV4_PREFIX_FIELD_NUMBER
public static final int IPV4_PREFIX_FIELD_NUMBER- See Also:
-
IPV6_PREFIX_FIELD_NUMBER
public static final int IPV6_PREFIX_FIELD_NUMBER- See Also:
-
HOST_AND_PORT_FIELD_NUMBER
public static final int HOST_AND_PORT_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:
-
EXAMPLE_FIELD_NUMBER
public static final int EXAMPLE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getWellKnownCase
- Specified by:
getWellKnownCasein interfaceStringRulesOrBuilder
-
hasConst
public boolean hasConst()`const` requires the field value to exactly match the specified value. If the field value doesn't match, an error message is generated. ```proto message MyString { // value must equal `hello` string value = 1 [(buf.validate.field).string.const = "hello"]; } ```optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... }- Specified by:
hasConstin interfaceStringRulesOrBuilder- Returns:
- Whether the const field is set.
-
getConst
`const` requires the field value to exactly match the specified value. If the field value doesn't match, an error message is generated. ```proto message MyString { // value must equal `hello` string value = 1 [(buf.validate.field).string.const = "hello"]; } ```optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... }- Specified by:
getConstin interfaceStringRulesOrBuilder- Returns:
- The const.
-
getConstBytes
public com.google.protobuf.ByteString getConstBytes()`const` requires the field value to exactly match the specified value. If the field value doesn't match, an error message is generated. ```proto message MyString { // value must equal `hello` string value = 1 [(buf.validate.field).string.const = "hello"]; } ```optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... }- Specified by:
getConstBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for const.
-
hasLen
public boolean hasLen()`len` dictates that the field value must have the specified number of characters (Unicode code points), which may differ from the number of bytes in the string. If the field value does not meet the specified length, an error message will be generated. ```proto message MyString { // value length must be 5 characters string value = 1 [(buf.validate.field).string.len = 5]; } ```optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... }- Specified by:
hasLenin interfaceStringRulesOrBuilder- Returns:
- Whether the len field is set.
-
getLen
public long getLen()`len` dictates that the field value must have the specified number of characters (Unicode code points), which may differ from the number of bytes in the string. If the field value does not meet the specified length, an error message will be generated. ```proto message MyString { // value length must be 5 characters string value = 1 [(buf.validate.field).string.len = 5]; } ```optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... }- Specified by:
getLenin interfaceStringRulesOrBuilder- Returns:
- The len.
-
hasMinLen
public boolean hasMinLen()`min_len` specifies that the field value must have at least the specified number of characters (Unicode code points), which may differ from the number of bytes in the string. If the field value contains fewer characters, an error message will be generated. ```proto message MyString { // value length must be at least 3 characters string value = 1 [(buf.validate.field).string.min_len = 3]; } ```optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... }- Specified by:
hasMinLenin interfaceStringRulesOrBuilder- Returns:
- Whether the minLen field is set.
-
getMinLen
public long getMinLen()`min_len` specifies that the field value must have at least the specified number of characters (Unicode code points), which may differ from the number of bytes in the string. If the field value contains fewer characters, an error message will be generated. ```proto message MyString { // value length must be at least 3 characters string value = 1 [(buf.validate.field).string.min_len = 3]; } ```optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... }- Specified by:
getMinLenin interfaceStringRulesOrBuilder- Returns:
- The minLen.
-
hasMaxLen
public boolean hasMaxLen()`max_len` specifies that the field value must have no more than the specified number of characters (Unicode code points), which may differ from the number of bytes in the string. If the field value contains more characters, an error message will be generated. ```proto message MyString { // value length must be at most 10 characters string value = 1 [(buf.validate.field).string.max_len = 10]; } ```optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... }- Specified by:
hasMaxLenin interfaceStringRulesOrBuilder- Returns:
- Whether the maxLen field is set.
-
getMaxLen
public long getMaxLen()`max_len` specifies that the field value must have no more than the specified number of characters (Unicode code points), which may differ from the number of bytes in the string. If the field value contains more characters, an error message will be generated. ```proto message MyString { // value length must be at most 10 characters string value = 1 [(buf.validate.field).string.max_len = 10]; } ```optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... }- Specified by:
getMaxLenin interfaceStringRulesOrBuilder- Returns:
- The maxLen.
-
hasLenBytes
public boolean hasLenBytes()`len_bytes` dictates that the field value must have the specified number of bytes. If the field value does not match the specified length in bytes, an error message will be generated. ```proto message MyString { // value length must be 6 bytes string value = 1 [(buf.validate.field).string.len_bytes = 6]; } ```optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... }- Specified by:
hasLenBytesin interfaceStringRulesOrBuilder- Returns:
- Whether the lenBytes field is set.
-
getLenBytes
public long getLenBytes()`len_bytes` dictates that the field value must have the specified number of bytes. If the field value does not match the specified length in bytes, an error message will be generated. ```proto message MyString { // value length must be 6 bytes string value = 1 [(buf.validate.field).string.len_bytes = 6]; } ```optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... }- Specified by:
getLenBytesin interfaceStringRulesOrBuilder- Returns:
- The lenBytes.
-
hasMinBytes
public boolean hasMinBytes()`min_bytes` specifies that the field value must have at least the specified number of bytes. If the field value contains fewer bytes, an error message will be generated. ```proto message MyString { // value length must be at least 4 bytes string value = 1 [(buf.validate.field).string.min_bytes = 4]; } ```optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... }- Specified by:
hasMinBytesin interfaceStringRulesOrBuilder- Returns:
- Whether the minBytes field is set.
-
getMinBytes
public long getMinBytes()`min_bytes` specifies that the field value must have at least the specified number of bytes. If the field value contains fewer bytes, an error message will be generated. ```proto message MyString { // value length must be at least 4 bytes string value = 1 [(buf.validate.field).string.min_bytes = 4]; } ```optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... }- Specified by:
getMinBytesin interfaceStringRulesOrBuilder- Returns:
- The minBytes.
-
hasMaxBytes
public boolean hasMaxBytes()`max_bytes` specifies that the field value must have no more than the specified number of bytes. If the field value contains more bytes, an error message will be generated. ```proto message MyString { // value length must be at most 8 bytes string value = 1 [(buf.validate.field).string.max_bytes = 8]; } ```optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... }- Specified by:
hasMaxBytesin interfaceStringRulesOrBuilder- Returns:
- Whether the maxBytes field is set.
-
getMaxBytes
public long getMaxBytes()`max_bytes` specifies that the field value must have no more than the specified number of bytes. If the field value contains more bytes, an error message will be generated. ```proto message MyString { // value length must be at most 8 bytes string value = 1 [(buf.validate.field).string.max_bytes = 8]; } ```optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... }- Specified by:
getMaxBytesin interfaceStringRulesOrBuilder- Returns:
- The maxBytes.
-
hasPattern
public boolean hasPattern()`pattern` specifies that the field value must match the specified regular expression (RE2 syntax), with the expression provided without any delimiters. If the field value doesn't match the regular expression, an error message will be generated. ```proto message MyString { // value does not match regex pattern `^[a-zA-Z]//$` string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; } ```optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... }- Specified by:
hasPatternin interfaceStringRulesOrBuilder- Returns:
- Whether the pattern field is set.
-
getPattern
`pattern` specifies that the field value must match the specified regular expression (RE2 syntax), with the expression provided without any delimiters. If the field value doesn't match the regular expression, an error message will be generated. ```proto message MyString { // value does not match regex pattern `^[a-zA-Z]//$` string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; } ```optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... }- Specified by:
getPatternin interfaceStringRulesOrBuilder- Returns:
- The pattern.
-
getPatternBytes
public com.google.protobuf.ByteString getPatternBytes()`pattern` specifies that the field value must match the specified regular expression (RE2 syntax), with the expression provided without any delimiters. If the field value doesn't match the regular expression, an error message will be generated. ```proto message MyString { // value does not match regex pattern `^[a-zA-Z]//$` string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; } ```optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... }- Specified by:
getPatternBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for pattern.
-
hasPrefix
public boolean hasPrefix()`prefix` specifies that the field value must have the specified substring at the beginning of the string. If the field value doesn't start with the specified prefix, an error message will be generated. ```proto message MyString { // value does not have prefix `pre` string value = 1 [(buf.validate.field).string.prefix = "pre"]; } ```optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... }- Specified by:
hasPrefixin interfaceStringRulesOrBuilder- Returns:
- Whether the prefix field is set.
-
getPrefix
`prefix` specifies that the field value must have the specified substring at the beginning of the string. If the field value doesn't start with the specified prefix, an error message will be generated. ```proto message MyString { // value does not have prefix `pre` string value = 1 [(buf.validate.field).string.prefix = "pre"]; } ```optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... }- Specified by:
getPrefixin interfaceStringRulesOrBuilder- Returns:
- The prefix.
-
getPrefixBytes
public com.google.protobuf.ByteString getPrefixBytes()`prefix` specifies that the field value must have the specified substring at the beginning of the string. If the field value doesn't start with the specified prefix, an error message will be generated. ```proto message MyString { // value does not have prefix `pre` string value = 1 [(buf.validate.field).string.prefix = "pre"]; } ```optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... }- Specified by:
getPrefixBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for prefix.
-
hasSuffix
public boolean hasSuffix()`suffix` specifies that the field value must have the specified substring at the end of the string. If the field value doesn't end with the specified suffix, an error message will be generated. ```proto message MyString { // value does not have suffix `post` string value = 1 [(buf.validate.field).string.suffix = "post"]; } ```optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... }- Specified by:
hasSuffixin interfaceStringRulesOrBuilder- Returns:
- Whether the suffix field is set.
-
getSuffix
`suffix` specifies that the field value must have the specified substring at the end of the string. If the field value doesn't end with the specified suffix, an error message will be generated. ```proto message MyString { // value does not have suffix `post` string value = 1 [(buf.validate.field).string.suffix = "post"]; } ```optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... }- Specified by:
getSuffixin interfaceStringRulesOrBuilder- Returns:
- The suffix.
-
getSuffixBytes
public com.google.protobuf.ByteString getSuffixBytes()`suffix` specifies that the field value must have the specified substring at the end of the string. If the field value doesn't end with the specified suffix, an error message will be generated. ```proto message MyString { // value does not have suffix `post` string value = 1 [(buf.validate.field).string.suffix = "post"]; } ```optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... }- Specified by:
getSuffixBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for suffix.
-
hasContains
public boolean hasContains()`contains` specifies that the field value must have the specified substring anywhere in the string. If the field value doesn't contain the specified substring, an error message will be generated. ```proto message MyString { // value does not contain substring `inside`. string value = 1 [(buf.validate.field).string.contains = "inside"]; } ```optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... }- Specified by:
hasContainsin interfaceStringRulesOrBuilder- Returns:
- Whether the contains field is set.
-
getContains
`contains` specifies that the field value must have the specified substring anywhere in the string. If the field value doesn't contain the specified substring, an error message will be generated. ```proto message MyString { // value does not contain substring `inside`. string value = 1 [(buf.validate.field).string.contains = "inside"]; } ```optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... }- Specified by:
getContainsin interfaceStringRulesOrBuilder- Returns:
- The contains.
-
getContainsBytes
public com.google.protobuf.ByteString getContainsBytes()`contains` specifies that the field value must have the specified substring anywhere in the string. If the field value doesn't contain the specified substring, an error message will be generated. ```proto message MyString { // value does not contain substring `inside`. string value = 1 [(buf.validate.field).string.contains = "inside"]; } ```optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... }- Specified by:
getContainsBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for contains.
-
hasNotContains
public boolean hasNotContains()`not_contains` specifies that the field value must not have the specified substring anywhere in the string. If the field value contains the specified substring, an error message will be generated. ```proto message MyString { // value contains substring `inside`. string value = 1 [(buf.validate.field).string.not_contains = "inside"]; } ```optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... }- Specified by:
hasNotContainsin interfaceStringRulesOrBuilder- Returns:
- Whether the notContains field is set.
-
getNotContains
`not_contains` specifies that the field value must not have the specified substring anywhere in the string. If the field value contains the specified substring, an error message will be generated. ```proto message MyString { // value contains substring `inside`. string value = 1 [(buf.validate.field).string.not_contains = "inside"]; } ```optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... }- Specified by:
getNotContainsin interfaceStringRulesOrBuilder- Returns:
- The notContains.
-
getNotContainsBytes
public com.google.protobuf.ByteString getNotContainsBytes()`not_contains` specifies that the field value must not have the specified substring anywhere in the string. If the field value contains the specified substring, an error message will be generated. ```proto message MyString { // value contains substring `inside`. string value = 1 [(buf.validate.field).string.not_contains = "inside"]; } ```optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... }- Specified by:
getNotContainsBytesin interfaceStringRulesOrBuilder- Returns:
- The bytes for notContains.
-
getInList
public com.google.protobuf.ProtocolStringList getInList()`in` specifies that the field value must be equal to one of the specified values. If the field value isn't one of the specified values, an error message will be generated. ```proto message MyString { // value must be in list ["apple", "banana"] string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; } ```repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... }- Specified by:
getInListin interfaceStringRulesOrBuilder- Returns:
- A list containing the in.
-
getInCount
public int getInCount()`in` specifies that the field value must be equal to one of the specified values. If the field value isn't one of the specified values, an error message will be generated. ```proto message MyString { // value must be in list ["apple", "banana"] string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; } ```repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... }- Specified by:
getInCountin interfaceStringRulesOrBuilder- Returns:
- The count of in.
-
getIn
`in` specifies that the field value must be equal to one of the specified values. If the field value isn't one of the specified values, an error message will be generated. ```proto message MyString { // value must be in list ["apple", "banana"] string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; } ```repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... }- 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 the field value must be equal to one of the specified values. If the field value isn't one of the specified values, an error message will be generated. ```proto message MyString { // value must be in list ["apple", "banana"] string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; } ```repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... }- 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()`not_in` specifies that the field value cannot be equal to any of the specified values. If the field value is one of the specified values, an error message will be generated. ```proto message MyString { // value must not be in list ["orange", "grape"] string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; } ```repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... }- Specified by:
getNotInListin interfaceStringRulesOrBuilder- Returns:
- A list containing the notIn.
-
getNotInCount
public int getNotInCount()`not_in` specifies that the field value cannot be equal to any of the specified values. If the field value is one of the specified values, an error message will be generated. ```proto message MyString { // value must not be in list ["orange", "grape"] string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; } ```repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... }- Specified by:
getNotInCountin interfaceStringRulesOrBuilder- Returns:
- The count of notIn.
-
getNotIn
`not_in` specifies that the field value cannot be equal to any of the specified values. If the field value is one of the specified values, an error message will be generated. ```proto message MyString { // value must not be in list ["orange", "grape"] string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; } ```repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... }- 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) `not_in` specifies that the field value cannot be equal to any of the specified values. If the field value is one of the specified values, an error message will be generated. ```proto message MyString { // value must not be in list ["orange", "grape"] string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; } ```repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... }- 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 value must be a valid email address, for example "foo@example.com". Conforms to the definition for a valid email address from the [HTML standard](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address). Note that this standard willfully deviates from [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322), which allows many unexpected forms of email addresses and will easily match a typographical error. If the field value isn't a valid email address, an error message will be generated. ```proto message MyString { // value must be a valid email address string value = 1 [(buf.validate.field).string.email = true]; } ```bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... }- Specified by:
hasEmailin interfaceStringRulesOrBuilder- Returns:
- Whether the email field is set.
-
getEmail
public boolean getEmail()`email` specifies that the field value must be a valid email address, for example "foo@example.com". Conforms to the definition for a valid email address from the [HTML standard](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address). Note that this standard willfully deviates from [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322), which allows many unexpected forms of email addresses and will easily match a typographical error. If the field value isn't a valid email address, an error message will be generated. ```proto message MyString { // value must be a valid email address string value = 1 [(buf.validate.field).string.email = true]; } ```bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... }- Specified by:
getEmailin interfaceStringRulesOrBuilder- Returns:
- The email.
-
hasHostname
public boolean hasHostname()`hostname` specifies that the field value must be a valid hostname, for example "foo.example.com". A valid hostname follows the rules below: - The name consists of one or more labels, separated by a dot ("."). - Each label can be 1 to 63 alphanumeric characters. - A label can contain hyphens ("-"), but must not start or end with a hyphen. - The right-most label must not be digits only. - The name can have a trailing dot—for example, "foo.example.com.". - The name can be 253 characters at most, excluding the optional trailing dot. If the field value isn't a valid hostname, an error message will be generated. ```proto message MyString { // value must be a valid hostname string value = 1 [(buf.validate.field).string.hostname = true]; } ```bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... }- Specified by:
hasHostnamein interfaceStringRulesOrBuilder- Returns:
- Whether the hostname field is set.
-
getHostname
public boolean getHostname()`hostname` specifies that the field value must be a valid hostname, for example "foo.example.com". A valid hostname follows the rules below: - The name consists of one or more labels, separated by a dot ("."). - Each label can be 1 to 63 alphanumeric characters. - A label can contain hyphens ("-"), but must not start or end with a hyphen. - The right-most label must not be digits only. - The name can have a trailing dot—for example, "foo.example.com.". - The name can be 253 characters at most, excluding the optional trailing dot. If the field value isn't a valid hostname, an error message will be generated. ```proto message MyString { // value must be a valid hostname string value = 1 [(buf.validate.field).string.hostname = true]; } ```bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... }- Specified by:
getHostnamein interfaceStringRulesOrBuilder- Returns:
- The hostname.
-
hasIp
public boolean hasIp()`ip` specifies that the field value must be a valid IP (v4 or v6) address. IPv4 addresses are expected in the dotted decimal format—for example, "192.168.5.21". IPv6 addresses are expected in their text representation—for example, "::1", or "2001:0DB8:ABCD:0012::0". Both formats are well-defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone identifiers for IPv6 addresses (for example, "fe80::a%en1") are supported. If the field value isn't a valid IP address, an error message will be generated. ```proto message MyString { // value must be a valid IP address string value = 1 [(buf.validate.field).string.ip = true]; } ```bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... }- Specified by:
hasIpin interfaceStringRulesOrBuilder- Returns:
- Whether the ip field is set.
-
getIp
public boolean getIp()`ip` specifies that the field value must be a valid IP (v4 or v6) address. IPv4 addresses are expected in the dotted decimal format—for example, "192.168.5.21". IPv6 addresses are expected in their text representation—for example, "::1", or "2001:0DB8:ABCD:0012::0". Both formats are well-defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone identifiers for IPv6 addresses (for example, "fe80::a%en1") are supported. If the field value isn't a valid IP address, an error message will be generated. ```proto message MyString { // value must be a valid IP address string value = 1 [(buf.validate.field).string.ip = true]; } ```bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... }- Specified by:
getIpin interfaceStringRulesOrBuilder- Returns:
- The ip.
-
hasIpv4
public boolean hasIpv4()`ipv4` specifies that the field value must be a valid IPv4 address—for example "192.168.5.21". If the field value isn't a valid IPv4 address, an error message will be generated. ```proto message MyString { // value must be a valid IPv4 address string value = 1 [(buf.validate.field).string.ipv4 = true]; } ```bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... }- Specified by:
hasIpv4in interfaceStringRulesOrBuilder- Returns:
- Whether the ipv4 field is set.
-
getIpv4
public boolean getIpv4()`ipv4` specifies that the field value must be a valid IPv4 address—for example "192.168.5.21". If the field value isn't a valid IPv4 address, an error message will be generated. ```proto message MyString { // value must be a valid IPv4 address string value = 1 [(buf.validate.field).string.ipv4 = true]; } ```bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... }- Specified by:
getIpv4in interfaceStringRulesOrBuilder- Returns:
- The ipv4.
-
hasIpv6
public boolean hasIpv6()`ipv6` specifies that the field value must be a valid IPv6 address—for example "::1", or "d7a:115c:a1e0:ab12:4843:cd96:626b:430b". If the field value is not a valid IPv6 address, an error message will be generated. ```proto message MyString { // value must be a valid IPv6 address string value = 1 [(buf.validate.field).string.ipv6 = true]; } ```bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... }- Specified by:
hasIpv6in interfaceStringRulesOrBuilder- Returns:
- Whether the ipv6 field is set.
-
getIpv6
public boolean getIpv6()`ipv6` specifies that the field value must be a valid IPv6 address—for example "::1", or "d7a:115c:a1e0:ab12:4843:cd96:626b:430b". If the field value is not a valid IPv6 address, an error message will be generated. ```proto message MyString { // value must be a valid IPv6 address string value = 1 [(buf.validate.field).string.ipv6 = true]; } ```bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... }- Specified by:
getIpv6in interfaceStringRulesOrBuilder- Returns:
- The ipv6.
-
hasUri
public boolean hasUri()`uri` specifies that the field value must be a valid URI, for example "https://example.com/foo/bar?baz=quux#frag". URI is defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)). If the field value isn't a valid URI, an error message will be generated. ```proto message MyString { // value must be a valid URI string value = 1 [(buf.validate.field).string.uri = true]; } ```bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... }- Specified by:
hasUriin interfaceStringRulesOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
public boolean getUri()`uri` specifies that the field value must be a valid URI, for example "https://example.com/foo/bar?baz=quux#frag". URI is defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)). If the field value isn't a valid URI, an error message will be generated. ```proto message MyString { // value must be a valid URI string value = 1 [(buf.validate.field).string.uri = true]; } ```bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... }- Specified by:
getUriin interfaceStringRulesOrBuilder- Returns:
- The uri.
-
hasUriRef
public boolean hasUriRef()`uri_ref` specifies that the field value must be a valid URI Reference—either a URI such as "https://example.com/foo/bar?baz=quux#frag", or a Relative Reference such as "./foo/bar?query". URI, URI Reference, and Relative Reference are defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)). If the field value isn't a valid URI Reference, an error message will be generated. ```proto message MyString { // value must be a valid URI Reference string value = 1 [(buf.validate.field).string.uri_ref = true]; } ```bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... }- Specified by:
hasUriRefin interfaceStringRulesOrBuilder- Returns:
- Whether the uriRef field is set.
-
getUriRef
public boolean getUriRef()`uri_ref` specifies that the field value must be a valid URI Reference—either a URI such as "https://example.com/foo/bar?baz=quux#frag", or a Relative Reference such as "./foo/bar?query". URI, URI Reference, and Relative Reference are defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)). If the field value isn't a valid URI Reference, an error message will be generated. ```proto message MyString { // value must be a valid URI Reference string value = 1 [(buf.validate.field).string.uri_ref = true]; } ```bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... }- Specified by:
getUriRefin interfaceStringRulesOrBuilder- Returns:
- The uriRef.
-
hasAddress
public boolean hasAddress()`address` specifies that the field value must be either a valid hostname (for example, "example.com"), or a valid IP (v4 or v6) address (for example, "192.168.0.1", or "::1"). If the field value isn't a valid hostname or IP, an error message will be generated. ```proto message MyString { // value must be a valid hostname, or ip address string value = 1 [(buf.validate.field).string.address = true]; } ```bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... }- Specified by:
hasAddressin interfaceStringRulesOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
public boolean getAddress()`address` specifies that the field value must be either a valid hostname (for example, "example.com"), or a valid IP (v4 or v6) address (for example, "192.168.0.1", or "::1"). If the field value isn't a valid hostname or IP, an error message will be generated. ```proto message MyString { // value must be a valid hostname, or ip address string value = 1 [(buf.validate.field).string.address = true]; } ```bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... }- Specified by:
getAddressin interfaceStringRulesOrBuilder- Returns:
- The address.
-
hasUuid
public boolean hasUuid()`uuid` specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the field value isn't a valid UUID, an error message will be generated. ```proto message MyString { // value must be a valid UUID string value = 1 [(buf.validate.field).string.uuid = true]; } ```bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... }- Specified by:
hasUuidin interfaceStringRulesOrBuilder- Returns:
- Whether the uuid field is set.
-
getUuid
public boolean getUuid()`uuid` specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the field value isn't a valid UUID, an error message will be generated. ```proto message MyString { // value must be a valid UUID string value = 1 [(buf.validate.field).string.uuid = true]; } ```bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... }- Specified by:
getUuidin interfaceStringRulesOrBuilder- Returns:
- The uuid.
-
hasTuuid
public boolean hasTuuid()`tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes omitted. If the field value isn't a valid UUID without dashes, an error message will be generated. ```proto message MyString { // value must be a valid trimmed UUID string value = 1 [(buf.validate.field).string.tuuid = true]; } ```bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... }- Specified by:
hasTuuidin interfaceStringRulesOrBuilder- Returns:
- Whether the tuuid field is set.
-
getTuuid
public boolean getTuuid()`tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes omitted. If the field value isn't a valid UUID without dashes, an error message will be generated. ```proto message MyString { // value must be a valid trimmed UUID string value = 1 [(buf.validate.field).string.tuuid = true]; } ```bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... }- Specified by:
getTuuidin interfaceStringRulesOrBuilder- Returns:
- The tuuid.
-
hasIpWithPrefixlen
public boolean hasIpWithPrefixlen()`ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6) address with prefix length—for example, "192.168.5.21/16" or "2001:0DB8:ABCD:0012::F1/64". If the field value isn't a valid IP with prefix length, an error message will be generated. ```proto message MyString { // value must be a valid IP with prefix length string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; } ```bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... }- Specified by:
hasIpWithPrefixlenin interfaceStringRulesOrBuilder- Returns:
- Whether the ipWithPrefixlen field is set.
-
getIpWithPrefixlen
public boolean getIpWithPrefixlen()`ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6) address with prefix length—for example, "192.168.5.21/16" or "2001:0DB8:ABCD:0012::F1/64". If the field value isn't a valid IP with prefix length, an error message will be generated. ```proto message MyString { // value must be a valid IP with prefix length string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; } ```bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... }- Specified by:
getIpWithPrefixlenin interfaceStringRulesOrBuilder- Returns:
- The ipWithPrefixlen.
-
hasIpv4WithPrefixlen
public boolean hasIpv4WithPrefixlen()`ipv4_with_prefixlen` specifies that the field value must be a valid IPv4 address with prefix length—for example, "192.168.5.21/16". If the field value isn't a valid IPv4 address with prefix length, an error message will be generated. ```proto message MyString { // value must be a valid IPv4 address with prefix length string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; } ```bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... }- Specified by:
hasIpv4WithPrefixlenin interfaceStringRulesOrBuilder- Returns:
- Whether the ipv4WithPrefixlen field is set.
-
getIpv4WithPrefixlen
public boolean getIpv4WithPrefixlen()`ipv4_with_prefixlen` specifies that the field value must be a valid IPv4 address with prefix length—for example, "192.168.5.21/16". If the field value isn't a valid IPv4 address with prefix length, an error message will be generated. ```proto message MyString { // value must be a valid IPv4 address with prefix length string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; } ```bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... }- Specified by:
getIpv4WithPrefixlenin interfaceStringRulesOrBuilder- Returns:
- The ipv4WithPrefixlen.
-
hasIpv6WithPrefixlen
public boolean hasIpv6WithPrefixlen()`ipv6_with_prefixlen` specifies that the field value must be a valid IPv6 address with prefix length—for example, "2001:0DB8:ABCD:0012::F1/64". If the field value is not a valid IPv6 address with prefix length, an error message will be generated. ```proto message MyString { // value must be a valid IPv6 address prefix length string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; } ```bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... }- Specified by:
hasIpv6WithPrefixlenin interfaceStringRulesOrBuilder- Returns:
- Whether the ipv6WithPrefixlen field is set.
-
getIpv6WithPrefixlen
public boolean getIpv6WithPrefixlen()`ipv6_with_prefixlen` specifies that the field value must be a valid IPv6 address with prefix length—for example, "2001:0DB8:ABCD:0012::F1/64". If the field value is not a valid IPv6 address with prefix length, an error message will be generated. ```proto message MyString { // value must be a valid IPv6 address prefix length string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; } ```bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... }- Specified by:
getIpv6WithPrefixlenin interfaceStringRulesOrBuilder- Returns:
- The ipv6WithPrefixlen.
-
hasIpPrefix
public boolean hasIpPrefix()`ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix—for example, "192.168.0.0/16" or "2001:0DB8:ABCD:0012::0/64". The prefix must have all zeros for the unmasked bits. For example, "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the prefix, and the remaining 64 bits must be zero. If the field value isn't a valid IP prefix, an error message will be generated. ```proto message MyString { // value must be a valid IP prefix string value = 1 [(buf.validate.field).string.ip_prefix = true]; } ```bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... }- Specified by:
hasIpPrefixin interfaceStringRulesOrBuilder- Returns:
- Whether the ipPrefix field is set.
-
getIpPrefix
public boolean getIpPrefix()`ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix—for example, "192.168.0.0/16" or "2001:0DB8:ABCD:0012::0/64". The prefix must have all zeros for the unmasked bits. For example, "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the prefix, and the remaining 64 bits must be zero. If the field value isn't a valid IP prefix, an error message will be generated. ```proto message MyString { // value must be a valid IP prefix string value = 1 [(buf.validate.field).string.ip_prefix = true]; } ```bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... }- Specified by:
getIpPrefixin interfaceStringRulesOrBuilder- Returns:
- The ipPrefix.
-
hasIpv4Prefix
public boolean hasIpv4Prefix()`ipv4_prefix` specifies that the field value must be a valid IPv4 prefix, for example "192.168.0.0/16". The prefix must have all zeros for the unmasked bits. For example, "192.168.0.0/16" designates the left-most 16 bits for the prefix, and the remaining 16 bits must be zero. If the field value isn't a valid IPv4 prefix, an error message will be generated. ```proto message MyString { // value must be a valid IPv4 prefix string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; } ```bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... }- Specified by:
hasIpv4Prefixin interfaceStringRulesOrBuilder- Returns:
- Whether the ipv4Prefix field is set.
-
getIpv4Prefix
public boolean getIpv4Prefix()`ipv4_prefix` specifies that the field value must be a valid IPv4 prefix, for example "192.168.0.0/16". The prefix must have all zeros for the unmasked bits. For example, "192.168.0.0/16" designates the left-most 16 bits for the prefix, and the remaining 16 bits must be zero. If the field value isn't a valid IPv4 prefix, an error message will be generated. ```proto message MyString { // value must be a valid IPv4 prefix string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; } ```bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... }- Specified by:
getIpv4Prefixin interfaceStringRulesOrBuilder- Returns:
- The ipv4Prefix.
-
hasIpv6Prefix
public boolean hasIpv6Prefix()`ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for example, "2001:0DB8:ABCD:0012::0/64". The prefix must have all zeros for the unmasked bits. For example, "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the prefix, and the remaining 64 bits must be zero. If the field value is not a valid IPv6 prefix, an error message will be generated. ```proto message MyString { // value must be a valid IPv6 prefix string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; } ```bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... }- Specified by:
hasIpv6Prefixin interfaceStringRulesOrBuilder- Returns:
- Whether the ipv6Prefix field is set.
-
getIpv6Prefix
public boolean getIpv6Prefix()`ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for example, "2001:0DB8:ABCD:0012::0/64". The prefix must have all zeros for the unmasked bits. For example, "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the prefix, and the remaining 64 bits must be zero. If the field value is not a valid IPv6 prefix, an error message will be generated. ```proto message MyString { // value must be a valid IPv6 prefix string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; } ```bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... }- Specified by:
getIpv6Prefixin interfaceStringRulesOrBuilder- Returns:
- The ipv6Prefix.
-
hasHostAndPort
public boolean hasHostAndPort()`host_and_port` specifies that the field value must be valid host/port pair—for example, "example.com:8080". The host can be one of: - An IPv4 address in dotted decimal format—for example, "192.168.5.21". - An IPv6 address enclosed in square brackets—for example, "[2001:0DB8:ABCD:0012::F1]". - A hostname—for example, "example.com". The port is separated by a colon. It must be non-empty, with a decimal number in the range of 0-65535, inclusive.
bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... }- Specified by:
hasHostAndPortin interfaceStringRulesOrBuilder- Returns:
- Whether the hostAndPort field is set.
-
getHostAndPort
public boolean getHostAndPort()`host_and_port` specifies that the field value must be valid host/port pair—for example, "example.com:8080". The host can be one of: - An IPv4 address in dotted decimal format—for example, "192.168.5.21". - An IPv6 address enclosed in square brackets—for example, "[2001:0DB8:ABCD:0012::F1]". - A hostname—for example, "example.com". The port is separated by a colon. It must be non-empty, with a decimal number in the range of 0-65535, inclusive.
bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... }- Specified by:
getHostAndPortin interfaceStringRulesOrBuilder- Returns:
- The hostAndPort.
-
hasWellKnownRegex
public boolean hasWellKnownRegex()`well_known_regex` specifies a common well-known pattern defined as a regex. If the field value doesn't match the well-known regex, an error message will be generated. ```proto message MyString { // value must be a valid HTTP header value string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; } ``` #### KnownRegex `well_known_regex` contains some well-known patterns. | Name | Number | Description | |-------------------------------|--------|-------------------------------------------| | KNOWN_REGEX_UNSPECIFIED | 0 | | | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2) | | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |.buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... }- Specified by:
hasWellKnownRegexin interfaceStringRulesOrBuilder- Returns:
- Whether the wellKnownRegex field is set.
-
getWellKnownRegex
`well_known_regex` specifies a common well-known pattern defined as a regex. If the field value doesn't match the well-known regex, an error message will be generated. ```proto message MyString { // value must be a valid HTTP header value string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; } ``` #### KnownRegex `well_known_regex` contains some well-known patterns. | Name | Number | Description | |-------------------------------|--------|-------------------------------------------| | KNOWN_REGEX_UNSPECIFIED | 0 | | | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2) | | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |.buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... }- 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](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser validations that only disallow `\r\n\0` characters, which can be used to bypass header matching rules. ```proto message MyString { // The field `value` must have be a valid HTTP headers, but not enforced with strict rules. string value = 1 [(buf.validate.field).string.strict = false]; } ```optional bool strict = 25 [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](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser validations that only disallow `\r\n\0` characters, which can be used to bypass header matching rules. ```proto message MyString { // The field `value` must have be a valid HTTP headers, but not enforced with strict rules. string value = 1 [(buf.validate.field).string.strict = false]; } ```optional bool strict = 25 [json_name = "strict"];- Specified by:
getStrictin interfaceStringRulesOrBuilder- Returns:
- The strict.
-
getExampleList
public com.google.protobuf.ProtocolStringList getExampleList()`example` specifies values that the field may have. These values SHOULD conform to other rules. `example` values will not impact validation but may be used as helpful guidance on how to populate the given field. ```proto message MyString { string value = 1 [ (buf.validate.field).string.example = "hello", (buf.validate.field).string.example = "world" ]; } ```repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... }- Specified by:
getExampleListin interfaceStringRulesOrBuilder- Returns:
- A list containing the example.
-
getExampleCount
public int getExampleCount()`example` specifies values that the field may have. These values SHOULD conform to other rules. `example` values will not impact validation but may be used as helpful guidance on how to populate the given field. ```proto message MyString { string value = 1 [ (buf.validate.field).string.example = "hello", (buf.validate.field).string.example = "world" ]; } ```repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... }- Specified by:
getExampleCountin interfaceStringRulesOrBuilder- Returns:
- The count of example.
-
getExample
`example` specifies values that the field may have. These values SHOULD conform to other rules. `example` values will not impact validation but may be used as helpful guidance on how to populate the given field. ```proto message MyString { string value = 1 [ (buf.validate.field).string.example = "hello", (buf.validate.field).string.example = "world" ]; } ```repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... }- Specified by:
getExamplein interfaceStringRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The example at the given index.
-
getExampleBytes
public com.google.protobuf.ByteString getExampleBytes(int index) `example` specifies values that the field may have. These values SHOULD conform to other rules. `example` values will not impact validation but may be used as helpful guidance on how to populate the given field. ```proto message MyString { string value = 1 [ (buf.validate.field).string.example = "hello", (buf.validate.field).string.example = "world" ]; } ```repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... }- Specified by:
getExampleBytesin interfaceStringRulesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the example at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableMessage<StringRules>
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<StringRules>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-