<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $peerDataOperationRequestType = null;
    


    private $requestStickerReupload;
    


    private $requestUrlPreview;
    


    protected $historySyncOnDemandRequest = null;
    


    private $placeholderMessageResendRequest;
    


    protected $fullHistorySyncOnDemandRequest = null;
    


    protected $syncdCollectionFatalRecoveryRequest = null;
    


    protected $historySyncChunkRetryRequest = null;
    


    protected $galaxyFlowAction = null;

    
















    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 getRequestStickerReupload()
    {
        return $this->requestStickerReupload;
    }

    




    public function setRequestStickerReupload($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestStickerReupload::class);
        $this->requestStickerReupload = $arr;

        return $this;
    }

    



    public function getRequestUrlPreview()
    {
        return $this->requestUrlPreview;
    }

    




    public function setRequestUrlPreview($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestUrlPreview::class);
        $this->requestUrlPreview = $arr;

        return $this;
    }

    



    public function getHistorySyncOnDemandRequest()
    {
        return $this->historySyncOnDemandRequest;
    }

    public function hasHistorySyncOnDemandRequest()
    {
        return isset($this->historySyncOnDemandRequest);
    }

    public function clearHistorySyncOnDemandRequest()
    {
        unset($this->historySyncOnDemandRequest);
    }

    




    public function setHistorySyncOnDemandRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncOnDemandRequest::class);
        $this->historySyncOnDemandRequest = $var;

        return $this;
    }

    



    public function getPlaceholderMessageResendRequest()
    {
        return $this->placeholderMessageResendRequest;
    }

    




    public function setPlaceholderMessageResendRequest($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\PlaceholderMessageResendRequest::class);
        $this->placeholderMessageResendRequest = $arr;

        return $this;
    }

    



    public function getFullHistorySyncOnDemandRequest()
    {
        return $this->fullHistorySyncOnDemandRequest;
    }

    public function hasFullHistorySyncOnDemandRequest()
    {
        return isset($this->fullHistorySyncOnDemandRequest);
    }

    public function clearFullHistorySyncOnDemandRequest()
    {
        unset($this->fullHistorySyncOnDemandRequest);
    }

    




    public function setFullHistorySyncOnDemandRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\FullHistorySyncOnDemandRequest::class);
        $this->fullHistorySyncOnDemandRequest = $var;

        return $this;
    }

    



    public function getSyncdCollectionFatalRecoveryRequest()
    {
        return $this->syncdCollectionFatalRecoveryRequest;
    }

    public function hasSyncdCollectionFatalRecoveryRequest()
    {
        return isset($this->syncdCollectionFatalRecoveryRequest);
    }

    public function clearSyncdCollectionFatalRecoveryRequest()
    {
        unset($this->syncdCollectionFatalRecoveryRequest);
    }

    




    public function setSyncdCollectionFatalRecoveryRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\SyncDCollectionFatalRecoveryRequest::class);
        $this->syncdCollectionFatalRecoveryRequest = $var;

        return $this;
    }

    



    public function getHistorySyncChunkRetryRequest()
    {
        return $this->historySyncChunkRetryRequest;
    }

    public function hasHistorySyncChunkRetryRequest()
    {
        return isset($this->historySyncChunkRetryRequest);
    }

    public function clearHistorySyncChunkRetryRequest()
    {
        unset($this->historySyncChunkRetryRequest);
    }

    




    public function setHistorySyncChunkRetryRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncChunkRetryRequest::class);
        $this->historySyncChunkRetryRequest = $var;

        return $this;
    }

    



    public function getGalaxyFlowAction()
    {
        return $this->galaxyFlowAction;
    }

    public function hasGalaxyFlowAction()
    {
        return isset($this->galaxyFlowAction);
    }

    public function clearGalaxyFlowAction()
    {
        unset($this->galaxyFlowAction);
    }

    




    public function setGalaxyFlowAction($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\GalaxyFlowAction::class);
        $this->galaxyFlowAction = $var;

        return $this;
    }

}

