Re: [protobuf] Compile all proto files in a directory (including subdirectory proto files)

2020-08-28 Thread Nadav Samet
See the error level1/Level1.proto:7:5: "Level2Message" is not defined? The package statement for level1 indicates protobufs.level1. For level2.proto the package is protobufs.folderA.folderB. When level1 references the message in level2 it needs to do so by its relative name or full name:

Re: [protobuf] Compile all proto files in a directory (including subdirectory proto files)

2020-08-28 Thread Novice User
I modified the Level1.proto , but still getting error. Level1.proto : syntax = "proto3"; package protobufs.level1; import "level1/level2/Level2.proto"; message Level1Message { Level2Message level2Message = 1; } $ protoc -I=./ --python_out=. *.proto level1/Level1.proto:7:5: "Level2Message"

Re: [protobuf] Compile all proto files in a directory (including subdirectory proto files)

2020-08-28 Thread Nadav Samet
The imports in proto files are relative to the search path (what you provide by -I), not to the files. You either need to the Level2 directory under the protobuf directory, or change the import in Level1.proto to import "level1/level2/Level2.proto" On Fri, Aug 28, 2020 at 9:54 PM Novice User

[protobuf] Compile all proto files in a directory (including subdirectory proto files)

2020-08-28 Thread Novice User
I've nested proto (proto3) files [ Level0.proto depends on Level1.proto which in turn depend on Level2.proto] with the below tree structure : Level0.proto syntax = "proto3"; package protobufs; import "level1/Level1.proto"; message Level0Message { Level1Message level1message = 1; }

[protobuf] Import sub folder Proto files

2020-08-28 Thread Novice User
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 { *

Re: [protobuf] How to model protobuf proto file

2020-08-28 Thread Novice User
Thanks, but i am using proto3. On Friday, August 28, 2020 at 8:53:31 AM UTC-7 acoz...@google.com wrote: > If you're using proto2 then you can use extensions > to > allow clients to extend the base message with their own

Re: [protobuf] How to model protobuf proto file

2020-08-28 Thread 'Adam Cozzette' via Protocol Buffers
If you're using proto2 then you can use extensions to allow clients to extend the base message with their own fields. The one caveat is that you have to figure out a scheme to ensure that each client chooses a unique extension

[protobuf] Client INTERVIEW in 24 Hours -- 3 + Years of .Net Application Developer required in Columbus, IN,

2020-08-28 Thread Jim alex
Hello Associates, I have a very HOT need for 3 + Years of .Net Application Developer. I have an excellent project with my client at Columbus, IN. Job Title : 3 + Years of .Net Application Developer Location : Columbus, IN Duration : 12 + months Rate

Re: [protobuf] Segfault when parsing data.

2020-08-28 Thread Test Last
Hi Ok so I have found the problem. The problem was that I had a class name for one of my classes that was already defined in one of the libs. Therefore inside the header it was trying to use the wrong class inside the repeated_field parser. For obv reasons then got the Seg Fault! On