<?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.ExtendedTextMessage</code>
 */
class ExtendedTextMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string text = 1;</code>
     */
    protected $text = null;
    /**
     * Generated from protobuf field <code>optional string matchedText = 2;</code>
     */
    protected $matchedText = null;
    /**
     * Generated from protobuf field <code>optional string description = 5;</code>
     */
    protected $description = null;
    /**
     * Generated from protobuf field <code>optional string title = 6;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional fixed32 textArgb = 7;</code>
     */
    protected $textArgb = null;
    /**
     * Generated from protobuf field <code>optional fixed32 backgroundArgb = 8;</code>
     */
    protected $backgroundArgb = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.FontType font = 9;</code>
     */
    protected $font = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.PreviewType previewType = 10;</code>
     */
    protected $previewType = null;
    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 16;</code>
     */
    protected $jpegThumbnail = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional bool doNotPlayInline = 18;</code>
     */
    protected $doNotPlayInline = null;
    /**
     * Generated from protobuf field <code>optional string thumbnailDirectPath = 19;</code>
     */
    protected $thumbnailDirectPath = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailSha256 = 20;</code>
     */
    protected $thumbnailSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailEncSha256 = 21;</code>
     */
    protected $thumbnailEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 22;</code>
     */
    protected $mediaKey = null;
    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 23;</code>
     */
    protected $mediaKeyTimestamp = null;
    /**
     * Generated from protobuf field <code>optional uint32 thumbnailHeight = 24;</code>
     */
    protected $thumbnailHeight = null;
    /**
     * Generated from protobuf field <code>optional uint32 thumbnailWidth = 25;</code>
     */
    protected $thumbnailWidth = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.InviteLinkGroupType inviteLinkGroupType = 26;</code>
     */
    protected $inviteLinkGroupType = null;
    /**
     * Generated from protobuf field <code>optional string inviteLinkParentGroupSubjectV2 = 27;</code>
     */
    protected $inviteLinkParentGroupSubjectV2 = null;
    /**
     * Generated from protobuf field <code>optional bytes inviteLinkParentGroupThumbnailV2 = 28;</code>
     */
    protected $inviteLinkParentGroupThumbnailV2 = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.InviteLinkGroupType inviteLinkGroupTypeV2 = 29;</code>
     */
    protected $inviteLinkGroupTypeV2 = null;
    /**
     * Generated from protobuf field <code>optional bool viewOnce = 30;</code>
     */
    protected $viewOnce = null;
    /**
     * Generated from protobuf field <code>optional uint32 videoHeight = 31;</code>
     */
    protected $videoHeight = null;
    /**
     * Generated from protobuf field <code>optional uint32 videoWidth = 32;</code>
     */
    protected $videoWidth = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.MMSThumbnailMetadata faviconMMSMetadata = 33;</code>
     */
    protected $faviconMMSMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.LinkPreviewMetadata linkPreviewMetadata = 34;</code>
     */
    protected $linkPreviewMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentLinkMetadata paymentLinkMetadata = 35;</code>
     */
    protected $paymentLinkMetadata = null;
    /**
     * Generated from protobuf field <code>repeated .proto.Message.VideoEndCard endCardTiles = 36;</code>
     */
    private $endCardTiles;
    /**
     * Generated from protobuf field <code>optional string videoContentUrl = 37;</code>
     */
    protected $videoContentUrl = null;
    /**
     * Generated from protobuf field <code>optional .proto.EmbeddedMusic musicMetadata = 38;</code>
     */
    protected $musicMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;</code>
     */
    protected $paymentExtendedMetadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $text
     *     @type string $matchedText
     *     @type string $description
     *     @type string $title
     *     @type int $textArgb
     *     @type int $backgroundArgb
     *     @type int $font
     *     @type int $previewType
     *     @type string $jpegThumbnail
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type bool $doNotPlayInline
     *     @type string $thumbnailDirectPath
     *     @type string $thumbnailSha256
     *     @type string $thumbnailEncSha256
     *     @type string $mediaKey
     *     @type int|string $mediaKeyTimestamp
     *     @type int $thumbnailHeight
     *     @type int $thumbnailWidth
     *     @type int $inviteLinkGroupType
     *     @type string $inviteLinkParentGroupSubjectV2
     *     @type string $inviteLinkParentGroupThumbnailV2
     *     @type int $inviteLinkGroupTypeV2
     *     @type bool $viewOnce
     *     @type int $videoHeight
     *     @type int $videoWidth
     *     @type \PhpWA\Protocol\Proto\Message\MMSThumbnailMetadata $faviconMMSMetadata
     *     @type \PhpWA\Protocol\Proto\Message\LinkPreviewMetadata $linkPreviewMetadata
     *     @type \PhpWA\Protocol\Proto\Message\PaymentLinkMetadata $paymentLinkMetadata
     *     @type \PhpWA\Protocol\Proto\Message\VideoEndCard[] $endCardTiles
     *     @type string $videoContentUrl
     *     @type \PhpWA\Protocol\Proto\EmbeddedMusic $musicMetadata
     *     @type \PhpWA\Protocol\Proto\Message\PaymentExtendedMetadata $paymentExtendedMetadata
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional fixed32 textArgb = 7;</code>
     * @return int
     */
    public function getTextArgb()
    {
        return isset($this->textArgb) ? $this->textArgb : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional fixed32 textArgb = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setTextArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->textArgb = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional fixed32 backgroundArgb = 8;</code>
     * @return int
     */
    public function getBackgroundArgb()
    {
        return isset($this->backgroundArgb) ? $this->backgroundArgb : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional fixed32 backgroundArgb = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setBackgroundArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->backgroundArgb = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.FontType font = 9;</code>
     * @return int
     */
    public function getFont()
    {
        return isset($this->font) ? $this->font : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.FontType font = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setFont($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\FontType::class);
        $this->font = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.PreviewType previewType = 10;</code>
     * @return int
     */
    public function getPreviewType()
    {
        return isset($this->previewType) ? $this->previewType : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.PreviewType previewType = 10;</code>
     * @param int $var
     * @return $this
     */
    public function setPreviewType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\PreviewType::class);
        $this->previewType = $var;

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 16;</code>
     * @param string $var
     * @return $this
     */
    public function setJpegThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->jpegThumbnail = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @param \PhpWA\Protocol\Proto\ContextInfo $var
     * @return $this
     */
    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes thumbnailSha256 = 20;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbnailSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->thumbnailSha256 = $var;

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes thumbnailEncSha256 = 21;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbnailEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->thumbnailEncSha256 = $var;

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 22;</code>
     * @param string $var
     * @return $this
     */
    public function setMediaKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->mediaKey = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 thumbnailHeight = 24;</code>
     * @return int
     */
    public function getThumbnailHeight()
    {
        return isset($this->thumbnailHeight) ? $this->thumbnailHeight : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint32 thumbnailHeight = 24;</code>
     * @param int $var
     * @return $this
     */
    public function setThumbnailHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->thumbnailHeight = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 thumbnailWidth = 25;</code>
     * @return int
     */
    public function getThumbnailWidth()
    {
        return isset($this->thumbnailWidth) ? $this->thumbnailWidth : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint32 thumbnailWidth = 25;</code>
     * @param int $var
     * @return $this
     */
    public function setThumbnailWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->thumbnailWidth = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.InviteLinkGroupType inviteLinkGroupType = 26;</code>
     * @return int
     */
    public function getInviteLinkGroupType()
    {
        return isset($this->inviteLinkGroupType) ? $this->inviteLinkGroupType : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.InviteLinkGroupType inviteLinkGroupType = 26;</code>
     * @param int $var
     * @return $this
     */
    public function setInviteLinkGroupType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\InviteLinkGroupType::class);
        $this->inviteLinkGroupType = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes inviteLinkParentGroupThumbnailV2 = 28;</code>
     * @param string $var
     * @return $this
     */
    public function setInviteLinkParentGroupThumbnailV2($var)
    {
        GPBUtil::checkString($var, False);
        $this->inviteLinkParentGroupThumbnailV2 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.InviteLinkGroupType inviteLinkGroupTypeV2 = 29;</code>
     * @return int
     */
    public function getInviteLinkGroupTypeV2()
    {
        return isset($this->inviteLinkGroupTypeV2) ? $this->inviteLinkGroupTypeV2 : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.ExtendedTextMessage.InviteLinkGroupType inviteLinkGroupTypeV2 = 29;</code>
     * @param int $var
     * @return $this
     */
    public function setInviteLinkGroupTypeV2($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ExtendedTextMessage\InviteLinkGroupType::class);
        $this->inviteLinkGroupTypeV2 = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 videoHeight = 31;</code>
     * @return int
     */
    public function getVideoHeight()
    {
        return isset($this->videoHeight) ? $this->videoHeight : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint32 videoHeight = 31;</code>
     * @param int $var
     * @return $this
     */
    public function setVideoHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->videoHeight = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 videoWidth = 32;</code>
     * @return int
     */
    public function getVideoWidth()
    {
        return isset($this->videoWidth) ? $this->videoWidth : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint32 videoWidth = 32;</code>
     * @param int $var
     * @return $this
     */
    public function setVideoWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->videoWidth = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.MMSThumbnailMetadata faviconMMSMetadata = 33;</code>
     * @return \PhpWA\Protocol\Proto\Message\MMSThumbnailMetadata|null
     */
    public function getFaviconMMSMetadata()
    {
        return $this->faviconMMSMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.LinkPreviewMetadata linkPreviewMetadata = 34;</code>
     * @return \PhpWA\Protocol\Proto\Message\LinkPreviewMetadata|null
     */
    public function getLinkPreviewMetadata()
    {
        return $this->linkPreviewMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentLinkMetadata paymentLinkMetadata = 35;</code>
     * @return \PhpWA\Protocol\Proto\Message\PaymentLinkMetadata|null
     */
    public function getPaymentLinkMetadata()
    {
        return $this->paymentLinkMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.VideoEndCard endCardTiles = 36;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Message\VideoEndCard>
     */
    public function getEndCardTiles()
    {
        return $this->endCardTiles;
    }

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.EmbeddedMusic musicMetadata = 38;</code>
     * @return \PhpWA\Protocol\Proto\EmbeddedMusic|null
     */
    public function getMusicMetadata()
    {
        return $this->musicMetadata;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.EmbeddedMusic musicMetadata = 38;</code>
     * @param \PhpWA\Protocol\Proto\EmbeddedMusic $var
     * @return $this
     */
    public function setMusicMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\EmbeddedMusic::class);
        $this->musicMetadata = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;</code>
     * @return \PhpWA\Protocol\Proto\Message\PaymentExtendedMetadata|null
     */
    public function getPaymentExtendedMetadata()
    {
        return $this->paymentExtendedMetadata;
    }

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

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

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

        return $this;
    }

}

