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

namespace Rv\Data\NetworkAPI;

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

/**
 * Generated from protobuf message <code>rv.data.NetworkAPI.GroupInvite</code>
 */
class GroupInvite extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group group_info = 1;</code>
     */
    protected $group_info = null;
    /**
     * Generated from protobuf field <code>string secret = 2;</code>
     */
    protected $secret = '';
    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group.Member prospect = 3;</code>
     */
    protected $prospect = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\NetworkAPI\Group $group_info
     *     @type string $secret
     *     @type \Rv\Data\NetworkAPI\Group\Member $prospect
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group group_info = 1;</code>
     * @return \Rv\Data\NetworkAPI\Group|null
     */
    public function getGroupInfo()
    {
        return $this->group_info;
    }

    public function hasGroupInfo()
    {
        return isset($this->group_info);
    }

    public function clearGroupInfo()
    {
        unset($this->group_info);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group group_info = 1;</code>
     * @param \Rv\Data\NetworkAPI\Group $var
     * @return $this
     */
    public function setGroupInfo($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Group::class);
        $this->group_info = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string secret = 2;</code>
     * @return string
     */
    public function getSecret()
    {
        return $this->secret;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group.Member prospect = 3;</code>
     * @return \Rv\Data\NetworkAPI\Group\Member|null
     */
    public function getProspect()
    {
        return $this->prospect;
    }

    public function hasProspect()
    {
        return isset($this->prospect);
    }

    public function clearProspect()
    {
        unset($this->prospect);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group.Member prospect = 3;</code>
     * @param \Rv\Data\NetworkAPI\Group\Member $var
     * @return $this
     */
    public function setProspect($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Group\Member::class);
        $this->prospect = $var;

        return $this;
    }

}

