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.



1483
1484
1485
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1483

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)


1466
1467
1468
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1466

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)


1481
1482
1483
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1481

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)


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