Class: Google::Apis::RetailV2::GoogleCloudRetailV2ListProductsResponse
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2ListProductsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
Response message for ProductService.ListProducts method.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
A token that can be sent as ListProductsRequest.page_token to retrieve the next page.
-
#products ⇒ Array<Google::Apis::RetailV2::GoogleCloudRetailV2Product>
The Products.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2ListProductsResponse
constructor
A new instance of GoogleCloudRetailV2ListProductsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2ListProductsResponse
Returns a new instance of GoogleCloudRetailV2ListProductsResponse.
2428 2429 2430 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
A token that can be sent as ListProductsRequest.page_token to retrieve the
next page. If this field is omitted, there are no subsequent pages.
Corresponds to the JSON property nextPageToken
2421 2422 2423 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2421 def next_page_token @next_page_token end |
#products ⇒ Array<Google::Apis::RetailV2::GoogleCloudRetailV2Product>
The Products.
Corresponds to the JSON property products
2426 2427 2428 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2426 def products @products end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2433 2434 2435 2436 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2433 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @products = args[:products] if args.key?(:products) end |