Class: Google::Apis::MybusinessV3::FindMatchingLocationsRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_codeString

The preferred language for the matching location. Corresponds to the JSON property languageCode

Returns:

  • (String)


610
611
612
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 610

def language_code
  @language_code
end

#max_cache_durationString

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

Returns:

  • (String)


618
619
620
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 618

def max_cache_duration
  @max_cache_duration
end

#num_resultsFixnum

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

Returns:

  • (Fixnum)


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