Building of the Script from the protocol buffer