<?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;

/**
 *-------------------------活动end-----------------------------//
 *
 * Generated from protobuf message <code>Game.Protobuf.ActivityInfo</code>
 */
class ActivityInfo extends \Google\Protobuf\Internal\Message
{
    /**
     *活动名id,对应ActivityTime表Activity字段
     *
     * Generated from protobuf field <code>int32 Activity = 1;</code>
     */
    protected $Activity = 0;
    /**
     *活动对应表id
     *
     * Generated from protobuf field <code>int32 ActivityId = 2;</code>
     */
    protected $ActivityId = 0;
    /**
     *活动状态 0未开启 1进行中 2关闭
     *
     * Generated from protobuf field <code>int32 Status = 3;</code>
     */
    protected $Status = 0;
    /**
     *开始时间 字符串 年-月-日 时:分:秒
     *
     * Generated from protobuf field <code>string StartTime = 4;</code>
     */
    protected $StartTime = '';
    /**
     * Generated from protobuf field <code>string EndTime = 5;</code>
     */
    protected $EndTime = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Activity
     *          活动名id,对应ActivityTime表Activity字段
     *     @type int $ActivityId
     *          活动对应表id
     *     @type int $Status
     *          活动状态 0未开启 1进行中 2关闭
     *     @type string $StartTime
     *          开始时间 字符串 年-月-日 时:分:秒
     *     @type string $EndTime
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *活动名id,对应ActivityTime表Activity字段
     *
     * Generated from protobuf field <code>int32 Activity = 1;</code>
     * @return int
     */
    public function getActivity()
    {
        return $this->Activity;
    }

    /**
     *活动名id,对应ActivityTime表Activity字段
     *
     * Generated from protobuf field <code>int32 Activity = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setActivity($var)
    {
        GPBUtil::checkInt32($var);
        $this->Activity = $var;

        return $this;
    }

    /**
     *活动对应表id
     *
     * Generated from protobuf field <code>int32 ActivityId = 2;</code>
     * @return int
     */
    public function getActivityId()
    {
        return $this->ActivityId;
    }

    /**
     *活动对应表id
     *
     * Generated from protobuf field <code>int32 ActivityId = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setActivityId($var)
    {
        GPBUtil::checkInt32($var);
        $this->ActivityId = $var;

        return $this;
    }

    /**
     *活动状态 0未开启 1进行中 2关闭
     *
     * Generated from protobuf field <code>int32 Status = 3;</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->Status;
    }

    /**
     *活动状态 0未开启 1进行中 2关闭
     *
     * Generated from protobuf field <code>int32 Status = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkInt32($var);
        $this->Status = $var;

        return $this;
    }

    /**
     *开始时间 字符串 年-月-日 时:分:秒
     *
     * Generated from protobuf field <code>string StartTime = 4;</code>
     * @return string
     */
    public function getStartTime()
    {
        return $this->StartTime;
    }

    /**
     *开始时间 字符串 年-月-日 时:分:秒
     *
     * Generated from protobuf field <code>string StartTime = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setStartTime($var)
    {
        GPBUtil::checkString($var, True);
        $this->StartTime = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string EndTime = 5;</code>
     * @return string
     */
    public function getEndTime()
    {
        return $this->EndTime;
    }

    /**
     * Generated from protobuf field <code>string EndTime = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setEndTime($var)
    {
        GPBUtil::checkString($var, True);
        $this->EndTime = $var;

        return $this;
    }

}

