Class: Google::Apis::AreainsightsV1::Filter
- Inherits:
-
Object
- Object
- Google::Apis::AreainsightsV1::Filter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/areainsights_v1/classes.rb,
lib/google/apis/areainsights_v1/representations.rb,
lib/google/apis/areainsights_v1/representations.rb
Overview
Filters for the ComputeInsights RPC.
Instance Attribute Summary collapse
-
#location_filter ⇒ Google::Apis::AreainsightsV1::LocationFilter
Location filters.
-
#operating_status ⇒ Array<String>
Optional.
-
#price_levels ⇒ Array<String>
Optional.
-
#rating_filter ⇒ Google::Apis::AreainsightsV1::RatingFilter
Average user rating filters.
-
#type_filter ⇒ Google::Apis::AreainsightsV1::TypeFilter
Place type filters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Filter
constructor
A new instance of Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter.
183 184 185 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 183 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location_filter ⇒ Google::Apis::AreainsightsV1::LocationFilter
Location filters. Specifies the area of interest for the insight.
Corresponds to the JSON property locationFilter
141 142 143 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 141 def location_filter @location_filter end |
#operating_status ⇒ Array<String>
Optional. Restricts results to places whose operating status is included on
this list. If operating_status is not set, OPERATING_STATUS_OPERATIONAL is
used as default.
Corresponds to the JSON property operatingStatus
148 149 150 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 148 def @operating_status end |
#price_levels ⇒ Array<String>
Optional. Restricts results to places whose price level is included on this
list. If price_level is not set, all price levels are included in the results.
Corresponds to the JSON property priceLevels
154 155 156 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 154 def price_levels @price_levels end |
#rating_filter ⇒ Google::Apis::AreainsightsV1::RatingFilter
Average user rating filters.
Corresponds to the JSON property ratingFilter
159 160 161 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 159 def @rating_filter end |
#type_filter ⇒ Google::Apis::AreainsightsV1::TypeFilter
Place type filters. Only Place types from Table a are supported.
A place can only have a single primary type associated with it. For example,
the primary type might be "mexican_restaurant" or "steak_house". Use
included_primary_types and excluded_primary_types to filter the results on a
place's primary type. A place can also have multiple type values associated
with it. For example a restaurant might have the following types: "
seafood_restaurant", "restaurant", "food", "point_of_interest", "establishment"
. Use included_types and excluded_types to filter the results on the list of
types associated with a place. If a search is specified with multiple type
restrictions, only places that satisfy all of the restrictions are returned.
For example, if you specify "included_types": ["restaurant"], "
excluded_primary_types": ["steak_house"]
, the returned places provide "
restaurant" related services but do not operate primarily as a "steak_house".
If there are any conflicting types, i.e. a type appears in both included_types
and excluded_types types or included_primary_types and excluded_primary_types,
an INVALID_ARGUMENT error is returned. One of included_types or
included_primary_types must be set.
Corresponds to the JSON property typeFilter
181 182 183 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 181 def type_filter @type_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
188 189 190 191 192 193 194 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 188 def update!(**args) @location_filter = args[:location_filter] if args.key?(:location_filter) @operating_status = args[:operating_status] if args.key?(:operating_status) @price_levels = args[:price_levels] if args.key?(:price_levels) @rating_filter = args[:rating_filter] if args.key?(:rating_filter) @type_filter = args[:type_filter] if args.key?(:type_filter) end |