<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

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

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.LinkPreviewHighQualityThumbnail</code>
 */
class LinkPreviewHighQualityThumbnail extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string directPath = 1;</code>
     */
    protected $directPath = null;
    /**
     * Generated from protobuf field <code>optional string thumbHash = 2;</code>
     */
    protected $thumbHash = null;
    /**
     * Generated from protobuf field <code>optional string encThumbHash = 3;</code>
     */
    protected $encThumbHash = null;
    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 4;</code>
     */
    protected $mediaKey = null;
    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestampMs = 5;</code>
     */
    protected $mediaKeyTimestampMs = null;
    /**
     * Generated from protobuf field <code>optional int32 thumbWidth = 6;</code>
     */
    protected $thumbWidth = null;
    /**
     * Generated from protobuf field <code>optional int32 thumbHeight = 7;</code>
     */
    protected $thumbHeight = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $directPath
     *     @type string $thumbHash
     *     @type string $encThumbHash
     *     @type string $mediaKey
     *     @type int|string $mediaKeyTimestampMs
     *     @type int $thumbWidth
     *     @type int $thumbHeight
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string directPath = 1;</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 = 1;</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 string thumbHash = 2;</code>
     * @return string
     */
    public function getThumbHash()
    {
        return isset($this->thumbHash) ? $this->thumbHash : '';
    }

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 4;</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 = 4;</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 mediaKeyTimestampMs = 5;</code>
     * @return int|string
     */
    public function getMediaKeyTimestampMs()
    {
        return isset($this->mediaKeyTimestampMs) ? $this->mediaKeyTimestampMs : 0;
    }

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

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

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

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional int32 thumbWidth = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setThumbWidth($var)
    {
        GPBUtil::checkInt32($var);
        $this->thumbWidth = $var;

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional int32 thumbHeight = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setThumbHeight($var)
    {
        GPBUtil::checkInt32($var);
        $this->thumbHeight = $var;

        return $this;
    }

}

