class Google::Apis::CloudsearchV1::Filter
A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND.
Attributes
composite_filter[RW]
Corresponds to the JSON property `compositeFilter` @return [Google::Apis::CloudsearchV1::CompositeFilter]
value_filter[RW]
Corresponds to the JSON property `valueFilter` @return [Google::Apis::CloudsearchV1::ValueFilter]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1206 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1211 def update!(**args) @composite_filter = args[:composite_filter] if args.key?(:composite_filter) @value_filter = args[:value_filter] if args.key?(:value_filter) end