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
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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.
Generated from protobuf field repeated .google.cloud.retail.v2.Product products = 1;
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setProducts
The Products.
Generated from protobuf field repeated .google.cloud.retail.v2.Product products = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Retail\V2\Product>
|
| Returns | |
|---|---|
| Type | Description |
$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.
Generated from protobuf field string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
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.
Generated from protobuf field string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|