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

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

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

    public function hasProgressDescription()
    {
        return isset($this->progressDescription);
    }

    public function clearProgressDescription()
    {
        unset($this->progressDescription);
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

