ValueMatcher¶
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.
{
"null_match": "{...}",
"double_match": "{...}",
"string_match": "{...}",
"bool_match": "...",
"present_match": "...",
"list_match": "{...}"
}
- null_match
(type.matcher.ValueMatcher.NullMatch) If specified, a match occurs if and only if the target value is a NullValue.
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.
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.
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.
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.
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.
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.
{}
type.matcher.ListMatcher¶
[type.matcher.ListMatcher proto]
Specifies the way to match a list value.
{
"one_of": "{...}"
}
- one_of
(type.matcher.ValueMatcher) If specified, at least one of the values in the list must match the value specified.
Precisely one of one_of must be set.