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

namespace PhpWA\Protocol\Proto\HandshakeMessage;

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

/**
 * Generated from protobuf message <code>proto.HandshakeMessage.ServerHello</code>
 */
class ServerHello extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes ephemeral = 1;</code>
     */
    protected $ephemeral = null;
    /**
     * Generated from protobuf field <code>optional bytes static = 2;</code>
     */
    protected $static = null;
    /**
     * Generated from protobuf field <code>optional bytes payload = 3;</code>
     */
    protected $payload = null;
    /**
     * Generated from protobuf field <code>optional bytes extendedStatic = 4;</code>
     */
    protected $extendedStatic = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ephemeral
     *     @type string $static
     *     @type string $payload
     *     @type string $extendedStatic
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bytes ephemeral = 1;</code>
     * @return string
     */
    public function getEphemeral()
    {
        return isset($this->ephemeral) ? $this->ephemeral : '';
    }

    public function hasEphemeral()
    {
        return isset($this->ephemeral);
    }

    public function clearEphemeral()
    {
        unset($this->ephemeral);
    }

    /**
     * Generated from protobuf field <code>optional bytes ephemeral = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setEphemeral($var)
    {
        GPBUtil::checkString($var, False);
        $this->ephemeral = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes static = 2;</code>
     * @return string
     */
    public function getStatic()
    {
        return isset($this->static) ? $this->static : '';
    }

    public function hasStatic()
    {
        return isset($this->static);
    }

    public function clearStatic()
    {
        unset($this->static);
    }

    /**
     * Generated from protobuf field <code>optional bytes static = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setStatic($var)
    {
        GPBUtil::checkString($var, False);
        $this->static = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes payload = 3;</code>
     * @return string
     */
    public function getPayload()
    {
        return isset($this->payload) ? $this->payload : '';
    }

    public function hasPayload()
    {
        return isset($this->payload);
    }

    public function clearPayload()
    {
        unset($this->payload);
    }

    /**
     * Generated from protobuf field <code>optional bytes payload = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setPayload($var)
    {
        GPBUtil::checkString($var, False);
        $this->payload = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes extendedStatic = 4;</code>
     * @return string
     */
    public function getExtendedStatic()
    {
        return isset($this->extendedStatic) ? $this->extendedStatic : '';
    }

    public function hasExtendedStatic()
    {
        return isset($this->extendedStatic);
    }

    public function clearExtendedStatic()
    {
        unset($this->extendedStatic);
    }

    /**
     * Generated from protobuf field <code>optional bytes extendedStatic = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setExtendedStatic($var)
    {
        GPBUtil::checkString($var, False);
        $this->extendedStatic = $var;

        return $this;
    }

}

