<?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.GroupMention</code>
 */
class GroupMention extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string groupJid = 1;</code>
     */
    protected $groupJid = null;
    /**
     * Generated from protobuf field <code>optional string groupSubject = 2;</code>
     */
    protected $groupSubject = null;

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

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

    public function hasGroupJid()
    {
        return isset($this->groupJid);
    }

    public function clearGroupJid()
    {
        unset($this->groupJid);
    }

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

        return $this;
    }

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

    public function hasGroupSubject()
    {
        return isset($this->groupSubject);
    }

    public function clearGroupSubject()
    {
        unset($this->groupSubject);
    }

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

        return $this;
    }

}

