TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetMessages()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetMessages()) {
{
oprot.writeI32(struct.messages.size());
for (LogEntry _iter4 : struct.messages)
{