ItemRequest */ class ItemRequest extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int32 ItemID = 1; */ protected $ItemID = 0; /** * Generated from protobuf field int32 Quantity = 2; */ protected $Quantity = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $ItemID * @type int $Quantity * } */ public function __construct($data = NULL) { \GPBMetadata\Bag::initOnce(); parent::__construct($data); } /** * Generated from protobuf field int32 ItemID = 1; * @return int */ public function getItemID() { return $this->ItemID; } /** * Generated from protobuf field int32 ItemID = 1; * @param int $var * @return $this */ public function setItemID($var) { GPBUtil::checkInt32($var); $this->ItemID = $var; return $this; } /** * Generated from protobuf field int32 Quantity = 2; * @return int */ public function getQuantity() { return $this->Quantity; } /** * Generated from protobuf field int32 Quantity = 2; * @param int $var * @return $this */ public function setQuantity($var) { GPBUtil::checkInt32($var); $this->Quantity = $var; return $this; } }