Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListProductsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

Response message for ProductService.ListProducts method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaListProductsResponse

Returns a new instance of GoogleCloudRetailV2betaListProductsResponse.



3359
3360
3361
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3359

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

Instance Attribute Details

#next_page_tokenString

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

Returns:

  • (String)


3352
3353
3354
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3352

def next_page_token
  @next_page_token
end

#productsArray<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct>

The Products. Corresponds to the JSON property products



3357
3358
3359
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3357

def products
  @products
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3364
3365
3366
3367
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3364

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