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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.MessageHistoryNotice</code>
 */
class MessageHistoryNotice extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 1;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.MessageHistoryMetadata messageHistoryMetadata = 2;</code>
     */
    protected $messageHistoryMetadata = null;

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

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

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

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

        return $this;
    }

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

    public function hasMessageHistoryMetadata()
    {
        return isset($this->messageHistoryMetadata);
    }

    public function clearMessageHistoryMetadata()
    {
        unset($this->messageHistoryMetadata);
    }

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

        return $this;
    }

}

