1syntax = "proto3"; 2 3message SubMessage { 4 repeated int32 foo = 1; 5} 6 7message MainMessage { 8 SubMessage submsg = 1; 9} 10 11