<?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.BotPlanningStepSectionMetadata</code>
 */
class BotPlanningStepSectionMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string sectionTitle = 1;</code>
     */
    protected $sectionTitle = null;
    /**
     * Generated from protobuf field <code>optional string sectionBody = 2;</code>
     */
    protected $sectionBody = null;
    /**
     * Generated from protobuf field <code>repeated .proto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;</code>
     */
    private $sourcesMetadata;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $sectionTitle
     *     @type string $sectionBody
     *     @type \PhpWA\Protocol\Proto\BotProgressIndicatorMetadata\BotPlanningStepMetadata\BotPlanningSearchSourceMetadata[] $sourcesMetadata
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasSectionTitle()
    {
        return isset($this->sectionTitle);
    }

    public function clearSectionTitle()
    {
        unset($this->sectionTitle);
    }

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

        return $this;
    }

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

    public function hasSectionBody()
    {
        return isset($this->sectionBody);
    }

    public function clearSectionBody()
    {
        unset($this->sectionBody);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\BotProgressIndicatorMetadata\BotPlanningStepMetadata\BotPlanningSearchSourceMetadata>
     */
    public function getSourcesMetadata()
    {
        return $this->sourcesMetadata;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;</code>
     * @param \PhpWA\Protocol\Proto\BotProgressIndicatorMetadata\BotPlanningStepMetadata\BotPlanningSearchSourceMetadata[] $var
     * @return $this
     */
    public function setSourcesMetadata($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\BotProgressIndicatorMetadata\BotPlanningStepMetadata\BotPlanningSearchSourceMetadata::class);
        $this->sourcesMetadata = $arr;

        return $this;
    }

}

