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

namespace Rv\Data\ProLink\HandlerIn\AddConnectionResult;

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

/**
 * Generated from protobuf message <code>rv.data.ProLink.HandlerIn.AddConnectionResult.Success</code>
 */
class Success extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.ProLink.GroupDefinition new_group_definition = 1;</code>
     */
    protected $new_group_definition = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\ProLink\GroupDefinition $new_group_definition
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProLink.GroupDefinition new_group_definition = 1;</code>
     * @return \Rv\Data\ProLink\GroupDefinition|null
     */
    public function getNewGroupDefinition()
    {
        return $this->new_group_definition;
    }

    public function hasNewGroupDefinition()
    {
        return isset($this->new_group_definition);
    }

    public function clearNewGroupDefinition()
    {
        unset($this->new_group_definition);
    }

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

        return $this;
    }

}

