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

namespace PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestMessage.FullHistorySyncOnDemandRequest</code>
 */
class FullHistorySyncOnDemandRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;</code>
     */
    protected $requestMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.DeviceProps.HistorySyncConfig historySyncConfig = 2;</code>
     */
    protected $historySyncConfig = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\FullHistorySyncOnDemandRequestMetadata $requestMetadata
     *     @type \PhpWA\Protocol\Proto\DeviceProps\HistorySyncConfig $historySyncConfig
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;</code>
     * @return \PhpWA\Protocol\Proto\Message\FullHistorySyncOnDemandRequestMetadata|null
     */
    public function getRequestMetadata()
    {
        return $this->requestMetadata;
    }

    public function hasRequestMetadata()
    {
        return isset($this->requestMetadata);
    }

    public function clearRequestMetadata()
    {
        unset($this->requestMetadata);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceProps.HistorySyncConfig historySyncConfig = 2;</code>
     * @return \PhpWA\Protocol\Proto\DeviceProps\HistorySyncConfig|null
     */
    public function getHistorySyncConfig()
    {
        return $this->historySyncConfig;
    }

    public function hasHistorySyncConfig()
    {
        return isset($this->historySyncConfig);
    }

    public function clearHistorySyncConfig()
    {
        unset($this->historySyncConfig);
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceProps.HistorySyncConfig historySyncConfig = 2;</code>
     * @param \PhpWA\Protocol\Proto\DeviceProps\HistorySyncConfig $var
     * @return $this
     */
    public function setHistorySyncConfig($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\DeviceProps\HistorySyncConfig::class);
        $this->historySyncConfig = $var;

        return $this;
    }

}

