Import sub folder Proto files

14 views
Skip to first unread message

Novice User

unread,
Aug 28, 2020, 11:43:47 PM8/28/20
to Protocol Buffers

Currently I've a single proto3 file, lets call it TopLevel.proto

package myprotos.protobuf; 
message top { 
  string name; 
}

I want to create a new folder w/ some proto files, lets call folderA with different proto

Inside.proto

package myprotos.protobuf.folderA; 
message Inner { 
 long value; 
}

When in PyCharm, I am importing Inner in TopLevel.proto it is unable to find :

package myprotos.protobuf; 
import "folderA/Inside.proto"; 
message top { 
      string name; 
       Inner inner; 
}

Any suggestion on how to import the subfolder proto files?

Reply all
Reply to author
Forward
0 new messages