<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.GroupHistoryBundleInfo</code>
 */
class GroupHistoryBundleInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;</code>
     */
    protected $deprecatedMessageHistoryBundle = null;
    /**
     * Generated from protobuf field <code>optional .proto.GroupHistoryBundleInfo.ProcessState processState = 2;</code>
     */
    protected $processState = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\MessageHistoryBundle $deprecatedMessageHistoryBundle
     *     @type int $processState
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;</code>
     * @return \PhpWA\Protocol\Proto\Message\MessageHistoryBundle|null
     */
    public function getDeprecatedMessageHistoryBundle()
    {
        return $this->deprecatedMessageHistoryBundle;
    }

    public function hasDeprecatedMessageHistoryBundle()
    {
        return isset($this->deprecatedMessageHistoryBundle);
    }

    public function clearDeprecatedMessageHistoryBundle()
    {
        unset($this->deprecatedMessageHistoryBundle);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;</code>
     * @param \PhpWA\Protocol\Proto\Message\MessageHistoryBundle $var
     * @return $this
     */
    public function setDeprecatedMessageHistoryBundle($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\MessageHistoryBundle::class);
        $this->deprecatedMessageHistoryBundle = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.GroupHistoryBundleInfo.ProcessState processState = 2;</code>
     * @return int
     */
    public function getProcessState()
    {
        return isset($this->processState) ? $this->processState : 0;
    }

    public function hasProcessState()
    {
        return isset($this->processState);
    }

    public function clearProcessState()
    {
        unset($this->processState);
    }

    /**
     * Generated from protobuf field <code>optional .proto.GroupHistoryBundleInfo.ProcessState processState = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setProcessState($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\GroupHistoryBundleInfo\ProcessState::class);
        $this->processState = $var;

        return $this;
    }

}

