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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.SimulationRunSummary</code>
 */
class SimulationRunSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 passed = 1;</code>
     */
    protected $passed = 0;
    /**
     * Generated from protobuf field <code>int32 failed = 2;</code>
     */
    protected $failed = 0;
    /**
     * Generated from protobuf field <code>string going_well = 3;</code>
     */
    protected $going_well = '';
    /**
     * Generated from protobuf field <code>string to_improve = 4;</code>
     */
    protected $to_improve = '';
    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRunSummary.Issue issues = 5;</code>
     */
    private $issues;
    /**
     * Generated from protobuf field <code>map<string, .livekit.agent.ChatContext> chat_history = 6;</code>
     */
    private $chat_history;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $passed
     *     @type int $failed
     *     @type string $going_well
     *     @type string $to_improve
     *     @type \Livekit\SimulationRunSummary\Issue[] $issues
     *     @type array|\Google\Protobuf\Internal\MapField $chat_history
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgentSimulation::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 passed = 1;</code>
     * @return int
     */
    public function getPassed()
    {
        return $this->passed;
    }

    /**
     * Generated from protobuf field <code>int32 passed = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPassed($var)
    {
        GPBUtil::checkInt32($var);
        $this->passed = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 failed = 2;</code>
     * @return int
     */
    public function getFailed()
    {
        return $this->failed;
    }

    /**
     * Generated from protobuf field <code>int32 failed = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setFailed($var)
    {
        GPBUtil::checkInt32($var);
        $this->failed = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string going_well = 3;</code>
     * @return string
     */
    public function getGoingWell()
    {
        return $this->going_well;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string to_improve = 4;</code>
     * @return string
     */
    public function getToImprove()
    {
        return $this->to_improve;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRunSummary.Issue issues = 5;</code>
     * @return RepeatedField<\Livekit\SimulationRunSummary\Issue>
     */
    public function getIssues()
    {
        return $this->issues;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRunSummary.Issue issues = 5;</code>
     * @param \Livekit\SimulationRunSummary\Issue[] $var
     * @return $this
     */
    public function setIssues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\SimulationRunSummary\Issue::class);
        $this->issues = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>map<string, .livekit.agent.ChatContext> chat_history = 6;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getChatHistory()
    {
        return $this->chat_history;
    }

    /**
     * Generated from protobuf field <code>map<string, .livekit.agent.ChatContext> chat_history = 6;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setChatHistory($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\Agent\ChatContext::class);
        $this->chat_history = $arr;

        return $this;
    }

}

