Class: Google::Apis::MybusinessV3::FindMatchingLocationsRequest
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::FindMatchingLocationsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb
Overview
Request message for MyBusiness.FindMatchingLocations.
Instance Attribute Summary collapse
-
#language_code ⇒ String
The preferred language for the matching location.
-
#max_cache_duration ⇒ String
Indicates the duration of acceptable cache-age.
-
#num_results ⇒ Fixnum
The number of matches to return.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FindMatchingLocationsRequest
constructor
A new instance of FindMatchingLocationsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FindMatchingLocationsRequest
Returns a new instance of FindMatchingLocationsRequest
1483 1484 1485 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1483 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
The preferred language for the matching location.
Corresponds to the JSON property languageCode
1466 1467 1468 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1466 def language_code @language_code end |
#max_cache_duration ⇒ String
Indicates the duration of acceptable cache-age. If omitted, will always
return the cached data (if available). If the cache is older than the
provided duration, or if a cached value is not available, results will be
re-calculated and re-cached.
Corresponds to the JSON property maxCacheDuration
1481 1482 1483 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1481 def max_cache_duration @max_cache_duration end |
#num_results ⇒ Fixnum
The number of matches to return. The default value is 3, with a maximum
of 10. Note that latency may increase if more are requested. There is no
pagination. This field is only respected if the cache needs to be updated.
Corresponds to the JSON property numResults
1473 1474 1475 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1473 def num_results @num_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1488 1489 1490 1491 1492 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1488 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @num_results = args[:num_results] if args.key?(:num_results) @max_cache_duration = args[:max_cache_duration] if args.key?(:max_cache_duration) end |