class Google::Apis::RetailV2::GoogleCloudRetailV2ListProductsResponse

Response message for ProductService.ListProducts method.

Attributes

next_page_token[RW]

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` @return [String]

products[RW]

The Products. Corresponds to the JSON property `products` @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Product>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/retail_v2/classes.rb, line 1227
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/retail_v2/classes.rb, line 1232
def update!(**args)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @products = args[:products] if args.key?(:products)
end