google.iam.admin.v1.ListServiceAccountsResponse */ class ListServiceAccountsResponse extends \Google\Protobuf\Internal\Message { /** * The list of matching service accounts. * * Generated from protobuf field repeated .google.iam.admin.v1.ServiceAccount accounts = 1; */ private $accounts; /** * To retrieve the next page of results, set * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token] * to this value. * * Generated from protobuf field string next_page_token = 2; */ private $next_page_token = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Iam\Admin\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $accounts * The list of matching service accounts. * @type string $next_page_token * To retrieve the next page of results, set * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token] * to this value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\Admin\V1\Iam::initOnce(); parent::__construct($data); } /** * The list of matching service accounts. * * Generated from protobuf field repeated .google.iam.admin.v1.ServiceAccount accounts = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAccounts() { return $this->accounts; } /** * The list of matching service accounts. * * Generated from protobuf field repeated .google.iam.admin.v1.ServiceAccount accounts = 1; * @param \Google\Iam\Admin\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAccounts($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Iam\Admin\V1\ServiceAccount::class); $this->accounts = $arr; return $this; } /** * To retrieve the next page of results, set * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token] * to this value. * * Generated from protobuf field string next_page_token = 2; * @return string */ public function getNextPageToken() { return $this->next_page_token; } /** * To retrieve the next page of results, set * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token] * to this value. * * Generated from protobuf field string next_page_token = 2; * @param string $var * @return $this */ public function setNextPageToken($var) { GPBUtil::checkString($var, True); $this->next_page_token = $var; return $this; } }