<?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;

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse</code>
 */
class LinkPreviewResponse 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 title = 2;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string description = 3;</code>
     */
    protected $description = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbData = 4;</code>
     */
    protected $thumbData = null;
    /**
     * Generated from protobuf field <code>optional string matchText = 6;</code>
     */
    protected $matchText = null;
    /**
     * Generated from protobuf field <code>optional string previewType = 7;</code>
     */
    protected $previewType = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.LinkPreviewHighQualityThumbnail hqThumbnail = 8;</code>
     */
    protected $hqThumbnail = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata previewMetadata = 9;</code>
     */
    protected $previewMetadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type string $title
     *     @type string $description
     *     @type string $thumbData
     *     @type string $matchText
     *     @type string $previewType
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\LinkPreviewHighQualityThumbnail $hqThumbnail
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\PaymentLinkPreviewMetadata $previewMetadata
     * }
     */
    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 title = 2;</code>
     * @return string
     */
    public function getTitle()
    {
        return isset($this->title) ? $this->title : '';
    }

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

        return $this;
    }

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

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

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

        return $this;
    }

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

    public function hasThumbData()
    {
        return isset($this->thumbData);
    }

    public function clearThumbData()
    {
        unset($this->thumbData);
    }

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

        return $this;
    }

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

    public function hasMatchText()
    {
        return isset($this->matchText);
    }

    public function clearMatchText()
    {
        unset($this->matchText);
    }

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

        return $this;
    }

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

    public function hasPreviewType()
    {
        return isset($this->previewType);
    }

    public function clearPreviewType()
    {
        unset($this->previewType);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.LinkPreviewHighQualityThumbnail hqThumbnail = 8;</code>
     * @return \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\LinkPreviewHighQualityThumbnail|null
     */
    public function getHqThumbnail()
    {
        return $this->hqThumbnail;
    }

    public function hasHqThumbnail()
    {
        return isset($this->hqThumbnail);
    }

    public function clearHqThumbnail()
    {
        unset($this->hqThumbnail);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.LinkPreviewHighQualityThumbnail hqThumbnail = 8;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\LinkPreviewHighQualityThumbnail $var
     * @return $this
     */
    public function setHqThumbnail($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\LinkPreviewHighQualityThumbnail::class);
        $this->hqThumbnail = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata previewMetadata = 9;</code>
     * @return \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\PaymentLinkPreviewMetadata|null
     */
    public function getPreviewMetadata()
    {
        return $this->previewMetadata;
    }

    public function hasPreviewMetadata()
    {
        return isset($this->previewMetadata);
    }

    public function clearPreviewMetadata()
    {
        unset($this->previewMetadata);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata previewMetadata = 9;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\PaymentLinkPreviewMetadata $var
     * @return $this
     */
    public function setPreviewMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse\PaymentLinkPreviewMetadata::class);
        $this->previewMetadata = $var;

        return $this;
    }

}

