<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $url = null;
    


    protected $mimetype = null;
    


    protected $caption = null;
    


    protected $fileSha256 = null;
    


    protected $fileLength = null;
    


    protected $height = null;
    


    protected $width = null;
    


    protected $mediaKey = null;
    


    protected $fileEncSha256 = null;
    


    private $interactiveAnnotations;
    


    protected $directPath = null;
    


    protected $mediaKeyTimestamp = null;
    


    protected $jpegThumbnail = null;
    


    protected $contextInfo = null;
    


    protected $firstScanSidecar = null;
    


    protected $firstScanLength = null;
    


    protected $experimentGroupId = null;
    


    protected $scansSidecar = null;
    


    private $scanLengths;
    


    protected $midQualityFileSha256 = null;
    


    protected $midQualityFileEncSha256 = null;
    


    protected $viewOnce = null;
    


    protected $thumbnailDirectPath = null;
    


    protected $thumbnailSha256 = null;
    


    protected $thumbnailEncSha256 = null;
    


    protected $staticUrl = null;
    


    private $annotations;
    


    protected $imageSourceType = null;
    


    protected $accessibilityLabel = null;
    


    protected $mediaKeyDomain = null;
    


    protected $qrUrl = null;

    






































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

    



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

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

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

    




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

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

    



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

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

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

    




    public function setFileLength($var)
    {
        GPBUtil::checkUint64($var);
        $this->fileLength = $var;

        return $this;
    }

    



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

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

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

    




    public function setHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->height = $var;

        return $this;
    }

    



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

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

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

    




    public function setWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->width = $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 getFileEncSha256()
    {
        return isset($this->fileEncSha256) ? $this->fileEncSha256 : '';
    }

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

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

    




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

        return $this;
    }

    



    public function getInteractiveAnnotations()
    {
        return $this->interactiveAnnotations;
    }

    




    public function setInteractiveAnnotations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\InteractiveAnnotation::class);
        $this->interactiveAnnotations = $arr;

        return $this;
    }

    



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

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

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

    




    public function setDirectPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->directPath = $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 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 getFirstScanSidecar()
    {
        return isset($this->firstScanSidecar) ? $this->firstScanSidecar : '';
    }

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

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

    




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

        return $this;
    }

    



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

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

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

    




    public function setFirstScanLength($var)
    {
        GPBUtil::checkUint32($var);
        $this->firstScanLength = $var;

        return $this;
    }

    



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

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

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

    




    public function setExperimentGroupId($var)
    {
        GPBUtil::checkUint32($var);
        $this->experimentGroupId = $var;

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

    



    public function getScanLengths()
    {
        return $this->scanLengths;
    }

    




    public function setScanLengths($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->scanLengths = $arr;

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

    



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

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

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

    




    public function setMidQualityFileEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->midQualityFileEncSha256 = $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 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 getStaticUrl()
    {
        return isset($this->staticUrl) ? $this->staticUrl : '';
    }

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

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

    




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

        return $this;
    }

    



    public function getAnnotations()
    {
        return $this->annotations;
    }

    




    public function setAnnotations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\InteractiveAnnotation::class);
        $this->annotations = $arr;

        return $this;
    }

    



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

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

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

    




    public function setImageSourceType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ImageMessage\ImageSourceType::class);
        $this->imageSourceType = $var;

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

    



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

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

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

    




    public function setMediaKeyDomain($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\MediaKeyDomain::class);
        $this->mediaKeyDomain = $var;

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

}

