<?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.AppStateFatalExceptionNotification</code>
 */
class AppStateFatalExceptionNotification extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string collectionNames = 1;</code>
     */
    private $collectionNames;
    /**
     * Generated from protobuf field <code>optional int64 timestamp = 2;</code>
     */
    protected $timestamp = null;

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

    /**
     * Generated from protobuf field <code>repeated string collectionNames = 1;</code>
     * @return RepeatedField<string>
     */
    public function getCollectionNames()
    {
        return $this->collectionNames;
    }

    /**
     * Generated from protobuf field <code>repeated string collectionNames = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setCollectionNames($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->collectionNames = $arr;

        return $this;
    }

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

    public function hasTimestamp()
    {
        return isset($this->timestamp);
    }

    public function clearTimestamp()
    {
        unset($this->timestamp);
    }

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

        return $this;
    }

}

