'How to convert 3D ArrayList of Integers into com.google.protobuf Struct?

I have an ArrayList<ArrayList<ArrayList<Integers>>>. I need to convert it into com.google.protobuf.Struct. How can I convert it?

On the receiving end, I am looking for a list of 2D grids.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source