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

namespace PhpWA\Protocol\Proto\Message\TemplateMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.TemplateMessage.HydratedFourRowTemplate</code>
 */
class HydratedFourRowTemplate extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string hydratedContentText = 6;</code>
     */
    protected $hydratedContentText = null;
    /**
     * Generated from protobuf field <code>optional string hydratedFooterText = 7;</code>
     */
    protected $hydratedFooterText = null;
    /**
     * Generated from protobuf field <code>repeated .proto.HydratedTemplateButton hydratedButtons = 8;</code>
     */
    private $hydratedButtons;
    /**
     * Generated from protobuf field <code>optional string templateId = 9;</code>
     */
    protected $templateId = null;
    /**
     * Generated from protobuf field <code>optional bool maskLinkedDevices = 10;</code>
     */
    protected $maskLinkedDevices = null;
    protected $title;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $hydratedContentText
     *     @type string $hydratedFooterText
     *     @type \PhpWA\Protocol\Proto\HydratedTemplateButton[] $hydratedButtons
     *     @type string $templateId
     *     @type bool $maskLinkedDevices
     *     @type \PhpWA\Protocol\Proto\Message\DocumentMessage $documentMessage
     *     @type string $hydratedTitleText
     *     @type \PhpWA\Protocol\Proto\Message\ImageMessage $imageMessage
     *     @type \PhpWA\Protocol\Proto\Message\VideoMessage $videoMessage
     *     @type \PhpWA\Protocol\Proto\Message\LocationMessage $locationMessage
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasHydratedContentText()
    {
        return isset($this->hydratedContentText);
    }

    public function clearHydratedContentText()
    {
        unset($this->hydratedContentText);
    }

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

        return $this;
    }

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

    public function hasHydratedFooterText()
    {
        return isset($this->hydratedFooterText);
    }

    public function clearHydratedFooterText()
    {
        unset($this->hydratedFooterText);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.HydratedTemplateButton hydratedButtons = 8;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\HydratedTemplateButton>
     */
    public function getHydratedButtons()
    {
        return $this->hydratedButtons;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.HydratedTemplateButton hydratedButtons = 8;</code>
     * @param \PhpWA\Protocol\Proto\HydratedTemplateButton[] $var
     * @return $this
     */
    public function setHydratedButtons($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\HydratedTemplateButton::class);
        $this->hydratedButtons = $arr;

        return $this;
    }

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

    public function hasTemplateId()
    {
        return isset($this->templateId);
    }

    public function clearTemplateId()
    {
        unset($this->templateId);
    }

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

        return $this;
    }

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

    public function hasMaskLinkedDevices()
    {
        return isset($this->maskLinkedDevices);
    }

    public function clearMaskLinkedDevices()
    {
        unset($this->maskLinkedDevices);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.DocumentMessage documentMessage = 1;</code>
     * @return \PhpWA\Protocol\Proto\Message\DocumentMessage|null
     */
    public function getDocumentMessage()
    {
        return $this->readOneof(1);
    }

    public function hasDocumentMessage()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.proto.Message.DocumentMessage documentMessage = 1;</code>
     * @param \PhpWA\Protocol\Proto\Message\DocumentMessage $var
     * @return $this
     */
    public function setDocumentMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\DocumentMessage::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>string hydratedTitleText = 2;</code>
     * @return string
     */
    public function getHydratedTitleText()
    {
        return $this->readOneof(2);
    }

    public function hasHydratedTitleText()
    {
        return $this->hasOneof(2);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.ImageMessage imageMessage = 3;</code>
     * @return \PhpWA\Protocol\Proto\Message\ImageMessage|null
     */
    public function getImageMessage()
    {
        return $this->readOneof(3);
    }

    public function hasImageMessage()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.proto.Message.ImageMessage imageMessage = 3;</code>
     * @param \PhpWA\Protocol\Proto\Message\ImageMessage $var
     * @return $this
     */
    public function setImageMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\ImageMessage::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.VideoMessage videoMessage = 4;</code>
     * @return \PhpWA\Protocol\Proto\Message\VideoMessage|null
     */
    public function getVideoMessage()
    {
        return $this->readOneof(4);
    }

    public function hasVideoMessage()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.proto.Message.VideoMessage videoMessage = 4;</code>
     * @param \PhpWA\Protocol\Proto\Message\VideoMessage $var
     * @return $this
     */
    public function setVideoMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\VideoMessage::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.LocationMessage locationMessage = 5;</code>
     * @return \PhpWA\Protocol\Proto\Message\LocationMessage|null
     */
    public function getLocationMessage()
    {
        return $this->readOneof(5);
    }

    public function hasLocationMessage()
    {
        return $this->hasOneof(5);
    }

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

        return $this;
    }

    /**
     * @return string
     */
    public function getTitle()
    {
        return $this->whichOneof("title");
    }

}

