<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




class RecordStructure extends \Google\Protobuf\Internal\Message
{
    


    protected $currentSession = null;
    


    private $previousSessions;

    









    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getCurrentSession()
    {
        return $this->currentSession;
    }

    public function hasCurrentSession()
    {
        return isset($this->currentSession);
    }

    public function clearCurrentSession()
    {
        unset($this->currentSession);
    }

    




    public function setCurrentSession($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\SessionStructure::class);
        $this->currentSession = $var;

        return $this;
    }

    



    public function getPreviousSessions()
    {
        return $this->previousSessions;
    }

    




    public function setPreviousSessions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\SessionStructure::class);
        $this->previousSessions = $arr;

        return $this;
    }

}

