<?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.GroupHistoryIndividualMessageInfo</code>
 */
class GroupHistoryIndividualMessageInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey bundleMessageKey = 1;</code>
     */
    protected $bundleMessageKey = null;
    /**
     * Generated from protobuf field <code>optional bool editedAfterReceivedAsHistory = 2;</code>
     */
    protected $editedAfterReceivedAsHistory = null;

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

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

    public function hasBundleMessageKey()
    {
        return isset($this->bundleMessageKey);
    }

    public function clearBundleMessageKey()
    {
        unset($this->bundleMessageKey);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool editedAfterReceivedAsHistory = 2;</code>
     * @return bool
     */
    public function getEditedAfterReceivedAsHistory()
    {
        return isset($this->editedAfterReceivedAsHistory) ? $this->editedAfterReceivedAsHistory : false;
    }

    public function hasEditedAfterReceivedAsHistory()
    {
        return isset($this->editedAfterReceivedAsHistory);
    }

    public function clearEditedAfterReceivedAsHistory()
    {
        unset($this->editedAfterReceivedAsHistory);
    }

    /**
     * Generated from protobuf field <code>optional bool editedAfterReceivedAsHistory = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setEditedAfterReceivedAsHistory($var)
    {
        GPBUtil::checkBool($var);
        $this->editedAfterReceivedAsHistory = $var;

        return $this;
    }

}

