class Google::Apis::TrafficdirectorV2::ValueMatcher
Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 7]
Attributes
If specified, a match occurs if and only if the target value is a bool value and is equal to this field. Corresponds to the JSON property `boolMatch` @return [Boolean]
If specified, a match occurs if and only if the target value is a bool value and is equal to this field. Corresponds to the JSON property `boolMatch` @return [Boolean]
Specifies the way to match a double value. Corresponds to the JSON property `doubleMatch` @return [Google::Apis::TrafficdirectorV2::DoubleMatcher]
Specifies the way to match a list value. Corresponds to the JSON property `listMatch` @return [Google::Apis::TrafficdirectorV2::ListMatcher]
NullMatch
is an empty message to specify a null value. Corresponds to the JSON property `nullMatch` @return [Google::Apis::TrafficdirectorV2::NullMatch]
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. Corresponds to the JSON property `presentMatch` @return [Boolean]
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. Corresponds to the JSON property `presentMatch` @return [Boolean]
Specifies the way to match a string. [#next-free-field: 7] Corresponds to the JSON property `stringMatch` @return [Google::Apis::TrafficdirectorV2::StringMatcher]
Public Class Methods
# File lib/google/apis/trafficdirector_v2/classes.rb, line 1331 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/trafficdirector_v2/classes.rb, line 1336 def update!(**args) @bool_match = args[:bool_match] if args.key?(:bool_match) @double_match = args[:double_match] if args.key?(:double_match) @list_match = args[:list_match] if args.key?(:list_match) @null_match = args[:null_match] if args.key?(:null_match) @present_match = args[:present_match] if args.key?(:present_match) @string_match = args[:string_match] if args.key?(:string_match) end