common_pack.HistoryRecord */ class HistoryRecord extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int32 id = 1; */ protected $id = 0; /** * Generated from protobuf field int32 room_id = 2; */ protected $room_id = 0; /** * Generated from protobuf field string user_id = 3; */ protected $user_id = ''; /** * Generated from protobuf field string time = 4; */ protected $time = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * @type int $room_id * @type string $user_id * @type string $time * } */ public function __construct($data = NULL) { \GPBMetadata\Common::initOnce(); parent::__construct($data); } /** * Generated from protobuf field int32 id = 1; * @return int */ public function getId() { return $this->id; } /** * Generated from protobuf field int32 id = 1; * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } /** * Generated from protobuf field int32 room_id = 2; * @return int */ public function getRoomId() { return $this->room_id; } /** * Generated from protobuf field int32 room_id = 2; * @param int $var * @return $this */ public function setRoomId($var) { GPBUtil::checkInt32($var); $this->room_id = $var; return $this; } /** * Generated from protobuf field string user_id = 3; * @return string */ public function getUserId() { return $this->user_id; } /** * Generated from protobuf field string user_id = 3; * @param string $var * @return $this */ public function setUserId($var) { GPBUtil::checkString($var, True); $this->user_id = $var; return $this; } /** * Generated from protobuf field string time = 4; * @return string */ public function getTime() { return $this->time; } /** * Generated from protobuf field string time = 4; * @param string $var * @return $this */ public function setTime($var) { GPBUtil::checkString($var, True); $this->time = $var; return $this; } }