uraus.kku.Request.RequestPetGet */ class RequestPetGet extends \Google\Protobuf\Internal\Message { /** * 宠物ID * * Generated from protobuf field int64 pet_id = 1; */ protected $pet_id = 0; /** * 宠物食物 物品ID * * Generated from protobuf field int64 item_id = 2; */ protected $item_id = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $pet_id * 宠物ID * @type int|string $item_id * 宠物食物 物品ID * } */ public function __construct($data = NULL) { \GPBMetadata\Proto\Game::initOnce(); parent::__construct($data); } /** * 宠物ID * * Generated from protobuf field int64 pet_id = 1; * @return int|string */ public function getPetId() { return $this->pet_id; } /** * 宠物ID * * Generated from protobuf field int64 pet_id = 1; * @param int|string $var * @return $this */ public function setPetId($var) { GPBUtil::checkInt64($var); $this->pet_id = $var; return $this; } /** * 宠物食物 物品ID * * Generated from protobuf field int64 item_id = 2; * @return int|string */ public function getItemId() { return $this->item_id; } /** * 宠物食物 物品ID * * Generated from protobuf field int64 item_id = 2; * @param int|string $var * @return $this */ public function setItemId($var) { GPBUtil::checkInt64($var); $this->item_id = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(RequestPetGet::class, \Uraus\Kku\Request_RequestPetGet::class);