<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestMessage</code>
 */
class PeerDataOperationRequestMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;</code>
     */
    protected $peerDataOperationRequestType = null;
    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.RequestStickerReupload requestStickerReupload = 2;</code>
     */
    private $requestStickerReupload;
    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.RequestUrlPreview requestUrlPreview = 3;</code>
     */
    private $requestUrlPreview;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;</code>
     */
    protected $historySyncOnDemandRequest = null;
    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;</code>
     */
    private $placeholderMessageResendRequest;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;</code>
     */
    protected $fullHistorySyncOnDemandRequest = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;</code>
     */
    protected $syncdCollectionFatalRecoveryRequest = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;</code>
     */
    protected $historySyncChunkRetryRequest = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction galaxyFlowAction = 9;</code>
     */
    protected $galaxyFlowAction = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $peerDataOperationRequestType
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestStickerReupload[] $requestStickerReupload
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestUrlPreview[] $requestUrlPreview
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncOnDemandRequest $historySyncOnDemandRequest
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\PlaceholderMessageResendRequest[] $placeholderMessageResendRequest
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\FullHistorySyncOnDemandRequest $fullHistorySyncOnDemandRequest
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\SyncDCollectionFatalRecoveryRequest $syncdCollectionFatalRecoveryRequest
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncChunkRetryRequest $historySyncChunkRetryRequest
     *     @type \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\GalaxyFlowAction $galaxyFlowAction
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;</code>
     * @return int
     */
    public function getPeerDataOperationRequestType()
    {
        return isset($this->peerDataOperationRequestType) ? $this->peerDataOperationRequestType : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPeerDataOperationRequestType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestType::class);
        $this->peerDataOperationRequestType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.RequestStickerReupload requestStickerReupload = 2;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestStickerReupload>
     */
    public function getRequestStickerReupload()
    {
        return $this->requestStickerReupload;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.RequestStickerReupload requestStickerReupload = 2;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestStickerReupload[] $var
     * @return $this
     */
    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;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.RequestUrlPreview requestUrlPreview = 3;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestUrlPreview>
     */
    public function getRequestUrlPreview()
    {
        return $this->requestUrlPreview;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.RequestUrlPreview requestUrlPreview = 3;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\RequestUrlPreview[] $var
     * @return $this
     */
    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;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;</code>
     * @return \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncOnDemandRequest|null
     */
    public function getHistorySyncOnDemandRequest()
    {
        return $this->historySyncOnDemandRequest;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncOnDemandRequest $var
     * @return $this
     */
    public function setHistorySyncOnDemandRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncOnDemandRequest::class);
        $this->historySyncOnDemandRequest = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\PlaceholderMessageResendRequest>
     */
    public function getPlaceholderMessageResendRequest()
    {
        return $this->placeholderMessageResendRequest;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.PeerDataOperationRequestMessage.PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\PlaceholderMessageResendRequest[] $var
     * @return $this
     */
    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;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;</code>
     * @return \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\FullHistorySyncOnDemandRequest|null
     */
    public function getFullHistorySyncOnDemandRequest()
    {
        return $this->fullHistorySyncOnDemandRequest;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\FullHistorySyncOnDemandRequest $var
     * @return $this
     */
    public function setFullHistorySyncOnDemandRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\FullHistorySyncOnDemandRequest::class);
        $this->fullHistorySyncOnDemandRequest = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;</code>
     * @return \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\SyncDCollectionFatalRecoveryRequest|null
     */
    public function getSyncdCollectionFatalRecoveryRequest()
    {
        return $this->syncdCollectionFatalRecoveryRequest;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\SyncDCollectionFatalRecoveryRequest $var
     * @return $this
     */
    public function setSyncdCollectionFatalRecoveryRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\SyncDCollectionFatalRecoveryRequest::class);
        $this->syncdCollectionFatalRecoveryRequest = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;</code>
     * @return \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncChunkRetryRequest|null
     */
    public function getHistorySyncChunkRetryRequest()
    {
        return $this->historySyncChunkRetryRequest;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncChunkRetryRequest $var
     * @return $this
     */
    public function setHistorySyncChunkRetryRequest($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\HistorySyncChunkRetryRequest::class);
        $this->historySyncChunkRetryRequest = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction galaxyFlowAction = 9;</code>
     * @return \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\GalaxyFlowAction|null
     */
    public function getGalaxyFlowAction()
    {
        return $this->galaxyFlowAction;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction galaxyFlowAction = 9;</code>
     * @param \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\GalaxyFlowAction $var
     * @return $this
     */
    public function setGalaxyFlowAction($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\GalaxyFlowAction::class);
        $this->galaxyFlowAction = $var;

        return $this;
    }

}

