I have RepeatedMessage in my proto file, I am able to create C# object of
my proto and serialize it and so..whereas , when I pass the value via JSON
with only one value in collection , it threw error as
Unhandled Exception: Google.Protobuf.InvalidProtocolBufferException:
Repeated field value
I have JSON data like below,
{
"clientIdentifier": {
"context": "CFID",
"value": "1234"
},
"desiredSessionTimeout": "3"
}
Value 1234 is the datatype of " ByteString " as per proto
When I am trying to parse using JSON parser
Google.Protobuf.JsonParser parser = Google
I am trying to serialize the data using C# Google protobuf, and I am using
below code ,
private static void printStream(IMessage msg)
{
int size = msg.CalculateSize();
byte[] buffer = new byte[size];
CodedOutputStream output = new CodedOutputStream(bu
@Marc Gravell,
I auto-generated ".cs" files from each ".proto" file. . Whereever a message
declared inside another message in proto, auto-generated cs file is
generated as " Nested Types " and Types class is generated as static. (I
guess , its how the generator defined)
And, I am trying to con
All,
I am new to the usage of proto buffer with C sharp.. All I try is to get
the input in XML and convert to C# object and then using google protobuf to
serialize and deserialize.
While converting the xml input to C# object, i am getting below because of
nested types
--