google.apicore.testing.MockResponse */ class MockResponse extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string name = 1; */ private $name = ''; /** * Generated from protobuf field uint64 number = 2; */ private $number = 0; /** * Generated from protobuf field repeated string resources_list = 3; */ private $resources_list; /** * Generated from protobuf field string next_page_token = 4; */ private $next_page_token = ''; public function __construct() { \GPBMetadata\ApiCore\Testing\Mocks::initOnce(); parent::__construct(); } /** * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field uint64 number = 2; * @return int|string */ public function getNumber() { return $this->number; } /** * Generated from protobuf field uint64 number = 2; * @param int|string $var * @return $this */ public function setNumber($var) { GPBUtil::checkUint64($var); $this->number = $var; return $this; } /** * Generated from protobuf field repeated string resources_list = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getResourcesList() { return $this->resources_list; } /** * Generated from protobuf field repeated string resources_list = 3; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcesList($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->resources_list = $arr; return $this; } /** * Generated from protobuf field string next_page_token = 4; * @return string */ public function getNextPageToken() { return $this->next_page_token; } /** * Generated from protobuf field string next_page_token = 4; * @param string $var * @return $this */ public function setNextPageToken($var) { GPBUtil::checkString($var, True); $this->next_page_token = $var; return $this; } }