Write this object to the given output protocol and return self.

        :type oprot: thryft.protocol._output_protocol._OutputProtocol
        :rtype: pastpy.gen.database.database_configuration.DatabaseConfiguration

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.database_configuration.DatabaseConfiguration
        '''

        oprot.write_struct_begin('DatabaseConfiguration')

        if self.dbf is not None:
            oprot.write_field_begin(name='dbf', type=12, id=None)
            self.dbf.write(oprot)
            oprot.write_field_end()

        if self.dummy is not None:
            oprot.write_field_begin(name='dummy', type=12, id=None)
            self.dummy.write(oprot)
            oprot.write_field_end()

        if self.online is not None:
            oprot.write_field_begin(name='online', type=12, id=None)
            self.online.write(oprot)
            oprot.write_field_end()

        oprot.write_field_stop()

        oprot.write_struct_end()

        return self