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

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

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandRequestResponse</code>
 */
class FullHistorySyncOnDemandRequestResponse 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.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;</code>
     */
    protected $responseCode = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\FullHistorySyncOnDemandRequestMetadata $requestMetadata
     *     @type int $responseCode
     * }
     */
    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.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;</code>
     * @return int
     */
    public function getResponseCode()
    {
        return isset($this->responseCode) ? $this->responseCode : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setResponseCode($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\FullHistorySyncOnDemandResponseCode::class);
        $this->responseCode = $var;

        return $this;
    }

}

