Class: Google::Apis::CloudsearchV1::FilterOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::FilterOptions
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Filter options to be applied on query.
Instance Attribute Summary collapse
-
#filter ⇒ Google::Apis::CloudsearchV1::Filter
A generic way of expressing filters in a query, which supports two approaches:
**1. -
#object_type ⇒ String
If object_type is set, only objects of that type are returned.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FilterOptions
constructor
A new instance of FilterOptions.
-
#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) ⇒ FilterOptions
Returns a new instance of FilterOptions
1053 1054 1055 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1053 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ 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.
Corresponds to the JSON property filter
1044 1045 1046 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1044 def filter @filter end |
#object_type ⇒ String
If object_type is set, only objects of that type are returned. This should
correspond to the name of the object that was registered within the
definition of schema. The maximum length is 256 characters.
Corresponds to the JSON property objectType
1051 1052 1053 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1051 def object_type @object_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1058 1059 1060 1061 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1058 def update!(**args) @filter = args[:filter] if args.key?(:filter) @object_type = args[:object_type] if args.key?(:object_type) end |