This transistor on the schematic does not have a gate, has a base. This application is so simple that any Bipolar transistor ( NPN) will work. Note that your output 3.3 V will go via a 10K resistor, This means your processor must push very low current, otherwise, your 3.3V will be consumed entirely on the 10K resistor. If that is the case you will need to decrease the 10K resistor a lot, Or even add a second PnP transistor to have a low impedance path