<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $peerDataOperationRequestType = null;
    


    protected $stanzaId = null;
    


    private $peerDataOperationResult;

    










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

    



    public function getPeerDataOperationRequestType()
    {
        return isset($this->peerDataOperationRequestType) ? $this->peerDataOperationRequestType : 0;
    }

    public function hasPeerDataOperationRequestType()
    {
        return isset($this->peerDataOperationRequestType);
    }

    public function clearPeerDataOperationRequestType()
    {
        unset($this->peerDataOperationRequestType);
    }

    




    public function setPeerDataOperationRequestType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestType::class);
        $this->peerDataOperationRequestType = $var;

        return $this;
    }

    



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

    public function hasStanzaId()
    {
        return isset($this->stanzaId);
    }

    public function clearStanzaId()
    {
        unset($this->stanzaId);
    }

    




    public function setStanzaId($var)
    {
        GPBUtil::checkString($var, True);
        $this->stanzaId = $var;

        return $this;
    }

    



    public function getPeerDataOperationResult()
    {
        return $this->peerDataOperationResult;
    }

    




    public function setPeerDataOperationResult($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult::class);
        $this->peerDataOperationResult = $arr;

        return $this;
    }

}

