<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult;

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




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


    protected $syncType = null;
    


    protected $chunkOrder = null;
    


    protected $requestId = null;
    


    protected $responseCode = null;
    


    protected $canRecover = null;

    












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

    



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

    public function hasSyncType()
    {
        return isset($this->syncType);
    }

    public function clearSyncType()
    {
        unset($this->syncType);
    }

    




    public function setSyncType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\HistorySyncType::class);
        $this->syncType = $var;

        return $this;
    }

    



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

    public function hasChunkOrder()
    {
        return isset($this->chunkOrder);
    }

    public function clearChunkOrder()
    {
        unset($this->chunkOrder);
    }

    




    public function setChunkOrder($var)
    {
        GPBUtil::checkUint32($var);
        $this->chunkOrder = $var;

        return $this;
    }

    



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

    public function hasRequestId()
    {
        return isset($this->requestId);
    }

    public function clearRequestId()
    {
        unset($this->requestId);
    }

    




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

        return $this;
    }

    



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

    public function hasResponseCode()
    {
        return isset($this->responseCode);
    }

    public function clearResponseCode()
    {
        unset($this->responseCode);
    }

    




    public function setResponseCode($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\HistorySyncChunkRetryResponseCode::class);
        $this->responseCode = $var;

        return $this;
    }

    



    public function getCanRecover()
    {
        return isset($this->canRecover) ? $this->canRecover : false;
    }

    public function hasCanRecover()
    {
        return isset($this->canRecover);
    }

    public function clearCanRecover()
    {
        unset($this->canRecover);
    }

    




    public function setCanRecover($var)
    {
        GPBUtil::checkBool($var);
        $this->canRecover = $var;

        return $this;
    }

}

