<?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.HandshakeMessage</code>
 */
class HandshakeMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ClientHello clientHello = 2;</code>
     */
    protected $clientHello = null;
    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ServerHello serverHello = 3;</code>
     */
    protected $serverHello = null;
    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ClientFinish clientFinish = 4;</code>
     */
    protected $clientFinish = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\HandshakeMessage\ClientHello $clientHello
     *     @type \PhpWA\Protocol\Proto\HandshakeMessage\ServerHello $serverHello
     *     @type \PhpWA\Protocol\Proto\HandshakeMessage\ClientFinish $clientFinish
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ClientHello clientHello = 2;</code>
     * @return \PhpWA\Protocol\Proto\HandshakeMessage\ClientHello|null
     */
    public function getClientHello()
    {
        return $this->clientHello;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ClientHello clientHello = 2;</code>
     * @param \PhpWA\Protocol\Proto\HandshakeMessage\ClientHello $var
     * @return $this
     */
    public function setClientHello($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\HandshakeMessage\ClientHello::class);
        $this->clientHello = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ServerHello serverHello = 3;</code>
     * @return \PhpWA\Protocol\Proto\HandshakeMessage\ServerHello|null
     */
    public function getServerHello()
    {
        return $this->serverHello;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ServerHello serverHello = 3;</code>
     * @param \PhpWA\Protocol\Proto\HandshakeMessage\ServerHello $var
     * @return $this
     */
    public function setServerHello($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\HandshakeMessage\ServerHello::class);
        $this->serverHello = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ClientFinish clientFinish = 4;</code>
     * @return \PhpWA\Protocol\Proto\HandshakeMessage\ClientFinish|null
     */
    public function getClientFinish()
    {
        return $this->clientFinish;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.HandshakeMessage.ClientFinish clientFinish = 4;</code>
     * @param \PhpWA\Protocol\Proto\HandshakeMessage\ClientFinish $var
     * @return $this
     */
    public function setClientFinish($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\HandshakeMessage\ClientFinish::class);
        $this->clientFinish = $var;

        return $this;
    }

}

