Class: Google::Apis::MybusinessbusinessinformationV1::ListLocationsResponse

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

Response message for Locations.ListLocations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListLocationsResponse

Returns a new instance of ListLocationsResponse.



716
717
718
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 716

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#locationsArray<Google::Apis::MybusinessbusinessinformationV1::Location>

The locations. Corresponds to the JSON property locations



700
701
702
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 700

def locations
  @locations
end

#next_page_tokenString

If the number of locations exceeded the requested page size, this field is populated with a token to fetch the next page of locations on a subsequent call to ListLocations. If there are no more locations, this field is not present in the response. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


708
709
710
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 708

def next_page_token
  @next_page_token
end

#total_sizeFixnum

The approximate number of Locations in the list irrespective of pagination. This field will only be returned if filter is used as a query parameter. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


714
715
716
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 714

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



721
722
723
724
725
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 721

def update!(**args)
  @locations = args[:locations] if args.key?(:locations)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @total_size = args[:total_size] if args.key?(:total_size)
end