<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse;

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




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


    protected $directPath = null;
    


    protected $thumbHash = null;
    


    protected $encThumbHash = null;
    


    protected $mediaKey = null;
    


    protected $mediaKeyTimestampMs = null;
    


    protected $thumbWidth = null;
    


    protected $thumbHeight = null;

    














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

    



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

    public function hasThumbHash()
    {
        return isset($this->thumbHash);
    }

    public function clearThumbHash()
    {
        unset($this->thumbHash);
    }

    




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

        return $this;
    }

    



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

    public function hasEncThumbHash()
    {
        return isset($this->encThumbHash);
    }

    public function clearEncThumbHash()
    {
        unset($this->encThumbHash);
    }

    




    public function setEncThumbHash($var)
    {
        GPBUtil::checkString($var, True);
        $this->encThumbHash = $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 getMediaKeyTimestampMs()
    {
        return isset($this->mediaKeyTimestampMs) ? $this->mediaKeyTimestampMs : 0;
    }

    public function hasMediaKeyTimestampMs()
    {
        return isset($this->mediaKeyTimestampMs);
    }

    public function clearMediaKeyTimestampMs()
    {
        unset($this->mediaKeyTimestampMs);
    }

    




    public function setMediaKeyTimestampMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->mediaKeyTimestampMs = $var;

        return $this;
    }

    



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

    public function hasThumbWidth()
    {
        return isset($this->thumbWidth);
    }

    public function clearThumbWidth()
    {
        unset($this->thumbWidth);
    }

    




    public function setThumbWidth($var)
    {
        GPBUtil::checkInt32($var);
        $this->thumbWidth = $var;

        return $this;
    }

    



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

    public function hasThumbHeight()
    {
        return isset($this->thumbHeight);
    }

    public function clearThumbHeight()
    {
        unset($this->thumbHeight);
    }

    




    public function setThumbHeight($var)
    {
        GPBUtil::checkInt32($var);
        $this->thumbHeight = $var;

        return $this;
    }

}

