Google Cloud Resource Manager V3 Client - Class ListProjectsResponse (1.1.3)

Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class ListProjectsResponse.

A page of the response received from the ListProjects method.

A paginated response where more pages are available has next_page_token set. This token can be used in a subsequent request to retrieve the next request page. NOTE: A response may contain fewer elements than the request page_size and still have a next_page_token.

Generated from protobuf message google.cloud.resourcemanager.v3.ListProjectsResponse

Namespace

Google \ Cloud \ ResourceManager \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ projects array<Project>

The list of Projects under the parent. This list can be paginated.

↳ next_page_token string

Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

getProjects

The list of Projects under the parent. This list can be paginated.

Returns
Type Description
Google\Protobuf\RepeatedField<Project>

setProjects

The list of Projects under the parent. This list can be paginated.

Parameter
Name Description
var array<Project>
Returns
Type Description
$this

getNextPageToken

Pagination token.

If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

Returns
Type Description
string

setNextPageToken

Pagination token.

If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

Parameter
Name Description
var string
Returns
Type Description
$this