123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: common.proto
- namespace Common_pack;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- *聊天消息
- *
- * Generated from protobuf message <code>common_pack.ChatMessage</code>
- */
- class ChatMessage extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>int32 id = 1;</code>
- */
- protected $id = 0;
- /**
- * Generated from protobuf field <code>string session_id = 2;</code>
- */
- protected $session_id = '';
- /**
- * Generated from protobuf field <code>string sender_id = 3;</code>
- */
- protected $sender_id = '';
- /**
- * Generated from protobuf field <code>string content = 4;</code>
- */
- protected $content = '';
- /**
- * Generated from protobuf field <code>string created_at = 5;</code>
- */
- protected $created_at = '';
- /**
- * Generated from protobuf field <code>string content_type = 6;</code>
- */
- 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 <code>int32 id = 1;</code>
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Generated from protobuf field <code>int32 id = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkInt32($var);
- $this->id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string session_id = 2;</code>
- * @return string
- */
- public function getSessionId()
- {
- return $this->session_id;
- }
- /**
- * Generated from protobuf field <code>string session_id = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setSessionId($var)
- {
- GPBUtil::checkString($var, True);
- $this->session_id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string sender_id = 3;</code>
- * @return string
- */
- public function getSenderId()
- {
- return $this->sender_id;
- }
- /**
- * Generated from protobuf field <code>string sender_id = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setSenderId($var)
- {
- GPBUtil::checkString($var, True);
- $this->sender_id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string content = 4;</code>
- * @return string
- */
- public function getContent()
- {
- return $this->content;
- }
- /**
- * Generated from protobuf field <code>string content = 4;</code>
- * @param string $var
- * @return $this
- */
- public function setContent($var)
- {
- GPBUtil::checkString($var, True);
- $this->content = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string created_at = 5;</code>
- * @return string
- */
- public function getCreatedAt()
- {
- return $this->created_at;
- }
- /**
- * Generated from protobuf field <code>string created_at = 5;</code>
- * @param string $var
- * @return $this
- */
- public function setCreatedAt($var)
- {
- GPBUtil::checkString($var, True);
- $this->created_at = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string content_type = 6;</code>
- * @return string
- */
- public function getContentType()
- {
- return $this->content_type;
- }
- /**
- * Generated from protobuf field <code>string content_type = 6;</code>
- * @param string $var
- * @return $this
- */
- public function setContentType($var)
- {
- GPBUtil::checkString($var, True);
- $this->content_type = $var;
- return $this;
- }
- }
|