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

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

[protobuf] How to use protoc with Node http - and in a Javascript client

2016-11-15 Thread Jorg Janke
I am trying to send/receive protoc with Node and in a Javascript client. With the Node code below, I get: TypeError: First argument must be a string or Buffer What am I missing? The actual server is Java based. Thanks! Jorg : var postData = protoRequest.serializeBinary(); // Uint8Array var o

Re: [protobuf] Async RPC methods in protobuf?

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 15, 2016 at 5:17 PM, wrote: > Yes, I agree with you that it is all dependent on the generated code. So > does protobuf compiler provide the option to generate async APIs? If not, > how complicated will it be to modify the complier? > Protobuf itself doesn't provide the RPC implementat

Re: [protobuf] Async RPC methods in protobuf?

2016-11-15 Thread song1219
Yes, I agree with you that it is all dependent on the generated code. So does protobuf compiler provide the option to generate async APIs? If not, how complicated will it be to modify the complier? On Tuesday, November 15, 2016 at 5:11:36 PM UTC-8, Feng Xiao wrote: > > > > On Tue, Nov 15, 2016 a

Re: [protobuf] Async RPC methods in protobuf?

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 15, 2016 at 4:37 PM, wrote: > Thanks for the reply. I am not using gRPC. I want to use protobuf to > define RPC, but have a separate or customized transport implementation. > There is no such thing as sync vs. async API in proto definition. It's only relevant in the generated service

Re: [protobuf] Async RPC methods in protobuf?

2016-11-15 Thread song1219
Thanks for the reply. I am not using gRPC. I want to use protobuf to define RPC, but have a separate or customized transport implementation. On Tuesday, November 15, 2016 at 4:30:12 PM UTC-8, Feng Xiao wrote: > > Are you using grpc? You can post grpc related questions to > https://groups.google.

Re: [protobuf] Async RPC methods in protobuf?

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
Are you using grpc? You can post grpc related questions to https://groups.google.com/forum/#!forum/grpc-io On Tue, Nov 15, 2016 at 4:03 PM, wrote: > I notice that when RPC methods are defined in a proto file, they are all > sync APIs. Is there a way to define async methods? Thanks. > > -- > You

[protobuf] Async RPC methods for protobuf?

2016-11-15 Thread song1219
I notice that when RPC methods are defined in .proto file. They are all sync APIs. Is there way to define async APIs? Thanks! -- 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,

[protobuf] test

2016-11-15 Thread song1219
test post -- 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.c

[protobuf] Trest

2016-11-15 Thread song1219
test -- 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. V

[protobuf] Async RPC methods in protobuf?

2016-11-15 Thread song1219
I notice that when RPC methods are defined in a proto file, they are all sync APIs. Is there a way to define async methods? Thanks. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails fro

Re: [protobuf] make check unit test failures and segmentation fault

2016-11-15 Thread David Edge
I will try and figure out where the segfault is happening and get back to you. My compiler options included the following flag: -fsingle-precision-constant Turning off this option got rid of all the precision errors. Every test now passes prior to the segfault. However I still segfault at the i

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:

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 w

Re: [protobuf] Re: Stack overflow error when running 2.6.1 protoc compiler built under VS 2015

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 15, 2016 at 1:28 PM, Clifton Liu wrote: > Hi Feng, > > Thanks for the quick reply. This is a very simple proto definition and it > works perfectly fine when I compile the protoc with VS2012. In fact, the > VS2015 built protoc crashes on every proto file we currently have in the > proj

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 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 P

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.Prot

Re: [protobuf] make check unit test failures and segmentation fault

2016-11-15 Thread 'Adam Cozzette' via Protocol Buffers
Interestingly it kind of looks like your compiler is treating floating-point literals as single-precision floats instead of doubles. Judging from this snippet you posted for example: Expected: 1.234567890123456789 Which is: 1.2345678806304932 The first number is the original text from the source

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 th

Re: [protobuf] Protobuf deserialization

2016-11-15 Thread 'Adam Cozzette' via Protocol Buffers
Serialized protocol buffers do not contain any information to allow you to determine their size, so you have to know the size you expect before you start parsing. The most common approach is to just prefix the serialized protobuf with a varint

[protobuf] Re: Stack overflow error when running 2.6.1 protoc compiler built under VS 2015

2016-11-15 Thread Clifton Liu
Hi Feng, Thanks for the quick reply. This is a very simple proto definition and it works perfectly fine when I compile the protoc with VS2012. In fact, the VS2015 built protoc crashes on every proto file we currently have in the project, which led me to believe it's related to VS2015 code gener

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
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. But i like to have A.cs as separate file and B.cs as separate fil

Re: [protobuf] Stack overflow error when running 2.6.1 protoc compiler built under VS 2015

2016-11-15 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Nov 15, 2016 at 12:48 PM, Clifton Liu wrote: > Hi, > > I have compiled 2.6.1 protoc compiler and encountered a stack overflow > error. It does not happen to the build I have in VS 2012. Has anyone had to > compile proctoc/lib with VS 2015 and had run into the same issues ? Is > there any

[protobuf] Stack overflow error when running 2.6.1 protoc compiler built under VS 2015

2016-11-15 Thread Clifton Liu
Hi, I have compiled 2.6.1 protoc compiler and encountered a stack overflow error. It does not happen to the build I have in VS 2012. Has anyone had to compile proctoc/lib with VS 2015 and had run into the same issues ? Is there any know fixes to this ? Regards, Cliff -- You received this mes

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.

Re: [protobuf] How to represent variable JSON object data with Proto definition

2016-11-15 Thread Tim Kientzle
> On Nov 15, 2016, at 9:15 AM, Bojan D wrote: > > Newbie question... If I have the following sample "User" JSON data: > > { > firstName: 'Bob' > lastName: 'Smith', > email: 'b...@gmail.com', > metadata: { > // a plain JS object that > // - will always exist and be at least an e

[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 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? -- You received this message because you are subscribed to t

[protobuf] How to represent variable JSON object data with Proto definition

2016-11-15 Thread Bojan D
Newbie question... If I have the following sample "User" JSON data: { firstName: 'Bob' lastName: 'Smith', email: 'b...@gmail.com', metadata: { // a plain JS object that // - will always exist and be at least an empty {} object // - could potentially contain any number of prope

[protobuf] Re: Json Program to Protobuf

2016-11-15 Thread JAlsi
Hey, I only have this: https://gist.github.com/anonymous/6281a385a3651b6a00727c93823f7153 But the Response is only very unclear... I Don't know how to get the Data from the Api... -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubsc

[protobuf] Protobuf deserialization

2016-11-15 Thread vladimir . dumanovskii
Goodday! I need to parse data from the byte array. Byte array can does not contain enough bytes, but I can add one byte or more if needed. I tried pars a byte array that contains enough bytes for parse one but not two pfb objs. Does exist true way for parse a one pbf from a byte array that conta

Re: [protobuf] AIX builds fail using g++

2016-11-15 Thread 'Adam Cozzette' via Protocol Buffers
Ok, one other thing that might be worth trying is just to see if the generic GCC implementation works for you--it seems as if that should work as long as you're using version 4.7 or higher. To do this you just have to tweak atomicops.h so that it includes atomicops_internals_generic_gcc.h. On Tue,

Re: [protobuf] AIX builds fail using g++

2016-11-15 Thread Bob Wilkinson
I see in platform_macros.h #elif defined(_POWER) || defined(__powerpc64__) || defined(__PPC64__) #define GOOGLE_PROTOBUF_ARCH_POWER 1 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1 #elif defined(__PPC__) #define GOOGLE_PROTOBUF_ARCH_PPC 1 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1 #elif defined(__GNUC__) I kno