common_pack.ReqSendChatMsg
*/
class ReqSendChatMsg extends \Google\Protobuf\Internal\Message
{
/**
*消息类型
*
* Generated from protobuf field string content_type = 1;
*/
protected $content_type = '';
/**
*发送给谁
*
* Generated from protobuf field string to_userid = 2;
*/
protected $to_userid = '';
/**
*消息内容
*
* Generated from protobuf field string content = 3;
*/
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 string content_type = 1;
* @return string
*/
public function getContentType()
{
return $this->content_type;
}
/**
*消息类型
*
* Generated from protobuf field string content_type = 1;
* @param string $var
* @return $this
*/
public function setContentType($var)
{
GPBUtil::checkString($var, True);
$this->content_type = $var;
return $this;
}
/**
*发送给谁
*
* Generated from protobuf field string to_userid = 2;
* @return string
*/
public function getToUserid()
{
return $this->to_userid;
}
/**
*发送给谁
*
* Generated from protobuf field string to_userid = 2;
* @param string $var
* @return $this
*/
public function setToUserid($var)
{
GPBUtil::checkString($var, True);
$this->to_userid = $var;
return $this;
}
/**
*消息内容
*
* Generated from protobuf field string content = 3;
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
*消息内容
*
* Generated from protobuf field string content = 3;
* @param string $var
* @return $this
*/
public function setContent($var)
{
GPBUtil::checkString($var, True);
$this->content = $var;
return $this;
}
}