I read the Py4J
docs and they explain how to use the library with built-in data types.
I have a Java method that returns a non built-in data type (i.e., a class)
public Foo getFoo()
I am able to call the method from Python:
foo = gateway.entry-Point.getFoo()
and get a response back but how do I now access the properties of foo in Python?
>>> foo
JavaObject id=o0
>>> foo.XXX
<py4j.java_gateway.JavaMember object at 0x102276b20>