<?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.Citation</code>
 */
class Citation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string title = 1;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string subtitle = 2;</code>
     */
    protected $subtitle = null;
    /**
     * Generated from protobuf field <code>optional string cmsId = 3;</code>
     */
    protected $cmsId = null;
    /**
     * Generated from protobuf field <code>optional string imageUrl = 4;</code>
     */
    protected $imageUrl = null;

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

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

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

        return $this;
    }

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

    public function hasSubtitle()
    {
        return isset($this->subtitle);
    }

    public function clearSubtitle()
    {
        unset($this->subtitle);
    }

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

        return $this;
    }

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

    public function hasCmsId()
    {
        return isset($this->cmsId);
    }

    public function clearCmsId()
    {
        unset($this->cmsId);
    }

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

        return $this;
    }

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

    public function hasImageUrl()
    {
        return isset($this->imageUrl);
    }

    public function clearImageUrl()
    {
        unset($this->imageUrl);
    }

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

        return $this;
    }

}

