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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.QuarantinedMessage</code>
 */
class QuarantinedMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes originalData = 1;</code>
     */
    protected $originalData = null;
    /**
     * Generated from protobuf field <code>optional string extractedText = 2;</code>
     */
    protected $extractedText = null;

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

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

    public function hasOriginalData()
    {
        return isset($this->originalData);
    }

    public function clearOriginalData()
    {
        unset($this->originalData);
    }

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

        return $this;
    }

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

    public function hasExtractedText()
    {
        return isset($this->extractedText);
    }

    public function clearExtractedText()
    {
        unset($this->extractedText);
    }

    /**
     * Generated from protobuf field <code>optional string extractedText = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setExtractedText($var)
    {
        GPBUtil::checkString($var, True);
        $this->extractedText = $var;

        return $this;
    }

}

