Value matcher (proto)

type.matcher.v3.ValueMatcher

[type.matcher.v3.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.

{
  "null_match": {...},
  "double_match": {...},
  "string_match": {...},
  "bool_match": ...,
  "present_match": ...,
  "list_match": {...}
}
null_match

(type.matcher.v3.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.v3.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.v3.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.v3.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.v3.ValueMatcher.NullMatch

[type.matcher.v3.ValueMatcher.NullMatch proto]

NullMatch is an empty message to specify a null value.

type.matcher.v3.ListMatcher

[type.matcher.v3.ListMatcher proto]

Specifies the way to match a list value.

{
  "one_of": {...}
}
one_of

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