public void setParentAddress(final int parentAddress) {
        if (MeshAddress.isValidVirtualAddress(parentAddress)) {
            throw new IllegalArgumentException("Assigning a virtual address to parentAddress can be done only by setting a parent address label");
        } else if (!MeshAddress.isValidGroupAddress(parentAddress)) {
            throw new IllegalArgumentException("parentAddress must be a group address value");
        }
        this.parentAddress = parentAddress;
        this.parentAddressLabel = null;
    }
Sets the parent address, if this group belongs to a parent group

@param parentAddress address of the parent group
mesh/src/main/java/no/nordicsemi/android/mesh/Group.java