write protocol buffer and go post