<?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.RequestWelcomeMessageMetadata</code>
 */
class RequestWelcomeMessageMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.RequestWelcomeMessageMetadata.LocalChatState localChatState = 1;</code>
     */
    protected $localChatState = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.RequestWelcomeMessageMetadata.LocalChatState localChatState = 1;</code>
     * @return int
     */
    public function getLocalChatState()
    {
        return isset($this->localChatState) ? $this->localChatState : 0;
    }

    public function hasLocalChatState()
    {
        return isset($this->localChatState);
    }

    public function clearLocalChatState()
    {
        unset($this->localChatState);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.RequestWelcomeMessageMetadata.LocalChatState localChatState = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setLocalChatState($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\RequestWelcomeMessageMetadata\LocalChatState::class);
        $this->localChatState = $var;

        return $this;
    }

}

