Google Cloud Retail V2 Client - Class ListProductsResponse (1.3.1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class ListProductsResponse.

Response message for ProductService.ListProducts method.

Generated from protobuf message google.cloud.retail.v2.ListProductsResponse

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ products array<Google\Cloud\Retail\V2\Product>

The Products.

↳ 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.

getProducts

The Products.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProducts

The Products.

Parameter
NameDescription
var array<Google\Cloud\Retail\V2\Product>
Returns
TypeDescription
$this

getNextPageToken

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.

Returns
TypeDescription
string

setNextPageToken

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this