<?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.ImageMessage</code>
 */
class ImageMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional string mimetype = 2;</code>
     */
    protected $mimetype = null;
    /**
     * Generated from protobuf field <code>optional string caption = 3;</code>
     */
    protected $caption = null;
    /**
     * Generated from protobuf field <code>optional bytes fileSha256 = 4;</code>
     */
    protected $fileSha256 = null;
    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</code>
     */
    protected $fileLength = null;
    /**
     * Generated from protobuf field <code>optional uint32 height = 6;</code>
     */
    protected $height = null;
    /**
     * Generated from protobuf field <code>optional uint32 width = 7;</code>
     */
    protected $width = null;
    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 8;</code>
     */
    protected $mediaKey = null;
    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 9;</code>
     */
    protected $fileEncSha256 = null;
    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation interactiveAnnotations = 10;</code>
     */
    private $interactiveAnnotations;
    /**
     * Generated from protobuf field <code>optional string directPath = 11;</code>
     */
    protected $directPath = null;
    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 12;</code>
     */
    protected $mediaKeyTimestamp = 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 bytes firstScanSidecar = 18;</code>
     */
    protected $firstScanSidecar = null;
    /**
     * Generated from protobuf field <code>optional uint32 firstScanLength = 19;</code>
     */
    protected $firstScanLength = null;
    /**
     * Generated from protobuf field <code>optional uint32 experimentGroupId = 20;</code>
     */
    protected $experimentGroupId = null;
    /**
     * Generated from protobuf field <code>optional bytes scansSidecar = 21;</code>
     */
    protected $scansSidecar = null;
    /**
     * Generated from protobuf field <code>repeated uint32 scanLengths = 22;</code>
     */
    private $scanLengths;
    /**
     * Generated from protobuf field <code>optional bytes midQualityFileSha256 = 23;</code>
     */
    protected $midQualityFileSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes midQualityFileEncSha256 = 24;</code>
     */
    protected $midQualityFileEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional bool viewOnce = 25;</code>
     */
    protected $viewOnce = null;
    /**
     * Generated from protobuf field <code>optional string thumbnailDirectPath = 26;</code>
     */
    protected $thumbnailDirectPath = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailSha256 = 27;</code>
     */
    protected $thumbnailSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailEncSha256 = 28;</code>
     */
    protected $thumbnailEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional string staticUrl = 29;</code>
     */
    protected $staticUrl = null;
    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation annotations = 30;</code>
     */
    private $annotations;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ImageMessage.ImageSourceType imageSourceType = 31;</code>
     */
    protected $imageSourceType = null;
    /**
     * Generated from protobuf field <code>optional string accessibilityLabel = 32;</code>
     */
    protected $accessibilityLabel = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 33;</code>
     */
    protected $mediaKeyDomain = null;
    /**
     * Generated from protobuf field <code>optional string qrUrl = 34;</code>
     */
    protected $qrUrl = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type string $mimetype
     *     @type string $caption
     *     @type string $fileSha256
     *     @type int|string $fileLength
     *     @type int $height
     *     @type int $width
     *     @type string $mediaKey
     *     @type string $fileEncSha256
     *     @type \PhpWA\Protocol\Proto\InteractiveAnnotation[] $interactiveAnnotations
     *     @type string $directPath
     *     @type int|string $mediaKeyTimestamp
     *     @type string $jpegThumbnail
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type string $firstScanSidecar
     *     @type int $firstScanLength
     *     @type int $experimentGroupId
     *     @type string $scansSidecar
     *     @type int[] $scanLengths
     *     @type string $midQualityFileSha256
     *     @type string $midQualityFileEncSha256
     *     @type bool $viewOnce
     *     @type string $thumbnailDirectPath
     *     @type string $thumbnailSha256
     *     @type string $thumbnailEncSha256
     *     @type string $staticUrl
     *     @type \PhpWA\Protocol\Proto\InteractiveAnnotation[] $annotations
     *     @type int $imageSourceType
     *     @type string $accessibilityLabel
     *     @type int $mediaKeyDomain
     *     @type string $qrUrl
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

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

        return $this;
    }

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

    public function hasMimetype()
    {
        return isset($this->mimetype);
    }

    public function clearMimetype()
    {
        unset($this->mimetype);
    }

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

        return $this;
    }

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

    public function hasCaption()
    {
        return isset($this->caption);
    }

    public function clearCaption()
    {
        unset($this->caption);
    }

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

        return $this;
    }

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

    public function hasFileSha256()
    {
        return isset($this->fileSha256);
    }

    public function clearFileSha256()
    {
        unset($this->fileSha256);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</code>
     * @return int|string
     */
    public function getFileLength()
    {
        return isset($this->fileLength) ? $this->fileLength : 0;
    }

    public function hasFileLength()
    {
        return isset($this->fileLength);
    }

    public function clearFileLength()
    {
        unset($this->fileLength);
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFileLength($var)
    {
        GPBUtil::checkUint64($var);
        $this->fileLength = $var;

        return $this;
    }

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

    public function hasHeight()
    {
        return isset($this->height);
    }

    public function clearHeight()
    {
        unset($this->height);
    }

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

        return $this;
    }

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

    public function hasWidth()
    {
        return isset($this->width);
    }

    public function clearWidth()
    {
        unset($this->width);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 8;</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 = 8;</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 bytes fileEncSha256 = 9;</code>
     * @return string
     */
    public function getFileEncSha256()
    {
        return isset($this->fileEncSha256) ? $this->fileEncSha256 : '';
    }

    public function hasFileEncSha256()
    {
        return isset($this->fileEncSha256);
    }

    public function clearFileEncSha256()
    {
        unset($this->fileEncSha256);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation interactiveAnnotations = 10;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\InteractiveAnnotation>
     */
    public function getInteractiveAnnotations()
    {
        return $this->interactiveAnnotations;
    }

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

        return $this;
    }

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

    public function hasDirectPath()
    {
        return isset($this->directPath);
    }

    public function clearDirectPath()
    {
        unset($this->directPath);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 12;</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 = 12;</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 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 bytes firstScanSidecar = 18;</code>
     * @return string
     */
    public function getFirstScanSidecar()
    {
        return isset($this->firstScanSidecar) ? $this->firstScanSidecar : '';
    }

    public function hasFirstScanSidecar()
    {
        return isset($this->firstScanSidecar);
    }

    public function clearFirstScanSidecar()
    {
        unset($this->firstScanSidecar);
    }

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

        return $this;
    }

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

    public function hasFirstScanLength()
    {
        return isset($this->firstScanLength);
    }

    public function clearFirstScanLength()
    {
        unset($this->firstScanLength);
    }

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

        return $this;
    }

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

    public function hasExperimentGroupId()
    {
        return isset($this->experimentGroupId);
    }

    public function clearExperimentGroupId()
    {
        unset($this->experimentGroupId);
    }

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

        return $this;
    }

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

    public function hasScansSidecar()
    {
        return isset($this->scansSidecar);
    }

    public function clearScansSidecar()
    {
        unset($this->scansSidecar);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated uint32 scanLengths = 22;</code>
     * @return RepeatedField<int>
     */
    public function getScanLengths()
    {
        return $this->scanLengths;
    }

    /**
     * Generated from protobuf field <code>repeated uint32 scanLengths = 22;</code>
     * @param int[] $var
     * @return $this
     */
    public function setScanLengths($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->scanLengths = $arr;

        return $this;
    }

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

    public function hasMidQualityFileSha256()
    {
        return isset($this->midQualityFileSha256);
    }

    public function clearMidQualityFileSha256()
    {
        unset($this->midQualityFileSha256);
    }

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

        return $this;
    }

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

    public function hasMidQualityFileEncSha256()
    {
        return isset($this->midQualityFileEncSha256);
    }

    public function clearMidQualityFileEncSha256()
    {
        unset($this->midQualityFileEncSha256);
    }

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

        return $this;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string thumbnailDirectPath = 26;</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 = 26;</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 = 27;</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 = 27;</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 = 28;</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 = 28;</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 string staticUrl = 29;</code>
     * @return string
     */
    public function getStaticUrl()
    {
        return isset($this->staticUrl) ? $this->staticUrl : '';
    }

    public function hasStaticUrl()
    {
        return isset($this->staticUrl);
    }

    public function clearStaticUrl()
    {
        unset($this->staticUrl);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation annotations = 30;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\InteractiveAnnotation>
     */
    public function getAnnotations()
    {
        return $this->annotations;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ImageMessage.ImageSourceType imageSourceType = 31;</code>
     * @return int
     */
    public function getImageSourceType()
    {
        return isset($this->imageSourceType) ? $this->imageSourceType : 0;
    }

    public function hasImageSourceType()
    {
        return isset($this->imageSourceType);
    }

    public function clearImageSourceType()
    {
        unset($this->imageSourceType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ImageMessage.ImageSourceType imageSourceType = 31;</code>
     * @param int $var
     * @return $this
     */
    public function setImageSourceType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ImageMessage\ImageSourceType::class);
        $this->imageSourceType = $var;

        return $this;
    }

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

    public function hasAccessibilityLabel()
    {
        return isset($this->accessibilityLabel);
    }

    public function clearAccessibilityLabel()
    {
        unset($this->accessibilityLabel);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 33;</code>
     * @return int
     */
    public function getMediaKeyDomain()
    {
        return isset($this->mediaKeyDomain) ? $this->mediaKeyDomain : 0;
    }

    public function hasMediaKeyDomain()
    {
        return isset($this->mediaKeyDomain);
    }

    public function clearMediaKeyDomain()
    {
        unset($this->mediaKeyDomain);
    }

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

        return $this;
    }

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

    public function hasQrUrl()
    {
        return isset($this->qrUrl);
    }

    public function clearQrUrl()
    {
        unset($this->qrUrl);
    }

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

        return $this;
    }

}

