<?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.CGRecordBreakingInfo</code>
 */
class CGRecordBreakingInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 JoinId = 1;</code>
     */
    protected $JoinId = 0;
    /**
     * Generated from protobuf field <code>.Game.Protobuf.SettlementParameter SettlementParam = 2;</code>
     */
    protected $SettlementParam = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $JoinId
     *     @type \Game\Protobuf\SettlementParameter $SettlementParam
     * }
     */
    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.SettlementParameter SettlementParam = 2;</code>
     * @return \Game\Protobuf\SettlementParameter|null
     */
    public function getSettlementParam()
    {
        return $this->SettlementParam;
    }

    public function hasSettlementParam()
    {
        return isset($this->SettlementParam);
    }

    public function clearSettlementParam()
    {
        unset($this->SettlementParam);
    }

    /**
     * Generated from protobuf field <code>.Game.Protobuf.SettlementParameter SettlementParam = 2;</code>
     * @param \Game\Protobuf\SettlementParameter $var
     * @return $this
     */
    public function setSettlementParam($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\SettlementParameter::class);
        $this->SettlementParam = $var;

        return $this;
    }

}

