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
| 627 628 629 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 627 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
| 610 611 612 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 610 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
| 618 619 620 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 618 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
| 625 626 627 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 625 def num_results @num_results end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 632 633 634 635 636 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 632 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @max_cache_duration = args[:max_cache_duration] if args.key?(:max_cache_duration) @num_results = args[:num_results] if args.key?(:num_results) end |