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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ projects array<Google\Cloud\ResourceManager\V3\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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProjects

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

Parameter
NameDescription
var array<Google\Cloud\ResourceManager\V3\Project>
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this