Class: Google::Apis::CloudsearchV1::Filter
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Filter
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#composite_filter ⇒ Google::Apis::CloudsearchV1::CompositeFilter
Corresponds to the JSON property
compositeFilter
. -
#value_filter ⇒ Google::Apis::CloudsearchV1::ValueFilter
Corresponds to the JSON property
valueFilter
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Filter
constructor
A new instance of Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter
1017 1018 1019 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1017 def initialize(**args) update!(**args) end |
Instance Attribute Details
#composite_filter ⇒ Google::Apis::CloudsearchV1::CompositeFilter
Corresponds to the JSON property compositeFilter
1010 1011 1012 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1010 def composite_filter @composite_filter end |
#value_filter ⇒ Google::Apis::CloudsearchV1::ValueFilter
Corresponds to the JSON property valueFilter
1015 1016 1017 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1015 def value_filter @value_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1022 1023 1024 1025 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1022 def update!(**args) @composite_filter = args[:composite_filter] if args.key?(:composite_filter) @value_filter = args[:value_filter] if args.key?(:value_filter) end |