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

namespace PhpWA\Protocol\Proto\Message\CloudAPIThreadControlNotification;

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

/**
 * Generated from protobuf message <code>proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControlNotificationContent</code>
 */
class CloudAPIThreadControlNotificationContent extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string handoffNotificationText = 1;</code>
     */
    protected $handoffNotificationText = null;
    /**
     * Generated from protobuf field <code>optional string extraJson = 2;</code>
     */
    protected $extraJson = null;

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

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

    public function hasHandoffNotificationText()
    {
        return isset($this->handoffNotificationText);
    }

    public function clearHandoffNotificationText()
    {
        unset($this->handoffNotificationText);
    }

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

        return $this;
    }

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

    public function hasExtraJson()
    {
        return isset($this->extraJson);
    }

    public function clearExtraJson()
    {
        unset($this->extraJson);
    }

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

        return $this;
    }

}

