<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\InteractiveMessage;

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




class Footer extends \Google\Protobuf\Internal\Message
{
    


    protected $text = null;
    


    protected $hasMediaAttachment = null;
    protected $media;

    










    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getText()
    {
        return isset($this->text) ? $this->text : '';
    }

    public function hasText()
    {
        return isset($this->text);
    }

    public function clearText()
    {
        unset($this->text);
    }

    




    public function setText($var)
    {
        GPBUtil::checkString($var, True);
        $this->text = $var;

        return $this;
    }

    



    public function getHasMediaAttachment()
    {
        return isset($this->hasMediaAttachment) ? $this->hasMediaAttachment : false;
    }

    public function hasHasMediaAttachment()
    {
        return isset($this->hasMediaAttachment);
    }

    public function clearHasMediaAttachment()
    {
        unset($this->hasMediaAttachment);
    }

    




    public function setHasMediaAttachment($var)
    {
        GPBUtil::checkBool($var);
        $this->hasMediaAttachment = $var;

        return $this;
    }

    



    public function getAudioMessage()
    {
        return $this->readOneof(2);
    }

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

    




    public function setAudioMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\AudioMessage::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    


    public function getMedia()
    {
        return $this->whichOneof("media");
    }

}

