<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $text = null;
    


    protected $matchedText = null;
    


    protected $description = null;
    


    protected $title = null;
    


    protected $textArgb = null;
    


    protected $backgroundArgb = null;
    


    protected $font = null;
    


    protected $previewType = null;
    


    protected $jpegThumbnail = null;
    


    protected $contextInfo = null;
    


    protected $doNotPlayInline = null;
    


    protected $thumbnailDirectPath = null;
    


    protected $thumbnailSha256 = null;
    


    protected $thumbnailEncSha256 = null;
    


    protected $mediaKey = null;
    


    protected $mediaKeyTimestamp = null;
    


    protected $thumbnailHeight = null;
    


    protected $thumbnailWidth = null;
    


    protected $inviteLinkGroupType = null;
    


    protected $inviteLinkParentGroupSubjectV2 = null;
    


    protected $inviteLinkParentGroupThumbnailV2 = null;
    


    protected $inviteLinkGroupTypeV2 = null;
    


    protected $viewOnce = null;
    


    protected $videoHeight = null;
    


    protected $videoWidth = null;
    


    protected $faviconMMSMetadata = null;
    


    protected $linkPreviewMetadata = null;
    


    protected $paymentLinkMetadata = null;
    


    private $endCardTiles;
    


    protected $videoContentUrl = null;
    


    protected $musicMetadata = null;
    


    protected $paymentExtendedMetadata = null;

    







































    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 getMatchedText()
    {
        return isset($this->matchedText) ? $this->matchedText : '';
    }

    public function hasMatchedText()
    {
        return isset($this->matchedText);
    }

    public function clearMatchedText()
    {
        unset($this->matchedText);
    }

    




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

        return $this;
    }

    



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

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

    




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

        return $this;
    }

    



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

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

    




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

        return $this;
    }

    



    public function getTextArgb()
    {
        return isset($this->textArgb) ? $this->textArgb : 0;
    }

    public function hasTextArgb()
    {
        return isset($this->textArgb);
    }

    public function clearTextArgb()
    {
        unset($this->textArgb);
    }

    




    public function setTextArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->textArgb = $var;

        return $this;
    }

    



    public function getBackgroundArgb()
    {
        return isset($this->backgroundArgb) ? $this->backgroundArgb : 0;
    }

    public function hasBackgroundArgb()
    {
        return isset($this->backgroundArgb);
    }

    public function clearBackgroundArgb()
    {
        unset($this->backgroundArgb);
    }

    




    public function setBackgroundArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->backgroundArgb = $var;

        return $this;
    }

    



    public function getFont()
    {
        return isset($this->font) ? $this->font : 0;
    }

    public function hasFont()
    {
        return isset($this->font);
    }

    public function clearFont()
    {
        unset($this->font);
    }

    




    public function setFont($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\FontType::class);
        $this->font = $var;

        return $this;
    }

    



    public function getPreviewType()
    {
        return isset($this->previewType) ? $this->previewType : 0;
    }

    public function hasPreviewType()
    {
        return isset($this->previewType);
    }

    public function clearPreviewType()
    {
        unset($this->previewType);
    }

    




    public function setPreviewType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\PreviewType::class);
        $this->previewType = $var;

        return $this;
    }

    



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

    public function hasJpegThumbnail()
    {
        return isset($this->jpegThumbnail);
    }

    public function clearJpegThumbnail()
    {
        unset($this->jpegThumbnail);
    }

    




    public function setJpegThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->jpegThumbnail = $var;

        return $this;
    }

    



    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

    




    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

    



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

    public function hasDoNotPlayInline()
    {
        return isset($this->doNotPlayInline);
    }

    public function clearDoNotPlayInline()
    {
        unset($this->doNotPlayInline);
    }

    




    public function setDoNotPlayInline($var)
    {
        GPBUtil::checkBool($var);
        $this->doNotPlayInline = $var;

        return $this;
    }

    



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

    public function hasThumbnailDirectPath()
    {
        return isset($this->thumbnailDirectPath);
    }

    public function clearThumbnailDirectPath()
    {
        unset($this->thumbnailDirectPath);
    }

    




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

        return $this;
    }

    



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

    public function hasThumbnailSha256()
    {
        return isset($this->thumbnailSha256);
    }

    public function clearThumbnailSha256()
    {
        unset($this->thumbnailSha256);
    }

    




    public function setThumbnailSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->thumbnailSha256 = $var;

        return $this;
    }

    



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

    public function hasThumbnailEncSha256()
    {
        return isset($this->thumbnailEncSha256);
    }

    public function clearThumbnailEncSha256()
    {
        unset($this->thumbnailEncSha256);
    }

    




    public function setThumbnailEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->thumbnailEncSha256 = $var;

        return $this;
    }

    



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

    public function hasMediaKey()
    {
        return isset($this->mediaKey);
    }

    public function clearMediaKey()
    {
        unset($this->mediaKey);
    }

    




    public function setMediaKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->mediaKey = $var;

        return $this;
    }

    



    public function getMediaKeyTimestamp()
    {
        return isset($this->mediaKeyTimestamp) ? $this->mediaKeyTimestamp : 0;
    }

    public function hasMediaKeyTimestamp()
    {
        return isset($this->mediaKeyTimestamp);
    }

    public function clearMediaKeyTimestamp()
    {
        unset($this->mediaKeyTimestamp);
    }

    




    public function setMediaKeyTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->mediaKeyTimestamp = $var;

        return $this;
    }

    



    public function getThumbnailHeight()
    {
        return isset($this->thumbnailHeight) ? $this->thumbnailHeight : 0;
    }

    public function hasThumbnailHeight()
    {
        return isset($this->thumbnailHeight);
    }

    public function clearThumbnailHeight()
    {
        unset($this->thumbnailHeight);
    }

    




    public function setThumbnailHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->thumbnailHeight = $var;

        return $this;
    }

    



    public function getThumbnailWidth()
    {
        return isset($this->thumbnailWidth) ? $this->thumbnailWidth : 0;
    }

    public function hasThumbnailWidth()
    {
        return isset($this->thumbnailWidth);
    }

    public function clearThumbnailWidth()
    {
        unset($this->thumbnailWidth);
    }

    




    public function setThumbnailWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->thumbnailWidth = $var;

        return $this;
    }

    



    public function getInviteLinkGroupType()
    {
        return isset($this->inviteLinkGroupType) ? $this->inviteLinkGroupType : 0;
    }

    public function hasInviteLinkGroupType()
    {
        return isset($this->inviteLinkGroupType);
    }

    public function clearInviteLinkGroupType()
    {
        unset($this->inviteLinkGroupType);
    }

    




    public function setInviteLinkGroupType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\InviteLinkGroupType::class);
        $this->inviteLinkGroupType = $var;

        return $this;
    }

    



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

    public function hasInviteLinkParentGroupSubjectV2()
    {
        return isset($this->inviteLinkParentGroupSubjectV2);
    }

    public function clearInviteLinkParentGroupSubjectV2()
    {
        unset($this->inviteLinkParentGroupSubjectV2);
    }

    




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

        return $this;
    }

    



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

    public function hasInviteLinkParentGroupThumbnailV2()
    {
        return isset($this->inviteLinkParentGroupThumbnailV2);
    }

    public function clearInviteLinkParentGroupThumbnailV2()
    {
        unset($this->inviteLinkParentGroupThumbnailV2);
    }

    




    public function setInviteLinkParentGroupThumbnailV2($var)
    {
        GPBUtil::checkString($var, False);
        $this->inviteLinkParentGroupThumbnailV2 = $var;

        return $this;
    }

    



    public function getInviteLinkGroupTypeV2()
    {
        return isset($this->inviteLinkGroupTypeV2) ? $this->inviteLinkGroupTypeV2 : 0;
    }

    public function hasInviteLinkGroupTypeV2()
    {
        return isset($this->inviteLinkGroupTypeV2);
    }

    public function clearInviteLinkGroupTypeV2()
    {
        unset($this->inviteLinkGroupTypeV2);
    }

    




    public function setInviteLinkGroupTypeV2($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\InviteLinkGroupType::class);
        $this->inviteLinkGroupTypeV2 = $var;

        return $this;
    }

    



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

    public function hasViewOnce()
    {
        return isset($this->viewOnce);
    }

    public function clearViewOnce()
    {
        unset($this->viewOnce);
    }

    




    public function setViewOnce($var)
    {
        GPBUtil::checkBool($var);
        $this->viewOnce = $var;

        return $this;
    }

    



    public function getVideoHeight()
    {
        return isset($this->videoHeight) ? $this->videoHeight : 0;
    }

    public function hasVideoHeight()
    {
        return isset($this->videoHeight);
    }

    public function clearVideoHeight()
    {
        unset($this->videoHeight);
    }

    




    public function setVideoHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->videoHeight = $var;

        return $this;
    }

    



    public function getVideoWidth()
    {
        return isset($this->videoWidth) ? $this->videoWidth : 0;
    }

    public function hasVideoWidth()
    {
        return isset($this->videoWidth);
    }

    public function clearVideoWidth()
    {
        unset($this->videoWidth);
    }

    




    public function setVideoWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->videoWidth = $var;

        return $this;
    }

    



    public function getFaviconMMSMetadata()
    {
        return $this->faviconMMSMetadata;
    }

    public function hasFaviconMMSMetadata()
    {
        return isset($this->faviconMMSMetadata);
    }

    public function clearFaviconMMSMetadata()
    {
        unset($this->faviconMMSMetadata);
    }

    




    public function setFaviconMMSMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\MMSThumbnailMetadata::class);
        $this->faviconMMSMetadata = $var;

        return $this;
    }

    



    public function getLinkPreviewMetadata()
    {
        return $this->linkPreviewMetadata;
    }

    public function hasLinkPreviewMetadata()
    {
        return isset($this->linkPreviewMetadata);
    }

    public function clearLinkPreviewMetadata()
    {
        unset($this->linkPreviewMetadata);
    }

    




    public function setLinkPreviewMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\LinkPreviewMetadata::class);
        $this->linkPreviewMetadata = $var;

        return $this;
    }

    



    public function getPaymentLinkMetadata()
    {
        return $this->paymentLinkMetadata;
    }

    public function hasPaymentLinkMetadata()
    {
        return isset($this->paymentLinkMetadata);
    }

    public function clearPaymentLinkMetadata()
    {
        unset($this->paymentLinkMetadata);
    }

    




    public function setPaymentLinkMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PaymentLinkMetadata::class);
        $this->paymentLinkMetadata = $var;

        return $this;
    }

    



    public function getEndCardTiles()
    {
        return $this->endCardTiles;
    }

    




    public function setEndCardTiles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\VideoEndCard::class);
        $this->endCardTiles = $arr;

        return $this;
    }

    



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

    public function hasVideoContentUrl()
    {
        return isset($this->videoContentUrl);
    }

    public function clearVideoContentUrl()
    {
        unset($this->videoContentUrl);
    }

    




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

        return $this;
    }

    



    public function getMusicMetadata()
    {
        return $this->musicMetadata;
    }

    public function hasMusicMetadata()
    {
        return isset($this->musicMetadata);
    }

    public function clearMusicMetadata()
    {
        unset($this->musicMetadata);
    }

    




    public function setMusicMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\EmbeddedMusic::class);
        $this->musicMetadata = $var;

        return $this;
    }

    



    public function getPaymentExtendedMetadata()
    {
        return $this->paymentExtendedMetadata;
    }

    public function hasPaymentExtendedMetadata()
    {
        return isset($this->paymentExtendedMetadata);
    }

    public function clearPaymentExtendedMetadata()
    {
        unset($this->paymentExtendedMetadata);
    }

    




    public function setPaymentExtendedMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PaymentExtendedMetadata::class);
        $this->paymentExtendedMetadata = $var;

        return $this;
    }

}

