<?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.MulticastPacket</code>
 */
class MulticastPacket extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.ProLink.GroupDefinition group = 1;</code>
     */
    protected $group = null;
    /**
     * Generated from protobuf field <code>.rv.data.ProLink.MemberStatus device = 2;</code>
     */
    protected $device = null;

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

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

    public function hasGroup()
    {
        return isset($this->group);
    }

    public function clearGroup()
    {
        unset($this->group);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProLink.MemberStatus device = 2;</code>
     * @return \Rv\Data\ProLink\MemberStatus|null
     */
    public function getDevice()
    {
        return $this->device;
    }

    public function hasDevice()
    {
        return isset($this->device);
    }

    public function clearDevice()
    {
        unset($this->device);
    }

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

        return $this;
    }

}

