123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <?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.RequestAddFriendItem</code>
- */
- class RequestAddFriendItem extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>int32 id = 1;</code>
- */
- protected $id = 0;
- /**
- *请求id
- *
- * Generated from protobuf field <code>string RequestID = 2;</code>
- */
- protected $RequestID = '';
- /**
- * Generated from protobuf field <code>string FromUserID = 3;</code>
- */
- protected $FromUserID = '';
- /**
- * Generated from protobuf field <code>string ToUserID = 4;</code>
- */
- protected $ToUserID = '';
- /**
- *状态
- *
- * Generated from protobuf field <code>int32 Status = 5;</code>
- */
- protected $Status = 0;
- /**
- * Generated from protobuf field <code>string Message = 6;</code>
- */
- protected $Message = '';
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $id
- * @type string $RequestID
- * 请求id
- * @type string $FromUserID
- * @type string $ToUserID
- * @type int $Status
- * 状态
- * @type string $Message
- * }
- */
- 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;
- }
- /**
- *请求id
- *
- * Generated from protobuf field <code>string RequestID = 2;</code>
- * @return string
- */
- public function getRequestID()
- {
- return $this->RequestID;
- }
- /**
- *请求id
- *
- * Generated from protobuf field <code>string RequestID = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setRequestID($var)
- {
- GPBUtil::checkString($var, True);
- $this->RequestID = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string FromUserID = 3;</code>
- * @return string
- */
- public function getFromUserID()
- {
- return $this->FromUserID;
- }
- /**
- * Generated from protobuf field <code>string FromUserID = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setFromUserID($var)
- {
- GPBUtil::checkString($var, True);
- $this->FromUserID = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string ToUserID = 4;</code>
- * @return string
- */
- public function getToUserID()
- {
- return $this->ToUserID;
- }
- /**
- * Generated from protobuf field <code>string ToUserID = 4;</code>
- * @param string $var
- * @return $this
- */
- public function setToUserID($var)
- {
- GPBUtil::checkString($var, True);
- $this->ToUserID = $var;
- return $this;
- }
- /**
- *状态
- *
- * Generated from protobuf field <code>int32 Status = 5;</code>
- * @return int
- */
- public function getStatus()
- {
- return $this->Status;
- }
- /**
- *状态
- *
- * Generated from protobuf field <code>int32 Status = 5;</code>
- * @param int $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkInt32($var);
- $this->Status = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string Message = 6;</code>
- * @return string
- */
- public function getMessage()
- {
- return $this->Message;
- }
- /**
- * Generated from protobuf field <code>string Message = 6;</code>
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->Message = $var;
- return $this;
- }
- }
|