<?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.SyncDSnapshotFatalRecoveryResponse</code>
 */
class SyncDSnapshotFatalRecoveryResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes collectionSnapshot = 1;</code>
     */
    protected $collectionSnapshot = null;
    /**
     * Generated from protobuf field <code>optional bool isCompressed = 2;</code>
     */
    protected $isCompressed = null;

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

    /**
     * Generated from protobuf field <code>optional bytes collectionSnapshot = 1;</code>
     * @return string
     */
    public function getCollectionSnapshot()
    {
        return isset($this->collectionSnapshot) ? $this->collectionSnapshot : '';
    }

    public function hasCollectionSnapshot()
    {
        return isset($this->collectionSnapshot);
    }

    public function clearCollectionSnapshot()
    {
        unset($this->collectionSnapshot);
    }

    /**
     * Generated from protobuf field <code>optional bytes collectionSnapshot = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCollectionSnapshot($var)
    {
        GPBUtil::checkString($var, False);
        $this->collectionSnapshot = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isCompressed = 2;</code>
     * @return bool
     */
    public function getIsCompressed()
    {
        return isset($this->isCompressed) ? $this->isCompressed : false;
    }

    public function hasIsCompressed()
    {
        return isset($this->isCompressed);
    }

    public function clearIsCompressed()
    {
        unset($this->isCompressed);
    }

    /**
     * Generated from protobuf field <code>optional bool isCompressed = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsCompressed($var)
    {
        GPBUtil::checkBool($var);
        $this->isCompressed = $var;

        return $this;
    }

}

