<?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.StatusQuotedMessage</code>
 */
class StatusQuotedMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.StatusQuotedMessage.StatusQuotedMessageType type = 1;</code>
     */
    protected $type = null;
    /**
     * Generated from protobuf field <code>optional string text = 2;</code>
     */
    protected $text = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnail = 3;</code>
     */
    protected $thumbnail = null;
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey originalStatusId = 4;</code>
     */
    protected $originalStatusId = null;

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

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

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

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

        return $this;
    }

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

    public function hasText()
    {
        return isset($this->text);
    }

    public function clearText()
    {
        unset($this->text);
    }

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

        return $this;
    }

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

    public function hasThumbnail()
    {
        return isset($this->thumbnail);
    }

    public function clearThumbnail()
    {
        unset($this->thumbnail);
    }

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

        return $this;
    }

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

    public function hasOriginalStatusId()
    {
        return isset($this->originalStatusId);
    }

    public function clearOriginalStatusId()
    {
        unset($this->originalStatusId);
    }

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

        return $this;
    }

}

