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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.BotPluginMetadata</code>
 */
class BotPluginMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.SearchProvider provider = 1;</code>
     */
    protected $provider = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType pluginType = 2;</code>
     */
    protected $pluginType = null;
    /**
     * Generated from protobuf field <code>optional string thumbnailCdnUrl = 3;</code>
     */
    protected $thumbnailCdnUrl = null;
    /**
     * Generated from protobuf field <code>optional string profilePhotoCdnUrl = 4;</code>
     */
    protected $profilePhotoCdnUrl = null;
    /**
     * Generated from protobuf field <code>optional string searchProviderUrl = 5;</code>
     */
    protected $searchProviderUrl = null;
    /**
     * Generated from protobuf field <code>optional uint32 referenceIndex = 6;</code>
     */
    protected $referenceIndex = null;
    /**
     * Generated from protobuf field <code>optional uint32 expectedLinksCount = 7;</code>
     */
    protected $expectedLinksCount = null;
    /**
     * Generated from protobuf field <code>optional string searchQuery = 9;</code>
     */
    protected $searchQuery = null;
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey parentPluginMessageKey = 10;</code>
     */
    protected $parentPluginMessageKey = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType deprecatedField = 11;</code>
     */
    protected $deprecatedField = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType parentPluginType = 12;</code>
     */
    protected $parentPluginType = null;
    /**
     * Generated from protobuf field <code>optional string faviconCdnUrl = 13;</code>
     */
    protected $faviconCdnUrl = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $provider
     *     @type int $pluginType
     *     @type string $thumbnailCdnUrl
     *     @type string $profilePhotoCdnUrl
     *     @type string $searchProviderUrl
     *     @type int $referenceIndex
     *     @type int $expectedLinksCount
     *     @type string $searchQuery
     *     @type \PhpWA\Protocol\Proto\MessageKey $parentPluginMessageKey
     *     @type int $deprecatedField
     *     @type int $parentPluginType
     *     @type string $faviconCdnUrl
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.SearchProvider provider = 1;</code>
     * @return int
     */
    public function getProvider()
    {
        return isset($this->provider) ? $this->provider : 0;
    }

    public function hasProvider()
    {
        return isset($this->provider);
    }

    public function clearProvider()
    {
        unset($this->provider);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.SearchProvider provider = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setProvider($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotPluginMetadata\SearchProvider::class);
        $this->provider = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType pluginType = 2;</code>
     * @return int
     */
    public function getPluginType()
    {
        return isset($this->pluginType) ? $this->pluginType : 0;
    }

    public function hasPluginType()
    {
        return isset($this->pluginType);
    }

    public function clearPluginType()
    {
        unset($this->pluginType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType pluginType = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPluginType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotPluginMetadata\PluginType::class);
        $this->pluginType = $var;

        return $this;
    }

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

    public function hasThumbnailCdnUrl()
    {
        return isset($this->thumbnailCdnUrl);
    }

    public function clearThumbnailCdnUrl()
    {
        unset($this->thumbnailCdnUrl);
    }

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

        return $this;
    }

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

    public function hasProfilePhotoCdnUrl()
    {
        return isset($this->profilePhotoCdnUrl);
    }

    public function clearProfilePhotoCdnUrl()
    {
        unset($this->profilePhotoCdnUrl);
    }

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

        return $this;
    }

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

    public function hasSearchProviderUrl()
    {
        return isset($this->searchProviderUrl);
    }

    public function clearSearchProviderUrl()
    {
        unset($this->searchProviderUrl);
    }

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

        return $this;
    }

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

    public function hasReferenceIndex()
    {
        return isset($this->referenceIndex);
    }

    public function clearReferenceIndex()
    {
        unset($this->referenceIndex);
    }

    /**
     * Generated from protobuf field <code>optional uint32 referenceIndex = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setReferenceIndex($var)
    {
        GPBUtil::checkUint32($var);
        $this->referenceIndex = $var;

        return $this;
    }

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

    public function hasExpectedLinksCount()
    {
        return isset($this->expectedLinksCount);
    }

    public function clearExpectedLinksCount()
    {
        unset($this->expectedLinksCount);
    }

    /**
     * Generated from protobuf field <code>optional uint32 expectedLinksCount = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setExpectedLinksCount($var)
    {
        GPBUtil::checkUint32($var);
        $this->expectedLinksCount = $var;

        return $this;
    }

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

    public function hasSearchQuery()
    {
        return isset($this->searchQuery);
    }

    public function clearSearchQuery()
    {
        unset($this->searchQuery);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey parentPluginMessageKey = 10;</code>
     * @return \PhpWA\Protocol\Proto\MessageKey|null
     */
    public function getParentPluginMessageKey()
    {
        return $this->parentPluginMessageKey;
    }

    public function hasParentPluginMessageKey()
    {
        return isset($this->parentPluginMessageKey);
    }

    public function clearParentPluginMessageKey()
    {
        unset($this->parentPluginMessageKey);
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey parentPluginMessageKey = 10;</code>
     * @param \PhpWA\Protocol\Proto\MessageKey $var
     * @return $this
     */
    public function setParentPluginMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->parentPluginMessageKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType deprecatedField = 11;</code>
     * @return int
     */
    public function getDeprecatedField()
    {
        return isset($this->deprecatedField) ? $this->deprecatedField : 0;
    }

    public function hasDeprecatedField()
    {
        return isset($this->deprecatedField);
    }

    public function clearDeprecatedField()
    {
        unset($this->deprecatedField);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType deprecatedField = 11;</code>
     * @param int $var
     * @return $this
     */
    public function setDeprecatedField($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotPluginMetadata\PluginType::class);
        $this->deprecatedField = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType parentPluginType = 12;</code>
     * @return int
     */
    public function getParentPluginType()
    {
        return isset($this->parentPluginType) ? $this->parentPluginType : 0;
    }

    public function hasParentPluginType()
    {
        return isset($this->parentPluginType);
    }

    public function clearParentPluginType()
    {
        unset($this->parentPluginType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPluginMetadata.PluginType parentPluginType = 12;</code>
     * @param int $var
     * @return $this
     */
    public function setParentPluginType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotPluginMetadata\PluginType::class);
        $this->parentPluginType = $var;

        return $this;
    }

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

    public function hasFaviconCdnUrl()
    {
        return isset($this->faviconCdnUrl);
    }

    public function clearFaviconCdnUrl()
    {
        unset($this->faviconCdnUrl);
    }

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

        return $this;
    }

}

