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.



748
749
750
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 748

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

Instance Attribute Details

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

The locations. Corresponds to the JSON property locations



733
734
735
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 733

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)


741
742
743
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 741

def next_page_token
  @next_page_token
end

#total_sizeFixnum

The approximate number of Locations in the list irrespective of pagination. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


746
747
748
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 746

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



753
754
755
756
757
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 753

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