I am trying to section up my protocol buffers into simpler or digestable
files (each file fitting a category like device and all messages that would
make up a device. I then want to import that into my main pb definition
file. I do it, I compile it and there is a reference to the object (test
object called car)
Car *Car
`protobuf:"bytes,6,opt,name=car,proto3" json:"car,omitempty"`
It does not make a struct cause the other pb file (which gets compiled has
the structure in it. I import both in my main.go file and create the
object car first and then use its address to pass to the primary pb file.
(Assuming this is the way it works based on a prior example by another). I
keep getting the following:
auto/auto.pb.go:111:24: undefined: Car
auto/auto.pb.go:206:32: undefined: Car
The error makes sense to me, there is not Car struct in the primary PB
file. So how do you get it to get built that way? Seems like sectioning
proto files and importing should be easy. Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/45dd4002-a858-413f-9020-9ec00ad2cfc0n%40googlegroups.com.