<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: SystemPacket.proto

namespace Framework\Protobuf;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>Framework.Protobuf.ClientError</code>
 */
class ClientError extends \Google\Protobuf\Internal\Message
{
    /**
     *错误码
     *
     * Generated from protobuf field <code>int32 errorId = 1;</code>
     */
    protected $errorId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $errorId
     *          错误码
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\SystemPacket::initOnce();
        parent::__construct($data);
    }

    /**
     *错误码
     *
     * Generated from protobuf field <code>int32 errorId = 1;</code>
     * @return int
     */
    public function getErrorId()
    {
        return $this->errorId;
    }

    /**
     *错误码
     *
     * Generated from protobuf field <code>int32 errorId = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setErrorId($var)
    {
        GPBUtil::checkInt32($var);
        $this->errorId = $var;

        return $this;
    }

}

