<?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.BotPlanningSearchSourcesMetadata</code>
 */
class BotPlanningSearchSourcesMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string sourceTitle = 1;</code>
     */
    protected $sourceTitle = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata.BotPlanningSearchSourceProvider provider = 2;</code>
     */
    protected $provider = null;
    /**
     * Generated from protobuf field <code>optional string sourceUrl = 3;</code>
     */
    protected $sourceUrl = null;

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

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

    public function hasSourceTitle()
    {
        return isset($this->sourceTitle);
    }

    public function clearSourceTitle()
    {
        unset($this->sourceTitle);
    }

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

        return $this;
    }

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

}

