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

namespace PhpWA\Protocol\Proto\BotProgressIndicatorMetadata\BotPlanningStepMetadata;

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

/**
 * Generated from protobuf message <code>proto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata</code>
 */
class BotPlanningSearchSourceMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string title = 1;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;</code>
     */
    protected $provider = null;
    /**
     * Generated from protobuf field <code>optional string sourceUrl = 3;</code>
     */
    protected $sourceUrl = null;
    /**
     * Generated from protobuf field <code>optional string favIconUrl = 4;</code>
     */
    protected $favIconUrl = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $title
     *     @type int $provider
     *     @type string $sourceUrl
     *     @type string $favIconUrl
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string title = 1;</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 = 1;</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 .proto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;</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.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setProvider($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotProgressIndicatorMetadata\BotPlanningStepMetadata\BotSearchSourceProvider::class);
        $this->provider = $var;

        return $this;
    }

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

    public function hasSourceUrl()
    {
        return isset($this->sourceUrl);
    }

    public function clearSourceUrl()
    {
        unset($this->sourceUrl);
    }

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

        return $this;
    }

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

    public function hasFavIconUrl()
    {
        return isset($this->favIconUrl);
    }

    public function clearFavIconUrl()
    {
        unset($this->favIconUrl);
    }

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

        return $this;
    }

}

