<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $clientHello = null;
    


    protected $serverHello = null;
    


    protected $clientFinish = null;

    










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

    



    public function getClientHello()
    {
        return $this->clientHello;
    }

    public function hasClientHello()
    {
        return isset($this->clientHello);
    }

    public function clearClientHello()
    {
        unset($this->clientHello);
    }

    




    public function setClientHello($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\HandshakeMessage\ClientHello::class);
        $this->clientHello = $var;

        return $this;
    }

    



    public function getServerHello()
    {
        return $this->serverHello;
    }

    public function hasServerHello()
    {
        return isset($this->serverHello);
    }

    public function clearServerHello()
    {
        unset($this->serverHello);
    }

    




    public function setServerHello($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\HandshakeMessage\ServerHello::class);
        $this->serverHello = $var;

        return $this;
    }

    



    public function getClientFinish()
    {
        return $this->clientFinish;
    }

    public function hasClientFinish()
    {
        return isset($this->clientFinish);
    }

    public function clearClientFinish()
    {
        unset($this->clientFinish);
    }

    




    public function setClientFinish($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\HandshakeMessage\ClientFinish::class);
        $this->clientFinish = $var;

        return $this;
    }

}

