[protobuf] Compilation error in example for the documentation for Timestamp

2018-07-11 Thread Peter Isberg
Here in the documentation https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/timestamp it is says in example 4 there is an error Incorrect: Timestamp.*newBuilder*().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 100)).b

[protobuf] Re: Compilation error in example for the documentation for Timestamp

2018-07-11 Thread Peter Isberg
Cant edit the post so and you have to use seconds() and nanos() On Wednesday, 11 July 2018 16:36:13 UTC+2, Peter Isberg wrote: > > Here in the documentation > https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/timestamp > > it is says in

[protobuf] Repeated enum field in C++ : Cannot iterate field without casts

2018-07-11 Thread rschoe . ibm
Hi, When using a repeated enum field, For example: enum Bar { BAR_VALUE = 0; OTHER_VALUE = 1; } message test { repeated Bar foo = 1; } I will get c++ accessor methods like this (see here). Bar foo(int index) co