<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $isVideo = null;
    


    protected $callOutcome = null;
    


    protected $durationSecs = null;
    


    protected $callType = null;
    


    private $participants;

    












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

    



    public function getIsVideo()
    {
        return isset($this->isVideo) ? $this->isVideo : false;
    }

    public function hasIsVideo()
    {
        return isset($this->isVideo);
    }

    public function clearIsVideo()
    {
        unset($this->isVideo);
    }

    




    public function setIsVideo($var)
    {
        GPBUtil::checkBool($var);
        $this->isVideo = $var;

        return $this;
    }

    



    public function getCallOutcome()
    {
        return isset($this->callOutcome) ? $this->callOutcome : 0;
    }

    public function hasCallOutcome()
    {
        return isset($this->callOutcome);
    }

    public function clearCallOutcome()
    {
        unset($this->callOutcome);
    }

    




    public function setCallOutcome($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\CallLogMessage\CallOutcome::class);
        $this->callOutcome = $var;

        return $this;
    }

    



    public function getDurationSecs()
    {
        return isset($this->durationSecs) ? $this->durationSecs : 0;
    }

    public function hasDurationSecs()
    {
        return isset($this->durationSecs);
    }

    public function clearDurationSecs()
    {
        unset($this->durationSecs);
    }

    




    public function setDurationSecs($var)
    {
        GPBUtil::checkInt64($var);
        $this->durationSecs = $var;

        return $this;
    }

    



    public function getCallType()
    {
        return isset($this->callType) ? $this->callType : 0;
    }

    public function hasCallType()
    {
        return isset($this->callType);
    }

    public function clearCallType()
    {
        unset($this->callType);
    }

    




    public function setCallType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\CallLogMessage\CallType::class);
        $this->callType = $var;

        return $this;
    }

    



    public function getParticipants()
    {
        return $this->participants;
    }

    




    public function setParticipants($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\CallLogMessage\CallParticipant::class);
        $this->participants = $arr;

        return $this;
    }

}

