<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $companionEphemeralIdentity = null;
    


    protected $commitment = null;

    









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

    



    public function getCompanionEphemeralIdentity()
    {
        return isset($this->companionEphemeralIdentity) ? $this->companionEphemeralIdentity : '';
    }

    public function hasCompanionEphemeralIdentity()
    {
        return isset($this->companionEphemeralIdentity);
    }

    public function clearCompanionEphemeralIdentity()
    {
        unset($this->companionEphemeralIdentity);
    }

    




    public function setCompanionEphemeralIdentity($var)
    {
        GPBUtil::checkString($var, False);
        $this->companionEphemeralIdentity = $var;

        return $this;
    }

    



    public function getCommitment()
    {
        return $this->commitment;
    }

    public function hasCommitment()
    {
        return isset($this->commitment);
    }

    public function clearCommitment()
    {
        unset($this->commitment);
    }

    




    public function setCommitment($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\CompanionCommitment::class);
        $this->commitment = $var;

        return $this;
    }

}

