def write(self, oprot):
    self.validate()
    oprot.writeStructBegin('nested_thing')
    if (self.things is not None):
        oprot.writeFieldBegin('things', TType.LIST, 1)
        oprot.writeListBegin(TType.STRUCT, len(self.things))
        for elem80 in self.things:
            elem80.write(oprot)
        oprot.writeListEnd()
        oprot.writeFieldEnd()
    oprot.writeFieldStop()
    oprot.writeStructEnd()
def write(self, oprot):
    self.validate()
    oprot.writeStructBegin('nested_thing')
    if (self.things is not None):
        oprot.writeFieldBegin('things', TType.LIST, 1)
        oprot.writeListBegin(TType.STRUCT, len(self.things))
        for elem80 in self.things:
            elem80.write(oprot)
        oprot.writeListEnd()
        oprot.writeFieldEnd()
    oprot.writeFieldStop()
    oprot.writeStructEnd()