<?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.CloudAPIThreadControlNotification</code>
 */
class CloudAPIThreadControlNotification extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControl status = 1;</code>
     */
    protected $status = null;
    /**
     * Generated from protobuf field <code>optional int64 senderNotificationTimestampMs = 2;</code>
     */
    protected $senderNotificationTimestampMs = null;
    /**
     * Generated from protobuf field <code>optional string consumerLid = 3;</code>
     */
    protected $consumerLid = null;
    /**
     * Generated from protobuf field <code>optional string consumerPhoneNumber = 4;</code>
     */
    protected $consumerPhoneNumber = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControlNotificationContent notificationContent = 5;</code>
     */
    protected $notificationContent = null;
    /**
     * Generated from protobuf field <code>optional bool shouldSuppressNotification = 6;</code>
     */
    protected $shouldSuppressNotification = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $status
     *     @type int|string $senderNotificationTimestampMs
     *     @type string $consumerLid
     *     @type string $consumerPhoneNumber
     *     @type \PhpWA\Protocol\Proto\Message\CloudAPIThreadControlNotification\CloudAPIThreadControlNotificationContent $notificationContent
     *     @type bool $shouldSuppressNotification
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasStatus()
    {
        return isset($this->status);
    }

    public function clearStatus()
    {
        unset($this->status);
    }

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

        return $this;
    }

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

    public function hasSenderNotificationTimestampMs()
    {
        return isset($this->senderNotificationTimestampMs);
    }

    public function clearSenderNotificationTimestampMs()
    {
        unset($this->senderNotificationTimestampMs);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string consumerLid = 3;</code>
     * @return string
     */
    public function getConsumerLid()
    {
        return isset($this->consumerLid) ? $this->consumerLid : '';
    }

    public function hasConsumerLid()
    {
        return isset($this->consumerLid);
    }

    public function clearConsumerLid()
    {
        unset($this->consumerLid);
    }

    /**
     * Generated from protobuf field <code>optional string consumerLid = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setConsumerLid($var)
    {
        GPBUtil::checkString($var, True);
        $this->consumerLid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string consumerPhoneNumber = 4;</code>
     * @return string
     */
    public function getConsumerPhoneNumber()
    {
        return isset($this->consumerPhoneNumber) ? $this->consumerPhoneNumber : '';
    }

    public function hasConsumerPhoneNumber()
    {
        return isset($this->consumerPhoneNumber);
    }

    public function clearConsumerPhoneNumber()
    {
        unset($this->consumerPhoneNumber);
    }

    /**
     * Generated from protobuf field <code>optional string consumerPhoneNumber = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setConsumerPhoneNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->consumerPhoneNumber = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControlNotificationContent notificationContent = 5;</code>
     * @return \PhpWA\Protocol\Proto\Message\CloudAPIThreadControlNotification\CloudAPIThreadControlNotificationContent|null
     */
    public function getNotificationContent()
    {
        return $this->notificationContent;
    }

    public function hasNotificationContent()
    {
        return isset($this->notificationContent);
    }

    public function clearNotificationContent()
    {
        unset($this->notificationContent);
    }

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

        return $this;
    }

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

    public function hasShouldSuppressNotification()
    {
        return isset($this->shouldSuppressNotification);
    }

    public function clearShouldSuppressNotification()
    {
        unset($this->shouldSuppressNotification);
    }

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

        return $this;
    }

}

