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

namespace Rv\Data\ProLink\ZeroConfig;

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

/**
 * Generated from protobuf message <code>rv.data.ProLink.ZeroConfig.NetworkEnvironment</code>
 */
class NetworkEnvironment extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .rv.data.ProLink.GroupDefinition available_groups = 1;</code>
     */
    private $available_groups;
    /**
     * Generated from protobuf field <code>repeated .rv.data.ProLink.MemberStatus available_devices = 2;</code>
     */
    private $available_devices;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Rv\Data\ProLink\GroupDefinition>|\Google\Protobuf\Internal\RepeatedField $available_groups
     *     @type array<\Rv\Data\ProLink\MemberStatus>|\Google\Protobuf\Internal\RepeatedField $available_devices
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.ProLink.GroupDefinition available_groups = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAvailableGroups()
    {
        return $this->available_groups;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.ProLink.GroupDefinition available_groups = 1;</code>
     * @param array<\Rv\Data\ProLink\GroupDefinition>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAvailableGroups($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\ProLink\GroupDefinition::class);
        $this->available_groups = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.ProLink.MemberStatus available_devices = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAvailableDevices()
    {
        return $this->available_devices;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.ProLink.MemberStatus available_devices = 2;</code>
     * @param array<\Rv\Data\ProLink\MemberStatus>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAvailableDevices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\ProLink\MemberStatus::class);
        $this->available_devices = $arr;

        return $this;
    }

}

