<?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.GroupJoin</code>
 */
class GroupJoin extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group.Member sponsor = 1;</code>
     */
    protected $sponsor = null;
    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group.Member prospect = 2;</code>
     */
    protected $prospect = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\NetworkAPI\Group\Member $sponsor
     *     @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.Member sponsor = 1;</code>
     * @return \Rv\Data\NetworkAPI\Group\Member|null
     */
    public function getSponsor()
    {
        return $this->sponsor;
    }

    public function hasSponsor()
    {
        return isset($this->sponsor);
    }

    public function clearSponsor()
    {
        unset($this->sponsor);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group.Member prospect = 2;</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 = 2;</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;
    }

}

