StringMatcher

type.matcher.v3.StringMatcher

[type.matcher.v3.StringMatcher proto]

Specifies the way to match a string.

{
  "exact": "...",
  "prefix": "...",
  "suffix": "...",
  "safe_regex": "{...}"
}
exact

(string) The input string must match exactly the string specified here.

Examples:

  • abc only matches the value abc.

Precisely one of exact, prefix, suffix, safe_regex must be set.

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

Precisely one of exact, prefix, suffix, safe_regex must be set.

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

Precisely one of exact, prefix, suffix, safe_regex must be set.

safe_regex

(type.matcher.v3.RegexMatcher) The input string must match the regular expression specified here.

Precisely one of exact, prefix, suffix, safe_regex must be set.

type.matcher.v3.ListStringMatcher

[type.matcher.v3.ListStringMatcher proto]

Specifies a list of ways to match a string.

{
  "patterns": []
}
patterns

(type.matcher.v3.StringMatcher, REQUIRED)