<?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.GCFriendIntimacyTask</code>
 */
class GCFriendIntimacyTask extends \Google\Protobuf\Internal\Message
{
    /**
     *code=0 开启活动,其他为对应错误码
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     */
    protected $Code = 0;
    /**
     *奖励积分
     *
     * Generated from protobuf field <code>int32 Score = 2;</code>
     */
    protected $Score = 0;
    /**
     *奖励领取进度[已领取奖励id]
     *
     * Generated from protobuf field <code>repeated int32 Schedule = 3;</code>
     */
    private $Schedule;
    /**
     *进行中的任务
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.Task TaskList = 4;</code>
     */
    private $TaskList;
    /**
     *完成的任务id
     *
     * Generated from protobuf field <code>repeated int32 CompleteTaskList = 5;</code>
     */
    private $CompleteTaskList;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Code
     *          code=0 开启活动,其他为对应错误码
     *     @type int $Score
     *          奖励积分
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $Schedule
     *          奖励领取进度[已领取奖励id]
     *     @type \Game\Protobuf\Task[]|\Google\Protobuf\Internal\RepeatedField $TaskList
     *          进行中的任务
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $CompleteTaskList
     *          完成的任务id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *code=0 开启活动,其他为对应错误码
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @return int
     */
    public function getCode()
    {
        return $this->Code;
    }

    /**
     *code=0 开启活动,其他为对应错误码
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkInt32($var);
        $this->Code = $var;

        return $this;
    }

    /**
     *奖励积分
     *
     * Generated from protobuf field <code>int32 Score = 2;</code>
     * @return int
     */
    public function getScore()
    {
        return $this->Score;
    }

    /**
     *奖励积分
     *
     * Generated from protobuf field <code>int32 Score = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setScore($var)
    {
        GPBUtil::checkInt32($var);
        $this->Score = $var;

        return $this;
    }

    /**
     *奖励领取进度[已领取奖励id]
     *
     * Generated from protobuf field <code>repeated int32 Schedule = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSchedule()
    {
        return $this->Schedule;
    }

    /**
     *奖励领取进度[已领取奖励id]
     *
     * Generated from protobuf field <code>repeated int32 Schedule = 3;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSchedule($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->Schedule = $arr;

        return $this;
    }

    /**
     *进行中的任务
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.Task TaskList = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTaskList()
    {
        return $this->TaskList;
    }

    /**
     *进行中的任务
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.Task TaskList = 4;</code>
     * @param \Game\Protobuf\Task[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTaskList($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\Task::class);
        $this->TaskList = $arr;

        return $this;
    }

    /**
     *完成的任务id
     *
     * Generated from protobuf field <code>repeated int32 CompleteTaskList = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCompleteTaskList()
    {
        return $this->CompleteTaskList;
    }

    /**
     *完成的任务id
     *
     * Generated from protobuf field <code>repeated int32 CompleteTaskList = 5;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCompleteTaskList($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->CompleteTaskList = $arr;

        return $this;
    }

}

