Value matcher

type.matcher.ValueMatcher

[type.matcher.ValueMatcher proto]

Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched.

  1. {
  2. "null_match": "{...}",
  3. "double_match": "{...}",
  4. "string_match": "{...}",
  5. "bool_match": "...",
  6. "present_match": "...",
  7. "list_match": "{...}"
  8. }

null_match

(type.matcher.ValueMatcher.NullMatch) If specified, a match occurs if and only if the target value is a NullValue.

Specifies how to match a value.

Precisely one of null_match, double_match, string_match, bool_match, present_match, list_match must be set.

double_match

(type.matcher.DoubleMatcher) If specified, a match occurs if and only if the target value is a double value and is matched to this field.

Specifies how to match a value.

Precisely one of null_match, double_match, string_match, bool_match, present_match, list_match must be set.

string_match

(type.matcher.StringMatcher) If specified, a match occurs if and only if the target value is a string value and is matched to this field.

Specifies how to match a value.

Precisely one of null_match, double_match, string_match, bool_match, present_match, list_match must be set.

bool_match

(bool) If specified, a match occurs if and only if the target value is a bool value and is equal to this field.

Specifies how to match a value.

Precisely one of null_match, double_match, string_match, bool_match, present_match, list_match must be set.

present_match

(bool) If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the result is always not matched.

Specifies how to match a value.

Precisely one of null_match, double_match, string_match, bool_match, present_match, list_match must be set.

list_match

(type.matcher.ListMatcher) If specified, a match occurs if and only if the target value is a list value and is matched to this field.

Specifies how to match a value.

Precisely one of null_match, double_match, string_match, bool_match, present_match, list_match must be set.

type.matcher.ValueMatcher.NullMatch

[type.matcher.ValueMatcher.NullMatch proto]

NullMatch is an empty message to specify a null value.

  1. {}

type.matcher.ListMatcher

[type.matcher.ListMatcher proto]

Specifies the way to match a list value.

  1. {
  2. "one_of": "{...}"
  3. }

one_of

(type.matcher.ValueMatcher, REQUIRED) If specified, at least one of the values in the list must match the value specified.