<?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.ClientFinish</code>
 */
class ClientFinish extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes static = 1;</code>
     */
    protected $static = null;
    /**
     * Generated from protobuf field <code>optional bytes payload = 2;</code>
     */
    protected $payload = null;
    /**
     * Generated from protobuf field <code>optional bytes extendedCiphertext = 3;</code>
     */
    protected $extendedCiphertext = null;

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

    /**
     * Generated from protobuf field <code>optional bytes static = 1;</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 = 1;</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 = 2;</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 = 2;</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 extendedCiphertext = 3;</code>
     * @return string
     */
    public function getExtendedCiphertext()
    {
        return isset($this->extendedCiphertext) ? $this->extendedCiphertext : '';
    }

    public function hasExtendedCiphertext()
    {
        return isset($this->extendedCiphertext);
    }

    public function clearExtendedCiphertext()
    {
        unset($this->extendedCiphertext);
    }

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

        return $this;
    }

}

