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

namespace Game\Protobuf;

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

/**
 * 比赛操作发送
 *
 * Generated from protobuf message <code>Game.Protobuf.CGMatchOperation</code>
 */
class CGMatchOperation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 JoinId = 1;</code>
     */
    protected $JoinId = 0;
    /**
     *比赛内操作
     *
     * Generated from protobuf field <code>.Game.Protobuf.MatchOperation matchOperation = 2;</code>
     */
    protected $matchOperation = null;
    /**
     *比赛完成目标(AiRange,LastTime不用)
     *
     * Generated from protobuf field <code>.Game.Protobuf.TaleTarget target = 3;</code>
     */
    protected $target = null;
    /**
     *客户端统计信息,只保存转发
     *
     * Generated from protobuf field <code>string Statistics = 4;</code>
     */
    protected $Statistics = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $JoinId
     *     @type \Game\Protobuf\MatchOperation $matchOperation
     *          比赛内操作
     *     @type \Game\Protobuf\TaleTarget $target
     *          比赛完成目标(AiRange,LastTime不用)
     *     @type string $Statistics
     *          客户端统计信息,只保存转发
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 JoinId = 1;</code>
     * @return int|string
     */
    public function getJoinId()
    {
        return $this->JoinId;
    }

    /**
     * Generated from protobuf field <code>uint64 JoinId = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setJoinId($var)
    {
        GPBUtil::checkUint64($var);
        $this->JoinId = $var;

        return $this;
    }

    /**
     *比赛内操作
     *
     * Generated from protobuf field <code>.Game.Protobuf.MatchOperation matchOperation = 2;</code>
     * @return \Game\Protobuf\MatchOperation|null
     */
    public function getMatchOperation()
    {
        return $this->matchOperation;
    }

    public function hasMatchOperation()
    {
        return isset($this->matchOperation);
    }

    public function clearMatchOperation()
    {
        unset($this->matchOperation);
    }

    /**
     *比赛内操作
     *
     * Generated from protobuf field <code>.Game.Protobuf.MatchOperation matchOperation = 2;</code>
     * @param \Game\Protobuf\MatchOperation $var
     * @return $this
     */
    public function setMatchOperation($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\MatchOperation::class);
        $this->matchOperation = $var;

        return $this;
    }

    /**
     *比赛完成目标(AiRange,LastTime不用)
     *
     * Generated from protobuf field <code>.Game.Protobuf.TaleTarget target = 3;</code>
     * @return \Game\Protobuf\TaleTarget|null
     */
    public function getTarget()
    {
        return $this->target;
    }

    public function hasTarget()
    {
        return isset($this->target);
    }

    public function clearTarget()
    {
        unset($this->target);
    }

    /**
     *比赛完成目标(AiRange,LastTime不用)
     *
     * Generated from protobuf field <code>.Game.Protobuf.TaleTarget target = 3;</code>
     * @param \Game\Protobuf\TaleTarget $var
     * @return $this
     */
    public function setTarget($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\TaleTarget::class);
        $this->target = $var;

        return $this;
    }

    /**
     *客户端统计信息,只保存转发
     *
     * Generated from protobuf field <code>string Statistics = 4;</code>
     * @return string
     */
    public function getStatistics()
    {
        return $this->Statistics;
    }

    /**
     *客户端统计信息,只保存转发
     *
     * Generated from protobuf field <code>string Statistics = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setStatistics($var)
    {
        GPBUtil::checkString($var, True);
        $this->Statistics = $var;

        return $this;
    }

}

