Class: Google::Apis::MybusinessbusinessinformationV1::SearchGoogleLocationsRequest
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::SearchGoogleLocationsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
Request message for GoogleLocations.SearchGoogleLocations.
Instance Attribute Summary collapse
-
#location ⇒ Google::Apis::MybusinessbusinessinformationV1::Location
A location.
-
#page_size ⇒ Fixnum
The number of matches to return.
-
#query ⇒ String
Text query to search for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchGoogleLocationsRequest
constructor
A new instance of SearchGoogleLocationsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SearchGoogleLocationsRequest
Returns a new instance of SearchGoogleLocationsRequest.
1522 1523 1524 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1522 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ Google::Apis::MybusinessbusinessinformationV1::Location
A location. See the help center article for a detailed description of these fields, or the category
endpoint for a list of valid
business categories.
Corresponds to the JSON property location
1507 1508 1509 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1507 def location @location end |
#page_size ⇒ 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.
Corresponds to the JSON property pageSize
1513 1514 1515 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1513 def page_size @page_size end |
#query ⇒ String
Text query to search for. The search results from a query string will be less
accurate than if providing an exact location, but can provide more inexact
matches.
Corresponds to the JSON property query
1520 1521 1522 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1520 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1527 1528 1529 1530 1531 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1527 def update!(**args) @location = args[:location] if args.key?(:location) @page_size = args[:page_size] if args.key?(:page_size) @query = args[:query] if args.key?(:query) end |