|
|
|
@ -31,9 +31,15 @@ namespace Google.ProtocolBuffers |
|
|
|
|
.AddNumbers(1) |
|
|
|
|
.AddNumbers(2) |
|
|
|
|
.AddNumbers(3) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder().AddOptions(EnumOptions.ONE).SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.TWO).SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.THREE).SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.ONE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.TWO) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.THREE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
.Build(); |
|
|
|
|
|
|
|
|
|
MemoryStream ms = new MemoryStream(); |
|
|
|
@ -58,9 +64,15 @@ namespace Google.ProtocolBuffers |
|
|
|
|
.AddNumbers(1) |
|
|
|
|
.AddNumbers(2) |
|
|
|
|
.AddNumbers(3) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder().AddOptions(EnumOptions.ONE).SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.TWO).SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.THREE).SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.ONE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.TWO) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.THREE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
.SetExtension(UnitTestXmlSerializerTestProtoFile.ExtensionText, " extension text value ! ") |
|
|
|
|
.SetExtension(UnitTestXmlSerializerTestProtoFile.ExtensionMessage, new TestXmlExtension.Builder().SetNumber(42).Build()) |
|
|
|
|
.AddExtension(UnitTestXmlSerializerTestProtoFile.ExtensionNumber, 100) |
|
|
|
@ -97,9 +109,15 @@ namespace Google.ProtocolBuffers |
|
|
|
|
.AddNumbers(1) |
|
|
|
|
.AddNumbers(2) |
|
|
|
|
.AddNumbers(3) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder().AddOptions(EnumOptions.ONE).SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.TWO).SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.THREE).SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.ONE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.TWO) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.THREE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
MemoryStream ms = new MemoryStream(); |
|
|
|
@ -124,9 +142,15 @@ namespace Google.ProtocolBuffers |
|
|
|
|
.AddNumbers(1) |
|
|
|
|
.AddNumbers(2) |
|
|
|
|
.AddNumbers(3) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder().AddOptions(EnumOptions.ONE).SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.TWO).SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder().AddOptions(EnumOptions.THREE).SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
.SetChild(TestXmlChild.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.ONE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[1]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.TWO) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[2]))) |
|
|
|
|
.AddChildren(TestXmlMessage.Types.Children.CreateBuilder() |
|
|
|
|
.AddOptions(EnumOptions.THREE) |
|
|
|
|
.SetBinary(ByteString.CopyFrom(new byte[3]))) |
|
|
|
|
.SetExtension(UnitTestXmlSerializerTestProtoFile.ExtensionText, " extension text value ! ") |
|
|
|
|
.SetExtension(UnitTestXmlSerializerTestProtoFile.ExtensionMessage, new TestXmlExtension.Builder().SetNumber(42).Build()) |
|
|
|
|
.AddExtension(UnitTestXmlSerializerTestProtoFile.ExtensionNumber, 100) |
|
|
|
|