code: def write(self, oprot):
          '''
          Write this object to the given output protocol and return self.
  
          :type oprot: thryft.protocol._output_protocol._OutputProtocol
          :rtype: pastpy.gen.database.impl.online.online_database_configuration.OnlineDatabaseConfiguration
          '''
  
          oprot.write_struct_begin('OnlineDatabaseConfiguration')
  
          oprot.write_field_begin(name='collection_name', type=11, id=None)
          oprot.write_string(self.collection_name)
          oprot.write_field_end()
  
          if self.download_dir_path is not None:
              oprot.write_field_begin(name='download_dir_path', type=11, id=None)
              oprot.write_string(self.download_dir_path)
              oprot.write_field_end()
  
          oprot.write_field_stop()
  
          oprot.write_struct_end()
  
          return self write(self, oprot):
          '''
          Write this object to the given output protocol and return self.
  
          :type oprot: thryft.protocol._output_protocol._OutputProtocol
          :rtype: pastpy.gen.database.impl.online.online_database_configuration.OnlineDatabaseConfiguration
          '''
  
          oprot.write_struct_begin('OnlineDatabaseConfiguration')
  
          oprot.write_field_begin(name='collection_name', type=11, id=None)
          oprot.write_string(self.collection_name)
          oprot.write_field_end()
  
          if self.download_dir_path is not None:
              oprot.write_field_begin(name='download_dir_path', type=11, id=None)
              oprot.write_string(self.download_dir_path)
              oprot.write_field_end()
  
          oprot.write_field_stop()
  
          oprot.write_struct_end()
  
          return self
docs: Write this object to the given output protocol and return self.
  
          :type oprot: thryft.protocol._output_protocol._OutputProtocol
          :rtype: pastpy.gen.database.impl.online.online_database_configuration.OnlineDatabaseConfiguration