<?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.NewsletterFollowerInviteMessage</code>
 */
class NewsletterFollowerInviteMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string newsletterJid = 1;</code>
     */
    protected $newsletterJid = null;
    /**
     * Generated from protobuf field <code>optional string newsletterName = 2;</code>
     */
    protected $newsletterName = null;
    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 3;</code>
     */
    protected $jpegThumbnail = null;
    /**
     * Generated from protobuf field <code>optional string caption = 4;</code>
     */
    protected $caption = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 5;</code>
     */
    protected $contextInfo = null;

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

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

    public function hasNewsletterJid()
    {
        return isset($this->newsletterJid);
    }

    public function clearNewsletterJid()
    {
        unset($this->newsletterJid);
    }

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

        return $this;
    }

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

    public function hasNewsletterName()
    {
        return isset($this->newsletterName);
    }

    public function clearNewsletterName()
    {
        unset($this->newsletterName);
    }

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

        return $this;
    }

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

    public function hasJpegThumbnail()
    {
        return isset($this->jpegThumbnail);
    }

    public function clearJpegThumbnail()
    {
        unset($this->jpegThumbnail);
    }

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

        return $this;
    }

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

    public function hasCaption()
    {
        return isset($this->caption);
    }

    public function clearCaption()
    {
        unset($this->caption);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 5;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

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

        return $this;
    }

}

