123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?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;
- /**
- *error
- *
- * Generated from protobuf message <code>common_pack.MsgError</code>
- */
- class MsgError extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>int32 error_code = 1;</code>
- */
- protected $error_code = 0;
- /**
- * Generated from protobuf field <code>string error_msg = 2;</code>
- */
- protected $error_msg = '';
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $error_code
- * @type string $error_msg
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>int32 error_code = 1;</code>
- * @return int
- */
- public function getErrorCode()
- {
- return $this->error_code;
- }
- /**
- * Generated from protobuf field <code>int32 error_code = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setErrorCode($var)
- {
- GPBUtil::checkInt32($var);
- $this->error_code = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string error_msg = 2;</code>
- * @return string
- */
- public function getErrorMsg()
- {
- return $this->error_msg;
- }
- /**
- * Generated from protobuf field <code>string error_msg = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setErrorMsg($var)
- {
- GPBUtil::checkString($var, True);
- $this->error_msg = $var;
- return $this;
- }
- }
|