Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListProductsResponse
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListProductsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/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::RetailV2alpha::GoogleCloudRetailV2alphaProduct>
The Products.
-
#total_size ⇒ Fixnum
The total count of matched Products irrespective of pagination.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaListProductsResponse
constructor
A new instance of GoogleCloudRetailV2alphaListProductsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaListProductsResponse
Returns a new instance of GoogleCloudRetailV2alphaListProductsResponse.
3975 3976 3977 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3975 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
3960 3961 3962 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3960 def next_page_token @next_page_token end |
#products ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct>
The Products.
Corresponds to the JSON property products
3965 3966 3967 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3965 def products @products end |
#total_size ⇒ Fixnum
The total count of matched Products irrespective of pagination. The total
number of Products returned by pagination may be less than the total_size that
matches. This field is ignored if ListProductsRequest.require_total_size is
not set or ListProductsRequest.page_token is not empty.
Corresponds to the JSON property totalSize
3973 3974 3975 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3973 def total_size @total_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3980 3981 3982 3983 3984 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3980 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @products = args[:products] if args.key?(:products) @total_size = args[:total_size] if args.key?(:total_size) end |