common_pack.ChatMessage */ class ChatMessage extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int32 id = 1; */ protected $id = 0; /** * Generated from protobuf field string session_id = 2; */ protected $session_id = ''; /** * Generated from protobuf field string sender_id = 3; */ protected $sender_id = ''; /** * Generated from protobuf field string content = 4; */ protected $content = ''; /** * Generated from protobuf field string created_at = 5; */ protected $created_at = ''; /** * Generated from protobuf field string content_type = 6; */ protected $content_type = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * @type string $session_id * @type string $sender_id * @type string $content * @type string $created_at * @type string $content_type * } */ 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 string session_id = 2; * @return string */ public function getSessionId() { return $this->session_id; } /** * Generated from protobuf field string session_id = 2; * @param string $var * @return $this */ public function setSessionId($var) { GPBUtil::checkString($var, True); $this->session_id = $var; return $this; } /** * Generated from protobuf field string sender_id = 3; * @return string */ public function getSenderId() { return $this->sender_id; } /** * Generated from protobuf field string sender_id = 3; * @param string $var * @return $this */ public function setSenderId($var) { GPBUtil::checkString($var, True); $this->sender_id = $var; return $this; } /** * Generated from protobuf field string content = 4; * @return string */ public function getContent() { return $this->content; } /** * Generated from protobuf field string content = 4; * @param string $var * @return $this */ public function setContent($var) { GPBUtil::checkString($var, True); $this->content = $var; return $this; } /** * Generated from protobuf field string created_at = 5; * @return string */ public function getCreatedAt() { return $this->created_at; } /** * Generated from protobuf field string created_at = 5; * @param string $var * @return $this */ public function setCreatedAt($var) { GPBUtil::checkString($var, True); $this->created_at = $var; return $this; } /** * Generated from protobuf field string content_type = 6; * @return string */ public function getContentType() { return $this->content_type; } /** * Generated from protobuf field string content_type = 6; * @param string $var * @return $this */ public function setContentType($var) { GPBUtil::checkString($var, True); $this->content_type = $var; return $this; } }