How to read a Muse data files using Java and Protobuf


I’m trying to read a Muse data file (.muse extension as downloaded from the MuseDirect cloud) with Java using the protobuf library. I started here:

The first two messages come out fine, but the third one is unusually long (44K bytes) and gives a “Message missing required fields” error.

Is there sample code somewhere (using protobufs) that shows how to parse the file?