<?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.EventResponseMessage</code>
 */
class EventResponseMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.EventResponseMessage.EventResponseType response = 1;</code>
     */
    protected $response = null;
    /**
     * Generated from protobuf field <code>optional int64 timestampMs = 2;</code>
     */
    protected $timestampMs = null;
    /**
     * Generated from protobuf field <code>optional int32 extraGuestCount = 3;</code>
     */
    protected $extraGuestCount = null;

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

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

    public function hasResponse()
    {
        return isset($this->response);
    }

    public function clearResponse()
    {
        unset($this->response);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 timestampMs = 2;</code>
     * @return int|string
     */
    public function getTimestampMs()
    {
        return isset($this->timestampMs) ? $this->timestampMs : 0;
    }

    public function hasTimestampMs()
    {
        return isset($this->timestampMs);
    }

    public function clearTimestampMs()
    {
        unset($this->timestampMs);
    }

    /**
     * Generated from protobuf field <code>optional int64 timestampMs = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTimestampMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->timestampMs = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 extraGuestCount = 3;</code>
     * @return int
     */
    public function getExtraGuestCount()
    {
        return isset($this->extraGuestCount) ? $this->extraGuestCount : 0;
    }

    public function hasExtraGuestCount()
    {
        return isset($this->extraGuestCount);
    }

    public function clearExtraGuestCount()
    {
        unset($this->extraGuestCount);
    }

    /**
     * Generated from protobuf field <code>optional int32 extraGuestCount = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setExtraGuestCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->extraGuestCount = $var;

        return $this;
    }

}

