123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?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.ReqSendChatMsg</code>
- */
- class ReqSendChatMsg extends \Google\Protobuf\Internal\Message
- {
- /**
- *消息类型
- *
- * Generated from protobuf field <code>string content_type = 1;</code>
- */
- protected $content_type = '';
- /**
- *发送给谁
- *
- * Generated from protobuf field <code>string to_userid = 2;</code>
- */
- protected $to_userid = '';
- /**
- *消息内容
- *
- * Generated from protobuf field <code>string content = 3;</code>
- */
- protected $content = '';
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $content_type
- * 消息类型
- * @type string $to_userid
- * 发送给谁
- * @type string $content
- * 消息内容
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- *消息类型
- *
- * Generated from protobuf field <code>string content_type = 1;</code>
- * @return string
- */
- public function getContentType()
- {
- return $this->content_type;
- }
- /**
- *消息类型
- *
- * Generated from protobuf field <code>string content_type = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setContentType($var)
- {
- GPBUtil::checkString($var, True);
- $this->content_type = $var;
- return $this;
- }
- /**
- *发送给谁
- *
- * Generated from protobuf field <code>string to_userid = 2;</code>
- * @return string
- */
- public function getToUserid()
- {
- return $this->to_userid;
- }
- /**
- *发送给谁
- *
- * Generated from protobuf field <code>string to_userid = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setToUserid($var)
- {
- GPBUtil::checkString($var, True);
- $this->to_userid = $var;
- return $this;
- }
- /**
- *消息内容
- *
- * Generated from protobuf field <code>string content = 3;</code>
- * @return string
- */
- public function getContent()
- {
- return $this->content;
- }
- /**
- *消息内容
- *
- * Generated from protobuf field <code>string content = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setContent($var)
- {
- GPBUtil::checkString($var, True);
- $this->content = $var;
- return $this;
- }
- }
|