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

        :type oprot: thryft.protocol._output_protocol._OutputProtocol
        :rtype: pastpy.gen.database.impl.dummy.dummy_database_configuration.DummyDatabaseConfiguration

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.dummy.dummy_database_configuration.DummyDatabaseConfiguration
        '''

        oprot.write_struct_begin('DummyDatabaseConfiguration')

        oprot.write_field_begin(name='images_per_object', type=8, id=None)
        oprot.write_i32(self.images_per_object)
        oprot.write_field_end()

        oprot.write_field_begin(name='objects', type=8, id=None)
        oprot.write_i32(self.objects)
        oprot.write_field_end()

        oprot.write_field_stop()

        oprot.write_struct_end()

        return self