Re: [protobuf] Protobuf member by member copy from java to protobuf class and vice versa

2017-08-11 Thread 'Jisi Liu' via Protocol Buffers
Usually it's recommended to just use the protobuf generated objects as in-memory model. Or you can embed the proto message objects in your other Java classes. Is there any specific reason this doesn't work for you? On Wed, Aug 9, 2017 at 4:43 AM Jay Sharma wrote: > I have a question regarding "*

Re: [protobuf] Is there any way to add a prefix to canonical name?

2017-08-11 Thread 'Jungho Ahn' via Protocol Buffers
Thanks Feng, That was my expectation, but I just wondered if there is any option that I can give to protoc to add a prefix to the canonical names. On Friday, August 11, 2017 at 1:53:54 PM UTC-7, Feng Xiao wrote: > > > > On Fri, Aug 11, 2017 at 1:41 PM, 'Jungho Ahn' via Protocol Buffers < > prot.

Re: [protobuf] Is there any way to add a prefix to canonical name?

2017-08-11 Thread 'Feng Xiao' via Protocol Buffers
On Fri, Aug 11, 2017 at 1:41 PM, 'Jungho Ahn' via Protocol Buffers < protobuf@googlegroups.com> wrote: > Hello, > > I'm trying to import protos from a third party repo, but they don't have > proper canonical names. > > For example, there is a repo X which has > > a/p1.proto > a/p2.proto with (impo

[protobuf] Is there any way to add a prefix to canonical name?

2017-08-11 Thread 'Jungho Ahn' via Protocol Buffers
Hello, I'm trying to import protos from a third party repo, but they don't have proper canonical names. For example, there is a repo X which has a/p1.proto a/p2.proto with (import "a/p1.proto") Since 'a' is too generic, I'd like to add a kind of prefix to the canonical names like "external/a