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

namespace PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestMessage.RequestUrlPreview</code>
 */
class RequestUrlPreview extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional bool includeHqThumbnail = 2;</code>
     */
    protected $includeHqThumbnail = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type bool $includeHqThumbnail
     * }
     */
    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 bool includeHqThumbnail = 2;</code>
     * @return bool
     */
    public function getIncludeHqThumbnail()
    {
        return isset($this->includeHqThumbnail) ? $this->includeHqThumbnail : false;
    }

    public function hasIncludeHqThumbnail()
    {
        return isset($this->includeHqThumbnail);
    }

    public function clearIncludeHqThumbnail()
    {
        unset($this->includeHqThumbnail);
    }

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

        return $this;
    }

}

