StringMatcher¶
type.matcher.StringMatcher¶
[type.matcher.StringMatcher proto]
Specifies the way to match a string.
{
  "exact": "...",
  "prefix": "...",
  "suffix": "...",
  "regex": "..."
}
- exact
- (string) The input string must match exactly the string specified here. - Examples: - abc only matches the value abc.
 
- prefix
- (string) The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. - Examples: - abc matches the value abc.xyz
 
- suffix
- (string) The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. - Examples: - abc matches the value xyz.abc
 
type.matcher.ListStringMatcher¶
[type.matcher.ListStringMatcher proto]
Specifies a list of ways to match a string.
{
  "patterns": []
}
- patterns
- (type.matcher.StringMatcher, REQUIRED)