Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-16 Thread venkatesu punugupati
Thanks for the support..it is working in 3 version..

On Tue, Nov 15, 2016 at 6:14 PM Feng Xiao  wrote:

> On Tue, Nov 15, 2016 at 3:12 PM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> https://developers.google.com/protocol-buffers/docs/proto
>
> I am seeing 2 version also in the above link
>
> Yes, but C# only supports version 3.
>
>
>
> On Tue, Nov 15, 2016 at 5:34 PM Feng Xiao  wrote:
>
> On Tue, Nov 15, 2016 at 2:33 PM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> I am using 2..please let me know if it works in that way..
>
> Protobuf only officially supports C# after 3.0.0. You are probably using
> some other C# implementations.
>
>
>
> On Tue, Nov 15, 2016 at 5:11 PM Feng Xiao  wrote:
>
> On Tue, Nov 15, 2016 at 1:19 PM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> Thanks for the response..
> Let me add more details to get clear..
> A.proto , B.Proto are two proto files
> B.proto imports A.proto then if generate the code then you will get B.cs
> containing all the types present A also in the same file.
>
> What version of protobuf are you using? I believe protoc should already be
> putting classes in B.cs and A.cs separately.
>
>
> But i like to have A.cs as separate file and B.cs as separate file but
> B.cs refers the types present in A.cs
>
> Please let me know if this is possible.
>
>
> On Tue, Nov 15, 2016 at 3:44 PM, Feng Xiao  wrote:
>
> On Tue, Nov 15, 2016 at 11:51 AM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> I am feeling that, there should be option to generate code files inline
> with proto file inclusion.
> For example, B.proto imports A.proto then code generation should be into
> two files A.cs & B.cs.
> is this type feature already available?
>
> There isn't such a feature. Both .proto files must be listed explicitly on
> the protoc command line.
>
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
> Regards,
> Venkatesu Punugupati
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-15 Thread 'Jon Skeet' via Protocol Buffers
Sorry - "this repository" was vague - I 
meant https://github.com/google/protobuf

The corresponding NuGet packages are Google.Protobuf and 
Google.Protobuf.Tools.

Jon

On Wednesday, 16 November 2016 07:04:06 UTC, Jon Skeet wrote:
>
> On Tuesday, 15 November 2016 21:20:01 UTC, venkatesu punugupati wrote:
>>
>> Thanks for the response..
>> Let me add more details to get clear..
>> A.proto , B.Proto are two proto files
>> B.proto imports A.proto then if generate the code then you will get B.cs 
>> containing all the types present A also in the same file.
>>
>
> No, that's not true. B.cs will only contain the types declared in B.proto.
>  
>
>> But i like to have A.cs as separate file and B.cs as separate file but 
>> B.cs refers the types present in A.cs  
>>
>
> And that's what already happens.
>
> If you're seeing something else, then please:
>
> - Give a complete example, with two proto files and the exact command line 
> you're using to generate the code
> - Make sure you're using the code related to this repository - there are a 
> few other C# protobuf ports around
>
> Jon
>
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-15 Thread 'Jon Skeet' via Protocol Buffers
On Tuesday, 15 November 2016 21:20:01 UTC, venkatesu punugupati wrote:
>
> Thanks for the response..
> Let me add more details to get clear..
> A.proto , B.Proto are two proto files
> B.proto imports A.proto then if generate the code then you will get B.cs 
> containing all the types present A also in the same file.
>

No, that's not true. B.cs will only contain the types declared in B.proto.
 

> But i like to have A.cs as separate file and B.cs as separate file but 
> B.cs refers the types present in A.cs  
>

And that's what already happens.

If you're seeing something else, then please:

- Give a complete example, with two proto files and the exact command line 
you're using to generate the code
- Make sure you're using the code related to this repository - there are a 
few other C# protobuf ports around

Jon

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 15, 2016 at 3:12 PM, venkatesu punugupati <
venkatesu.punugup...@gmail.com> wrote:

> https://developers.google.com/protocol-buffers/docs/proto
>
> I am seeing 2 version also in the above link
>
Yes, but C# only supports version 3.


>
> On Tue, Nov 15, 2016 at 5:34 PM Feng Xiao  wrote:
>
>> On Tue, Nov 15, 2016 at 2:33 PM, venkatesu punugupati <
>> venkatesu.punugup...@gmail.com> wrote:
>>
>> I am using 2..please let me know if it works in that way..
>>
>> Protobuf only officially supports C# after 3.0.0. You are probably using
>> some other C# implementations.
>>
>>
>>
>> On Tue, Nov 15, 2016 at 5:11 PM Feng Xiao  wrote:
>>
>> On Tue, Nov 15, 2016 at 1:19 PM, venkatesu punugupati <
>> venkatesu.punugup...@gmail.com> wrote:
>>
>> Thanks for the response..
>> Let me add more details to get clear..
>> A.proto , B.Proto are two proto files
>> B.proto imports A.proto then if generate the code then you will get B.cs
>> containing all the types present A also in the same file.
>>
>> What version of protobuf are you using? I believe protoc should already
>> be putting classes in B.cs and A.cs separately.
>>
>>
>> But i like to have A.cs as separate file and B.cs as separate file but
>> B.cs refers the types present in A.cs
>>
>> Please let me know if this is possible.
>>
>>
>> On Tue, Nov 15, 2016 at 3:44 PM, Feng Xiao  wrote:
>>
>> On Tue, Nov 15, 2016 at 11:51 AM, venkatesu punugupati <
>> venkatesu.punugup...@gmail.com> wrote:
>>
>> I am feeling that, there should be option to generate code files inline
>> with proto file inclusion.
>> For example, B.proto imports A.proto then code generation should be into
>> two files A.cs & B.cs.
>> is this type feature already available?
>>
>> There isn't such a feature. Both .proto files must be listed explicitly
>> on the protoc command line.
>>
>>
>> --
>> 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 protobuf+unsubscr...@googlegroups.com.
>> To post to this group, send email to protobuf@googlegroups.com.
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>>
>>
>> --
>> Regards,
>> Venkatesu Punugupati
>>
>> --
>> 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 protobuf+unsubscr...@googlegroups.com.
>> To post to this group, send email to protobuf@googlegroups.com.
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-15 Thread venkatesu punugupati
https://developers.google.com/protocol-buffers/docs/proto

I am seeing 2 version also in the above link

On Tue, Nov 15, 2016 at 5:34 PM Feng Xiao  wrote:

> On Tue, Nov 15, 2016 at 2:33 PM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> I am using 2..please let me know if it works in that way..
>
> Protobuf only officially supports C# after 3.0.0. You are probably using
> some other C# implementations.
>
>
>
> On Tue, Nov 15, 2016 at 5:11 PM Feng Xiao  wrote:
>
> On Tue, Nov 15, 2016 at 1:19 PM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> Thanks for the response..
> Let me add more details to get clear..
> A.proto , B.Proto are two proto files
> B.proto imports A.proto then if generate the code then you will get B.cs
> containing all the types present A also in the same file.
>
> What version of protobuf are you using? I believe protoc should already be
> putting classes in B.cs and A.cs separately.
>
>
> But i like to have A.cs as separate file and B.cs as separate file but
> B.cs refers the types present in A.cs
>
> Please let me know if this is possible.
>
>
> On Tue, Nov 15, 2016 at 3:44 PM, Feng Xiao  wrote:
>
> On Tue, Nov 15, 2016 at 11:51 AM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> I am feeling that, there should be option to generate code files inline
> with proto file inclusion.
> For example, B.proto imports A.proto then code generation should be into
> two files A.cs & B.cs.
> is this type feature already available?
>
> There isn't such a feature. Both .proto files must be listed explicitly on
> the protoc command line.
>
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
> Regards,
> Venkatesu Punugupati
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-15 Thread venkatesu punugupati
I am using 2..please let me know if it works in that way..

On Tue, Nov 15, 2016 at 5:11 PM Feng Xiao  wrote:

> On Tue, Nov 15, 2016 at 1:19 PM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> Thanks for the response..
> Let me add more details to get clear..
> A.proto , B.Proto are two proto files
> B.proto imports A.proto then if generate the code then you will get B.cs
> containing all the types present A also in the same file.
>
> What version of protobuf are you using? I believe protoc should already be
> putting classes in B.cs and A.cs separately.
>
>
> But i like to have A.cs as separate file and B.cs as separate file but
> B.cs refers the types present in A.cs
>
> Please let me know if this is possible.
>
>
> On Tue, Nov 15, 2016 at 3:44 PM, Feng Xiao  wrote:
>
> On Tue, Nov 15, 2016 at 11:51 AM, venkatesu punugupati <
> venkatesu.punugup...@gmail.com> wrote:
>
> I am feeling that, there should be option to generate code files inline
> with proto file inclusion.
> For example, B.proto imports A.proto then code generation should be into
> two files A.cs & B.cs.
> is this type feature already available?
>
> There isn't such a feature. Both .proto files must be listed explicitly on
> the protoc command line.
>
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
> Regards,
> Venkatesu Punugupati
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 15, 2016 at 1:19 PM, venkatesu punugupati <
venkatesu.punugup...@gmail.com> wrote:

> Thanks for the response..
> Let me add more details to get clear..
> A.proto , B.Proto are two proto files
> B.proto imports A.proto then if generate the code then you will get B.cs
> containing all the types present A also in the same file.
>
What version of protobuf are you using? I believe protoc should already be
putting classes in B.cs and A.cs separately.


> But i like to have A.cs as separate file and B.cs as separate file but
> B.cs refers the types present in A.cs
>
> Please let me know if this is possible.
>
>
> On Tue, Nov 15, 2016 at 3:44 PM, Feng Xiao  wrote:
>
>> On Tue, Nov 15, 2016 at 11:51 AM, venkatesu punugupati <
>> venkatesu.punugup...@gmail.com> wrote:
>>
>>> I am feeling that, there should be option to generate code files inline
>>> with proto file inclusion.
>>> For example, B.proto imports A.proto then code generation should be into
>>> two files A.cs & B.cs.
>>> is this type feature already available?
>>>
>> There isn't such a feature. Both .proto files must be listed explicitly
>> on the protoc command line.
>>
>>
>>> --
>>> 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 protobuf+unsubscr...@googlegroups.com.
>>> To post to this group, send email to protobuf@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/protobuf.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>
>
> --
> Regards,
> Venkatesu Punugupati
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Generating C# Code from Proto file into multiple code files not inline with file for each type, It should inline with file it imports

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 15, 2016 at 11:51 AM, venkatesu punugupati <
venkatesu.punugup...@gmail.com> wrote:

> I am feeling that, there should be option to generate code files inline
> with proto file inclusion.
> For example, B.proto imports A.proto then code generation should be into
> two files A.cs & B.cs.
> is this type feature already available?
>
There isn't such a feature. Both .proto files must be listed explicitly on
the protoc command line.


> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.