aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers.Test/TestProtos
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test/TestProtos')
-rw-r--r--csharp/src/ProtocolBuffers.Test/TestProtos/MapUnittestProto3.cs5568
-rw-r--r--csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportProto3.cs24
-rw-r--r--csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportPublicProto3.cs24
-rw-r--r--csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs108
-rw-r--r--csharp/src/ProtocolBuffers.Test/TestProtos/UnittestProto3.cs500
5 files changed, 484 insertions, 5740 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/TestProtos/MapUnittestProto3.cs b/csharp/src/ProtocolBuffers.Test/TestProtos/MapUnittestProto3.cs
index 55434c53..5f6eae0c 100644
--- a/csharp/src/ProtocolBuffers.Test/TestProtos/MapUnittestProto3.cs
+++ b/csharp/src/ProtocolBuffers.Test/TestProtos/MapUnittestProto3.cs
@@ -5,7 +5,7 @@
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
-using pbd = global::Google.Protobuf.Descriptors;
+using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Protobuf.TestProtos {
@@ -13,56 +13,19 @@ namespace Google.Protobuf.TestProtos {
public static partial class MapUnittestProto3 {
#region Static variables
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapInt32Int32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapInt64Int64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapUint32Uint32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapUint64Uint64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapSint32Sint32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapSint64Sint64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapFixed32Fixed32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapFixed64Fixed64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapSfixed32Sfixed32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapSfixed64Sfixed64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapInt32FloatEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapInt32DoubleEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapBoolBoolEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapStringStringEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapInt32BytesEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapInt32EnumEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMap_MapInt32ForeignMessageEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMapSubmessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMessageMap__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMessageMap_MapInt32MessageEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestSameTypeMap__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestSameTypeMap_Map1Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestSameTypeMap_Map2Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapInt32Int32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapInt64Int64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapUint32Uint32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapUint64Uint64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapSint32Sint32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapSint64Sint64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapFixed32Fixed32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapFixed64Fixed64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapSfixed32Sfixed32Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapSfixed64Sfixed64Entry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapInt32FloatEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapInt32DoubleEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapBoolBoolEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapInt32EnumEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap_MapInt32ForeignMessageEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MessageContainingEnumCalledType__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MessageContainingEnumCalledType_TypeEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MessageContainingMapCalledEntry__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MessageContainingMapCalledEntry_EntryEntry__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestMap__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestMapSubmessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestMessageMap__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestSameTypeMap__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestArenaMap__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_MessageContainingEnumCalledType__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_MessageContainingMapCalledEntry__FieldAccessorTable;
#endregion
#region Descriptor
- public static pbd::FileDescriptor Descriptor {
+ public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
- private static pbd::FileDescriptor descriptor;
+ private static pbr::FileDescriptor descriptor;
static MapUnittestProto3() {
byte[] descriptorData = global::System.Convert.FromBase64String(
@@ -191,142 +154,31 @@ namespace Google.Protobuf.TestProtos {
"dmFsdWUYAiABKAU6AjgBKj8KB01hcEVudW0SEAoMTUFQX0VOVU1fRk9PEAAS",
"EAoMTUFQX0VOVU1fQkFSEAESEAoMTUFQX0VOVU1fQkFaEAJCIPgBAaoCGkdv",
"b2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zYgZwcm90bzM="));
- descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
+ descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
+ new pbr::FileDescriptor[] {
global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor,
});
internal__static_protobuf_unittest_TestMap__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap), descriptor.MessageTypes[0],
- new string[] { "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage", });
- internal__static_protobuf_unittest_TestMap_MapInt32Int32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapInt32Int32Entry), descriptor.MessageTypes[0].NestedTypes[0],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapInt64Int64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapInt64Int64Entry), descriptor.MessageTypes[0].NestedTypes[1],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapUint32Uint32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapUint32Uint32Entry), descriptor.MessageTypes[0].NestedTypes[2],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapUint64Uint64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapUint64Uint64Entry), descriptor.MessageTypes[0].NestedTypes[3],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapSint32Sint32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapSint32Sint32Entry), descriptor.MessageTypes[0].NestedTypes[4],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapSint64Sint64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapSint64Sint64Entry), descriptor.MessageTypes[0].NestedTypes[5],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapFixed32Fixed32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapFixed32Fixed32Entry), descriptor.MessageTypes[0].NestedTypes[6],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapFixed64Fixed64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapFixed64Fixed64Entry), descriptor.MessageTypes[0].NestedTypes[7],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapSfixed32Sfixed32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapSfixed32Sfixed32Entry), descriptor.MessageTypes[0].NestedTypes[8],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapSfixed64Sfixed64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapSfixed64Sfixed64Entry), descriptor.MessageTypes[0].NestedTypes[9],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapInt32FloatEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapInt32FloatEntry), descriptor.MessageTypes[0].NestedTypes[10],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapInt32DoubleEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapInt32DoubleEntry), descriptor.MessageTypes[0].NestedTypes[11],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapBoolBoolEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapBoolBoolEntry), descriptor.MessageTypes[0].NestedTypes[12],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapStringStringEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapStringStringEntry), descriptor.MessageTypes[0].NestedTypes[13],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapInt32BytesEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapInt32BytesEntry), descriptor.MessageTypes[0].NestedTypes[14],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapInt32EnumEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapInt32EnumEntry), descriptor.MessageTypes[0].NestedTypes[15],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestMap_MapInt32ForeignMessageEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap.Types.MapInt32ForeignMessageEntry), descriptor.MessageTypes[0].NestedTypes[16],
- new string[] { "Key", "Value", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMap), descriptor.MessageTypes[0],
+ new string[] { "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage", }, new string[] { });
internal__static_protobuf_unittest_TestMapSubmessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), descriptor.MessageTypes[1],
- new string[] { "TestMap", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), descriptor.MessageTypes[1],
+ new string[] { "TestMap", }, new string[] { });
internal__static_protobuf_unittest_TestMessageMap__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), descriptor.MessageTypes[2],
- new string[] { "MapInt32Message", });
- internal__static_protobuf_unittest_TestMessageMap_MapInt32MessageEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMessageMap.Types.MapInt32MessageEntry), descriptor.MessageTypes[2].NestedTypes[0],
- new string[] { "Key", "Value", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), descriptor.MessageTypes[2],
+ new string[] { "MapInt32Message", }, new string[] { });
internal__static_protobuf_unittest_TestSameTypeMap__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), descriptor.MessageTypes[3],
- new string[] { "Map1", "Map2", });
- internal__static_protobuf_unittest_TestSameTypeMap_Map1Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap.Types.Map1Entry), descriptor.MessageTypes[3].NestedTypes[0],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestSameTypeMap_Map2Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap.Types.Map2Entry), descriptor.MessageTypes[3].NestedTypes[1],
- new string[] { "Key", "Value", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), descriptor.MessageTypes[3],
+ new string[] { "Map1", "Map2", }, new string[] { });
internal__static_protobuf_unittest_TestArenaMap__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), descriptor.MessageTypes[4],
- new string[] { "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage", });
- internal__static_protobuf_unittest_TestArenaMap_MapInt32Int32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapInt32Int32Entry), descriptor.MessageTypes[4].NestedTypes[0],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapInt64Int64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapInt64Int64Entry), descriptor.MessageTypes[4].NestedTypes[1],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapUint32Uint32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapUint32Uint32Entry), descriptor.MessageTypes[4].NestedTypes[2],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapUint64Uint64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapUint64Uint64Entry), descriptor.MessageTypes[4].NestedTypes[3],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapSint32Sint32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapSint32Sint32Entry), descriptor.MessageTypes[4].NestedTypes[4],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapSint64Sint64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapSint64Sint64Entry), descriptor.MessageTypes[4].NestedTypes[5],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapFixed32Fixed32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapFixed32Fixed32Entry), descriptor.MessageTypes[4].NestedTypes[6],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapFixed64Fixed64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapFixed64Fixed64Entry), descriptor.MessageTypes[4].NestedTypes[7],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapSfixed32Sfixed32Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapSfixed32Sfixed32Entry), descriptor.MessageTypes[4].NestedTypes[8],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapSfixed64Sfixed64Entry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapSfixed64Sfixed64Entry), descriptor.MessageTypes[4].NestedTypes[9],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapInt32FloatEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapInt32FloatEntry), descriptor.MessageTypes[4].NestedTypes[10],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapInt32DoubleEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapInt32DoubleEntry), descriptor.MessageTypes[4].NestedTypes[11],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapBoolBoolEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapBoolBoolEntry), descriptor.MessageTypes[4].NestedTypes[12],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapInt32EnumEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapInt32EnumEntry), descriptor.MessageTypes[4].NestedTypes[13],
- new string[] { "Key", "Value", });
- internal__static_protobuf_unittest_TestArenaMap_MapInt32ForeignMessageEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap.Types.MapInt32ForeignMessageEntry), descriptor.MessageTypes[4].NestedTypes[14],
- new string[] { "Key", "Value", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), descriptor.MessageTypes[4],
+ new string[] { "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage", }, new string[] { });
internal__static_protobuf_unittest_MessageContainingEnumCalledType__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), descriptor.MessageTypes[5],
- new string[] { "Type", });
- internal__static_protobuf_unittest_MessageContainingEnumCalledType_TypeEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Types.TypeEntry), descriptor.MessageTypes[5].NestedTypes[0],
- new string[] { "Key", "Value", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), descriptor.MessageTypes[5],
+ new string[] { "Type", }, new string[] { });
internal__static_protobuf_unittest_MessageContainingMapCalledEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), descriptor.MessageTypes[6],
- new string[] { "Entry", });
- internal__static_protobuf_unittest_MessageContainingMapCalledEntry_EntryEntry__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Types.EntryEntry), descriptor.MessageTypes[6].NestedTypes[0],
- new string[] { "Key", "Value", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), descriptor.MessageTypes[6],
+ new string[] { "Entry", }, new string[] { });
}
#endregion
@@ -348,11 +200,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "map_bool_bool", "map_fixed32_fixed32", "map_fixed64_fixed64", "map_int32_bytes", "map_int32_double", "map_int32_enum", "map_int32_float", "map_int32_foreign_message", "map_int32_int32", "map_int64_int64", "map_sfixed32_sfixed32", "map_sfixed64_sfixed64", "map_sint32_sint32", "map_sint64_sint64", "map_string_string", "map_uint32_uint32", "map_uint64_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 106, 58, 66, 122, 98, 130, 90, 138, 10, 18, 74, 82, 42, 50, 114, 26, 34 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap__FieldAccessorTable; }
}
@@ -602,6 +454,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
@@ -750,2433 +606,6 @@ namespace Google.Protobuf.TestProtos {
}
}
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32Int32Entry : pb::IMessage<MapInt32Int32Entry> {
- private static readonly pb::MessageParser<MapInt32Int32Entry> _parser = new pb::MessageParser<MapInt32Int32Entry>(() => new MapInt32Int32Entry());
- public static pb::MessageParser<MapInt32Int32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[0]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapInt32Int32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32Int32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32Int32Entry(MapInt32Int32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32Int32Entry Clone() {
- return new MapInt32Int32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32Int32Entry);
- }
-
- public bool Equals(MapInt32Int32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32Int32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 16: {
- Value = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt64Int64Entry : pb::IMessage<MapInt64Int64Entry> {
- private static readonly pb::MessageParser<MapInt64Int64Entry> _parser = new pb::MessageParser<MapInt64Int64Entry>(() => new MapInt64Int64Entry());
- public static pb::MessageParser<MapInt64Int64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[1]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapInt64Int64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt64Int64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt64Int64Entry(MapInt64Int64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt64Int64Entry Clone() {
- return new MapInt64Int64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private long key_;
- public long Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private long value_;
- public long Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt64Int64Entry);
- }
-
- public bool Equals(MapInt64Int64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0L) hash ^= Key.GetHashCode();
- if (Value != 0L) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Key);
- }
- if (Value != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key);
- }
- if (Value != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt64Int64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0L) {
- Key = other.Key;
- }
- if (other.Value != 0L) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt64();
- break;
- }
- case 16: {
- Value = input.ReadInt64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapUint32Uint32Entry : pb::IMessage<MapUint32Uint32Entry> {
- private static readonly pb::MessageParser<MapUint32Uint32Entry> _parser = new pb::MessageParser<MapUint32Uint32Entry>(() => new MapUint32Uint32Entry());
- public static pb::MessageParser<MapUint32Uint32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[2]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapUint32Uint32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapUint32Uint32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapUint32Uint32Entry(MapUint32Uint32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapUint32Uint32Entry Clone() {
- return new MapUint32Uint32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private uint key_;
- public uint Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private uint value_;
- public uint Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapUint32Uint32Entry);
- }
-
- public bool Equals(MapUint32Uint32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteUInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteUInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapUint32Uint32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadUInt32();
- break;
- }
- case 16: {
- Value = input.ReadUInt32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapUint64Uint64Entry : pb::IMessage<MapUint64Uint64Entry> {
- private static readonly pb::MessageParser<MapUint64Uint64Entry> _parser = new pb::MessageParser<MapUint64Uint64Entry>(() => new MapUint64Uint64Entry());
- public static pb::MessageParser<MapUint64Uint64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[3]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapUint64Uint64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapUint64Uint64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapUint64Uint64Entry(MapUint64Uint64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapUint64Uint64Entry Clone() {
- return new MapUint64Uint64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private ulong key_;
- public ulong Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private ulong value_;
- public ulong Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapUint64Uint64Entry);
- }
-
- public bool Equals(MapUint64Uint64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0UL) hash ^= Key.GetHashCode();
- if (Value != 0UL) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0UL) {
- output.WriteRawTag(8);
- output.WriteUInt64(Key);
- }
- if (Value != 0UL) {
- output.WriteRawTag(16);
- output.WriteUInt64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Key);
- }
- if (Value != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapUint64Uint64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0UL) {
- Key = other.Key;
- }
- if (other.Value != 0UL) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadUInt64();
- break;
- }
- case 16: {
- Value = input.ReadUInt64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSint32Sint32Entry : pb::IMessage<MapSint32Sint32Entry> {
- private static readonly pb::MessageParser<MapSint32Sint32Entry> _parser = new pb::MessageParser<MapSint32Sint32Entry>(() => new MapSint32Sint32Entry());
- public static pb::MessageParser<MapSint32Sint32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[4]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapSint32Sint32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSint32Sint32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSint32Sint32Entry(MapSint32Sint32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSint32Sint32Entry Clone() {
- return new MapSint32Sint32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSint32Sint32Entry);
- }
-
- public bool Equals(MapSint32Sint32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteSInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteSInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapSint32Sint32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadSInt32();
- break;
- }
- case 16: {
- Value = input.ReadSInt32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSint64Sint64Entry : pb::IMessage<MapSint64Sint64Entry> {
- private static readonly pb::MessageParser<MapSint64Sint64Entry> _parser = new pb::MessageParser<MapSint64Sint64Entry>(() => new MapSint64Sint64Entry());
- public static pb::MessageParser<MapSint64Sint64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[5]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapSint64Sint64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSint64Sint64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSint64Sint64Entry(MapSint64Sint64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSint64Sint64Entry Clone() {
- return new MapSint64Sint64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private long key_;
- public long Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private long value_;
- public long Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSint64Sint64Entry);
- }
-
- public bool Equals(MapSint64Sint64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0L) hash ^= Key.GetHashCode();
- if (Value != 0L) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0L) {
- output.WriteRawTag(8);
- output.WriteSInt64(Key);
- }
- if (Value != 0L) {
- output.WriteRawTag(16);
- output.WriteSInt64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(Key);
- }
- if (Value != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapSint64Sint64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0L) {
- Key = other.Key;
- }
- if (other.Value != 0L) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadSInt64();
- break;
- }
- case 16: {
- Value = input.ReadSInt64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapFixed32Fixed32Entry : pb::IMessage<MapFixed32Fixed32Entry> {
- private static readonly pb::MessageParser<MapFixed32Fixed32Entry> _parser = new pb::MessageParser<MapFixed32Fixed32Entry>(() => new MapFixed32Fixed32Entry());
- public static pb::MessageParser<MapFixed32Fixed32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 13, 21 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[6]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapFixed32Fixed32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapFixed32Fixed32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapFixed32Fixed32Entry(MapFixed32Fixed32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapFixed32Fixed32Entry Clone() {
- return new MapFixed32Fixed32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private uint key_;
- public uint Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private uint value_;
- public uint Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapFixed32Fixed32Entry);
- }
-
- public bool Equals(MapFixed32Fixed32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(13);
- output.WriteFixed32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(21);
- output.WriteFixed32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + 4;
- }
- if (Value != 0) {
- size += 1 + 4;
- }
- return size;
- }
-
- public void MergeFrom(MapFixed32Fixed32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 13: {
- Key = input.ReadFixed32();
- break;
- }
- case 21: {
- Value = input.ReadFixed32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapFixed64Fixed64Entry : pb::IMessage<MapFixed64Fixed64Entry> {
- private static readonly pb::MessageParser<MapFixed64Fixed64Entry> _parser = new pb::MessageParser<MapFixed64Fixed64Entry>(() => new MapFixed64Fixed64Entry());
- public static pb::MessageParser<MapFixed64Fixed64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 9, 17 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[7]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapFixed64Fixed64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapFixed64Fixed64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapFixed64Fixed64Entry(MapFixed64Fixed64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapFixed64Fixed64Entry Clone() {
- return new MapFixed64Fixed64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private ulong key_;
- public ulong Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private ulong value_;
- public ulong Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapFixed64Fixed64Entry);
- }
-
- public bool Equals(MapFixed64Fixed64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0UL) hash ^= Key.GetHashCode();
- if (Value != 0UL) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0UL) {
- output.WriteRawTag(9);
- output.WriteFixed64(Key);
- }
- if (Value != 0UL) {
- output.WriteRawTag(17);
- output.WriteFixed64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0UL) {
- size += 1 + 8;
- }
- if (Value != 0UL) {
- size += 1 + 8;
- }
- return size;
- }
-
- public void MergeFrom(MapFixed64Fixed64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0UL) {
- Key = other.Key;
- }
- if (other.Value != 0UL) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 9: {
- Key = input.ReadFixed64();
- break;
- }
- case 17: {
- Value = input.ReadFixed64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSfixed32Sfixed32Entry : pb::IMessage<MapSfixed32Sfixed32Entry> {
- private static readonly pb::MessageParser<MapSfixed32Sfixed32Entry> _parser = new pb::MessageParser<MapSfixed32Sfixed32Entry>(() => new MapSfixed32Sfixed32Entry());
- public static pb::MessageParser<MapSfixed32Sfixed32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 13, 21 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[8]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapSfixed32Sfixed32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSfixed32Sfixed32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSfixed32Sfixed32Entry(MapSfixed32Sfixed32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSfixed32Sfixed32Entry Clone() {
- return new MapSfixed32Sfixed32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSfixed32Sfixed32Entry);
- }
-
- public bool Equals(MapSfixed32Sfixed32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(13);
- output.WriteSFixed32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(21);
- output.WriteSFixed32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + 4;
- }
- if (Value != 0) {
- size += 1 + 4;
- }
- return size;
- }
-
- public void MergeFrom(MapSfixed32Sfixed32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 13: {
- Key = input.ReadSFixed32();
- break;
- }
- case 21: {
- Value = input.ReadSFixed32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSfixed64Sfixed64Entry : pb::IMessage<MapSfixed64Sfixed64Entry> {
- private static readonly pb::MessageParser<MapSfixed64Sfixed64Entry> _parser = new pb::MessageParser<MapSfixed64Sfixed64Entry>(() => new MapSfixed64Sfixed64Entry());
- public static pb::MessageParser<MapSfixed64Sfixed64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 9, 17 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[9]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapSfixed64Sfixed64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSfixed64Sfixed64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSfixed64Sfixed64Entry(MapSfixed64Sfixed64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSfixed64Sfixed64Entry Clone() {
- return new MapSfixed64Sfixed64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private long key_;
- public long Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private long value_;
- public long Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSfixed64Sfixed64Entry);
- }
-
- public bool Equals(MapSfixed64Sfixed64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0L) hash ^= Key.GetHashCode();
- if (Value != 0L) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0L) {
- output.WriteRawTag(9);
- output.WriteSFixed64(Key);
- }
- if (Value != 0L) {
- output.WriteRawTag(17);
- output.WriteSFixed64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0L) {
- size += 1 + 8;
- }
- if (Value != 0L) {
- size += 1 + 8;
- }
- return size;
- }
-
- public void MergeFrom(MapSfixed64Sfixed64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0L) {
- Key = other.Key;
- }
- if (other.Value != 0L) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 9: {
- Key = input.ReadSFixed64();
- break;
- }
- case 17: {
- Value = input.ReadSFixed64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32FloatEntry : pb::IMessage<MapInt32FloatEntry> {
- private static readonly pb::MessageParser<MapInt32FloatEntry> _parser = new pb::MessageParser<MapInt32FloatEntry>(() => new MapInt32FloatEntry());
- public static pb::MessageParser<MapInt32FloatEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 21 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[10]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapInt32FloatEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32FloatEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32FloatEntry(MapInt32FloatEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32FloatEntry Clone() {
- return new MapInt32FloatEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private float value_;
- public float Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32FloatEntry);
- }
-
- public bool Equals(MapInt32FloatEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0F) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0F) {
- size += 1 + 4;
- }
- return size;
- }
-
- public void MergeFrom(MapInt32FloatEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0F) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 21: {
- Value = input.ReadFloat();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32DoubleEntry : pb::IMessage<MapInt32DoubleEntry> {
- private static readonly pb::MessageParser<MapInt32DoubleEntry> _parser = new pb::MessageParser<MapInt32DoubleEntry>(() => new MapInt32DoubleEntry());
- public static pb::MessageParser<MapInt32DoubleEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 17 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[11]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapInt32DoubleEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32DoubleEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32DoubleEntry(MapInt32DoubleEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32DoubleEntry Clone() {
- return new MapInt32DoubleEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private double value_;
- public double Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32DoubleEntry);
- }
-
- public bool Equals(MapInt32DoubleEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0D) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0D) {
- size += 1 + 8;
- }
- return size;
- }
-
- public void MergeFrom(MapInt32DoubleEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0D) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 17: {
- Value = input.ReadDouble();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapBoolBoolEntry : pb::IMessage<MapBoolBoolEntry> {
- private static readonly pb::MessageParser<MapBoolBoolEntry> _parser = new pb::MessageParser<MapBoolBoolEntry>(() => new MapBoolBoolEntry());
- public static pb::MessageParser<MapBoolBoolEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[12]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapBoolBoolEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapBoolBoolEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapBoolBoolEntry(MapBoolBoolEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapBoolBoolEntry Clone() {
- return new MapBoolBoolEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private bool key_;
- public bool Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private bool value_;
- public bool Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapBoolBoolEntry);
- }
-
- public bool Equals(MapBoolBoolEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != false) hash ^= Key.GetHashCode();
- if (Value != false) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != false) {
- output.WriteRawTag(8);
- output.WriteBool(Key);
- }
- if (Value != false) {
- output.WriteRawTag(16);
- output.WriteBool(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != false) {
- size += 1 + 1;
- }
- if (Value != false) {
- size += 1 + 1;
- }
- return size;
- }
-
- public void MergeFrom(MapBoolBoolEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != false) {
- Key = other.Key;
- }
- if (other.Value != false) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadBool();
- break;
- }
- case 16: {
- Value = input.ReadBool();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapStringStringEntry : pb::IMessage<MapStringStringEntry> {
- private static readonly pb::MessageParser<MapStringStringEntry> _parser = new pb::MessageParser<MapStringStringEntry>(() => new MapStringStringEntry());
- public static pb::MessageParser<MapStringStringEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 10, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[13]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapStringStringEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapStringStringEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapStringStringEntry(MapStringStringEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapStringStringEntry Clone() {
- return new MapStringStringEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private string key_ = "";
- public string Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value ?? "";
- }
- }
-
- public const int ValueFieldNumber = 2;
- private string value_ = "";
- public string Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value ?? "";
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapStringStringEntry);
- }
-
- public bool Equals(MapStringStringEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key.Length != 0) hash ^= Key.GetHashCode();
- if (Value.Length != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Key);
- }
- if (Value.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
- }
- if (Value.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapStringStringEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key.Length != 0) {
- Key = other.Key;
- }
- if (other.Value.Length != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- Key = input.ReadString();
- break;
- }
- case 18: {
- Value = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32BytesEntry : pb::IMessage<MapInt32BytesEntry> {
- private static readonly pb::MessageParser<MapInt32BytesEntry> _parser = new pb::MessageParser<MapInt32BytesEntry>(() => new MapInt32BytesEntry());
- public static pb::MessageParser<MapInt32BytesEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[14]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapInt32BytesEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32BytesEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32BytesEntry(MapInt32BytesEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32BytesEntry Clone() {
- return new MapInt32BytesEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private pb::ByteString value_ = pb::ByteString.Empty;
- public pb::ByteString Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value ?? pb::ByteString.Empty;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32BytesEntry);
- }
-
- public bool Equals(MapInt32BytesEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value.Length != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value.Length != 0) {
- output.WriteRawTag(18);
- output.WriteBytes(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32BytesEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value.Length != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 18: {
- Value = input.ReadBytes();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32EnumEntry : pb::IMessage<MapInt32EnumEntry> {
- private static readonly pb::MessageParser<MapInt32EnumEntry> _parser = new pb::MessageParser<MapInt32EnumEntry>(() => new MapInt32EnumEntry());
- public static pb::MessageParser<MapInt32EnumEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[15]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapInt32EnumEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32EnumEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32EnumEntry(MapInt32EnumEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32EnumEntry Clone() {
- return new MapInt32EnumEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.MapEnum value_ = global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO;
- public global::Google.Protobuf.TestProtos.MapEnum Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32EnumEntry);
- }
-
- public bool Equals(MapInt32EnumEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) {
- output.WriteRawTag(16);
- output.WriteEnum((int) Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32EnumEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 16: {
- value_ = (global::Google.Protobuf.TestProtos.MapEnum) input.ReadEnum();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32ForeignMessageEntry : pb::IMessage<MapInt32ForeignMessageEntry> {
- private static readonly pb::MessageParser<MapInt32ForeignMessageEntry> _parser = new pb::MessageParser<MapInt32ForeignMessageEntry>(() => new MapInt32ForeignMessageEntry());
- public static pb::MessageParser<MapInt32ForeignMessageEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMap.Descriptor.NestedTypes[16]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMap_MapInt32ForeignMessageEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32ForeignMessageEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32ForeignMessageEntry(MapInt32ForeignMessageEntry other) : this() {
- key_ = other.key_;
- Value = other.value_ != null ? other.Value.Clone() : null;
- }
-
- public MapInt32ForeignMessageEntry Clone() {
- return new MapInt32ForeignMessageEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (value_ != null) Value.Freeze();
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.ForeignMessage value_;
- public global::Google.Protobuf.TestProtos.ForeignMessage Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32ForeignMessageEntry);
- }
-
- public bool Equals(MapInt32ForeignMessageEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (!object.Equals(Value, other.Value)) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (value_ != null) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (value_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (value_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32ForeignMessageEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.value_ != null) {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- Value.MergeFrom(other.Value);
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 18: {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- input.ReadMessage(value_);
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3186,11 +615,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "test_map" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[1]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMapSubmessage__FieldAccessorTable; }
}
@@ -3250,6 +679,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (testMap_ != null) {
output.WriteRawTag(10);
@@ -3308,11 +741,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "map_int32_message" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[2]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMessageMap__FieldAccessorTable; }
}
@@ -3370,6 +803,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
}
@@ -3406,161 +843,6 @@ namespace Google.Protobuf.TestProtos {
}
}
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32MessageEntry : pb::IMessage<MapInt32MessageEntry> {
- private static readonly pb::MessageParser<MapInt32MessageEntry> _parser = new pb::MessageParser<MapInt32MessageEntry>(() => new MapInt32MessageEntry());
- public static pb::MessageParser<MapInt32MessageEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestMessageMap.Descriptor.NestedTypes[0]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestMessageMap_MapInt32MessageEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32MessageEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32MessageEntry(MapInt32MessageEntry other) : this() {
- key_ = other.key_;
- Value = other.value_ != null ? other.Value.Clone() : null;
- }
-
- public MapInt32MessageEntry Clone() {
- return new MapInt32MessageEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (value_ != null) Value.Freeze();
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.TestAllTypes value_;
- public global::Google.Protobuf.TestProtos.TestAllTypes Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32MessageEntry);
- }
-
- public bool Equals(MapInt32MessageEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (!object.Equals(Value, other.Value)) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (value_ != null) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (value_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (value_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32MessageEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.value_ != null) {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
- }
- Value.MergeFrom(other.Value);
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 18: {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
- }
- input.ReadMessage(value_);
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3570,11 +852,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "map1", "map2" };
private static readonly uint[] _fieldTags = new uint[] { 10, 18 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[3]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestSameTypeMap__FieldAccessorTable; }
}
@@ -3644,6 +926,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
map1_.WriteTo(output, _map_map1_codec);
map2_.WriteTo(output, _map_map2_codec);
@@ -3687,296 +973,6 @@ namespace Google.Protobuf.TestProtos {
}
}
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Map1Entry : pb::IMessage<Map1Entry> {
- private static readonly pb::MessageParser<Map1Entry> _parser = new pb::MessageParser<Map1Entry>(() => new Map1Entry());
- public static pb::MessageParser<Map1Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestSameTypeMap.Descriptor.NestedTypes[0]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestSameTypeMap_Map1Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public Map1Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public Map1Entry(Map1Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public Map1Entry Clone() {
- return new Map1Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as Map1Entry);
- }
-
- public bool Equals(Map1Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(Map1Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 16: {
- Value = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Map2Entry : pb::IMessage<Map2Entry> {
- private static readonly pb::MessageParser<Map2Entry> _parser = new pb::MessageParser<Map2Entry>(() => new Map2Entry());
- public static pb::MessageParser<Map2Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestSameTypeMap.Descriptor.NestedTypes[1]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestSameTypeMap_Map2Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public Map2Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public Map2Entry(Map2Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public Map2Entry Clone() {
- return new Map2Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as Map2Entry);
- }
-
- public bool Equals(Map2Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(Map2Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 16: {
- Value = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3986,11 +982,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "map_bool_bool", "map_fixed32_fixed32", "map_fixed64_fixed64", "map_int32_double", "map_int32_enum", "map_int32_float", "map_int32_foreign_message", "map_int32_int32", "map_int64_int64", "map_sfixed32_sfixed32", "map_sfixed64_sfixed64", "map_sint32_sint32", "map_sint64_sint64", "map_uint32_uint32", "map_uint64_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 106, 58, 66, 98, 114, 90, 122, 10, 18, 74, 82, 42, 50, 26, 34 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[4]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap__FieldAccessorTable; }
}
@@ -4216,6 +1212,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
@@ -4350,2149 +1350,6 @@ namespace Google.Protobuf.TestProtos {
}
}
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32Int32Entry : pb::IMessage<MapInt32Int32Entry> {
- private static readonly pb::MessageParser<MapInt32Int32Entry> _parser = new pb::MessageParser<MapInt32Int32Entry>(() => new MapInt32Int32Entry());
- public static pb::MessageParser<MapInt32Int32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[0]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapInt32Int32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32Int32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32Int32Entry(MapInt32Int32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32Int32Entry Clone() {
- return new MapInt32Int32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32Int32Entry);
- }
-
- public bool Equals(MapInt32Int32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32Int32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 16: {
- Value = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt64Int64Entry : pb::IMessage<MapInt64Int64Entry> {
- private static readonly pb::MessageParser<MapInt64Int64Entry> _parser = new pb::MessageParser<MapInt64Int64Entry>(() => new MapInt64Int64Entry());
- public static pb::MessageParser<MapInt64Int64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[1]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapInt64Int64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt64Int64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt64Int64Entry(MapInt64Int64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt64Int64Entry Clone() {
- return new MapInt64Int64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private long key_;
- public long Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private long value_;
- public long Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt64Int64Entry);
- }
-
- public bool Equals(MapInt64Int64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0L) hash ^= Key.GetHashCode();
- if (Value != 0L) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Key);
- }
- if (Value != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key);
- }
- if (Value != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt64Int64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0L) {
- Key = other.Key;
- }
- if (other.Value != 0L) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt64();
- break;
- }
- case 16: {
- Value = input.ReadInt64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapUint32Uint32Entry : pb::IMessage<MapUint32Uint32Entry> {
- private static readonly pb::MessageParser<MapUint32Uint32Entry> _parser = new pb::MessageParser<MapUint32Uint32Entry>(() => new MapUint32Uint32Entry());
- public static pb::MessageParser<MapUint32Uint32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[2]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapUint32Uint32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapUint32Uint32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapUint32Uint32Entry(MapUint32Uint32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapUint32Uint32Entry Clone() {
- return new MapUint32Uint32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private uint key_;
- public uint Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private uint value_;
- public uint Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapUint32Uint32Entry);
- }
-
- public bool Equals(MapUint32Uint32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteUInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteUInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapUint32Uint32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadUInt32();
- break;
- }
- case 16: {
- Value = input.ReadUInt32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapUint64Uint64Entry : pb::IMessage<MapUint64Uint64Entry> {
- private static readonly pb::MessageParser<MapUint64Uint64Entry> _parser = new pb::MessageParser<MapUint64Uint64Entry>(() => new MapUint64Uint64Entry());
- public static pb::MessageParser<MapUint64Uint64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[3]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapUint64Uint64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapUint64Uint64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapUint64Uint64Entry(MapUint64Uint64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapUint64Uint64Entry Clone() {
- return new MapUint64Uint64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private ulong key_;
- public ulong Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private ulong value_;
- public ulong Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapUint64Uint64Entry);
- }
-
- public bool Equals(MapUint64Uint64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0UL) hash ^= Key.GetHashCode();
- if (Value != 0UL) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0UL) {
- output.WriteRawTag(8);
- output.WriteUInt64(Key);
- }
- if (Value != 0UL) {
- output.WriteRawTag(16);
- output.WriteUInt64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Key);
- }
- if (Value != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapUint64Uint64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0UL) {
- Key = other.Key;
- }
- if (other.Value != 0UL) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadUInt64();
- break;
- }
- case 16: {
- Value = input.ReadUInt64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSint32Sint32Entry : pb::IMessage<MapSint32Sint32Entry> {
- private static readonly pb::MessageParser<MapSint32Sint32Entry> _parser = new pb::MessageParser<MapSint32Sint32Entry>(() => new MapSint32Sint32Entry());
- public static pb::MessageParser<MapSint32Sint32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[4]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapSint32Sint32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSint32Sint32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSint32Sint32Entry(MapSint32Sint32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSint32Sint32Entry Clone() {
- return new MapSint32Sint32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSint32Sint32Entry);
- }
-
- public bool Equals(MapSint32Sint32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteSInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteSInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapSint32Sint32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadSInt32();
- break;
- }
- case 16: {
- Value = input.ReadSInt32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSint64Sint64Entry : pb::IMessage<MapSint64Sint64Entry> {
- private static readonly pb::MessageParser<MapSint64Sint64Entry> _parser = new pb::MessageParser<MapSint64Sint64Entry>(() => new MapSint64Sint64Entry());
- public static pb::MessageParser<MapSint64Sint64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[5]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapSint64Sint64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSint64Sint64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSint64Sint64Entry(MapSint64Sint64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSint64Sint64Entry Clone() {
- return new MapSint64Sint64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private long key_;
- public long Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private long value_;
- public long Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSint64Sint64Entry);
- }
-
- public bool Equals(MapSint64Sint64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0L) hash ^= Key.GetHashCode();
- if (Value != 0L) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0L) {
- output.WriteRawTag(8);
- output.WriteSInt64(Key);
- }
- if (Value != 0L) {
- output.WriteRawTag(16);
- output.WriteSInt64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(Key);
- }
- if (Value != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapSint64Sint64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0L) {
- Key = other.Key;
- }
- if (other.Value != 0L) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadSInt64();
- break;
- }
- case 16: {
- Value = input.ReadSInt64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapFixed32Fixed32Entry : pb::IMessage<MapFixed32Fixed32Entry> {
- private static readonly pb::MessageParser<MapFixed32Fixed32Entry> _parser = new pb::MessageParser<MapFixed32Fixed32Entry>(() => new MapFixed32Fixed32Entry());
- public static pb::MessageParser<MapFixed32Fixed32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 13, 21 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[6]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapFixed32Fixed32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapFixed32Fixed32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapFixed32Fixed32Entry(MapFixed32Fixed32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapFixed32Fixed32Entry Clone() {
- return new MapFixed32Fixed32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private uint key_;
- public uint Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private uint value_;
- public uint Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapFixed32Fixed32Entry);
- }
-
- public bool Equals(MapFixed32Fixed32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(13);
- output.WriteFixed32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(21);
- output.WriteFixed32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + 4;
- }
- if (Value != 0) {
- size += 1 + 4;
- }
- return size;
- }
-
- public void MergeFrom(MapFixed32Fixed32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 13: {
- Key = input.ReadFixed32();
- break;
- }
- case 21: {
- Value = input.ReadFixed32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapFixed64Fixed64Entry : pb::IMessage<MapFixed64Fixed64Entry> {
- private static readonly pb::MessageParser<MapFixed64Fixed64Entry> _parser = new pb::MessageParser<MapFixed64Fixed64Entry>(() => new MapFixed64Fixed64Entry());
- public static pb::MessageParser<MapFixed64Fixed64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 9, 17 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[7]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapFixed64Fixed64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapFixed64Fixed64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapFixed64Fixed64Entry(MapFixed64Fixed64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapFixed64Fixed64Entry Clone() {
- return new MapFixed64Fixed64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private ulong key_;
- public ulong Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private ulong value_;
- public ulong Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapFixed64Fixed64Entry);
- }
-
- public bool Equals(MapFixed64Fixed64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0UL) hash ^= Key.GetHashCode();
- if (Value != 0UL) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0UL) {
- output.WriteRawTag(9);
- output.WriteFixed64(Key);
- }
- if (Value != 0UL) {
- output.WriteRawTag(17);
- output.WriteFixed64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0UL) {
- size += 1 + 8;
- }
- if (Value != 0UL) {
- size += 1 + 8;
- }
- return size;
- }
-
- public void MergeFrom(MapFixed64Fixed64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0UL) {
- Key = other.Key;
- }
- if (other.Value != 0UL) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 9: {
- Key = input.ReadFixed64();
- break;
- }
- case 17: {
- Value = input.ReadFixed64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSfixed32Sfixed32Entry : pb::IMessage<MapSfixed32Sfixed32Entry> {
- private static readonly pb::MessageParser<MapSfixed32Sfixed32Entry> _parser = new pb::MessageParser<MapSfixed32Sfixed32Entry>(() => new MapSfixed32Sfixed32Entry());
- public static pb::MessageParser<MapSfixed32Sfixed32Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 13, 21 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[8]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapSfixed32Sfixed32Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSfixed32Sfixed32Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSfixed32Sfixed32Entry(MapSfixed32Sfixed32Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSfixed32Sfixed32Entry Clone() {
- return new MapSfixed32Sfixed32Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSfixed32Sfixed32Entry);
- }
-
- public bool Equals(MapSfixed32Sfixed32Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(13);
- output.WriteSFixed32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(21);
- output.WriteSFixed32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + 4;
- }
- if (Value != 0) {
- size += 1 + 4;
- }
- return size;
- }
-
- public void MergeFrom(MapSfixed32Sfixed32Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 13: {
- Key = input.ReadSFixed32();
- break;
- }
- case 21: {
- Value = input.ReadSFixed32();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapSfixed64Sfixed64Entry : pb::IMessage<MapSfixed64Sfixed64Entry> {
- private static readonly pb::MessageParser<MapSfixed64Sfixed64Entry> _parser = new pb::MessageParser<MapSfixed64Sfixed64Entry>(() => new MapSfixed64Sfixed64Entry());
- public static pb::MessageParser<MapSfixed64Sfixed64Entry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 9, 17 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[9]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapSfixed64Sfixed64Entry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapSfixed64Sfixed64Entry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapSfixed64Sfixed64Entry(MapSfixed64Sfixed64Entry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapSfixed64Sfixed64Entry Clone() {
- return new MapSfixed64Sfixed64Entry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private long key_;
- public long Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private long value_;
- public long Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapSfixed64Sfixed64Entry);
- }
-
- public bool Equals(MapSfixed64Sfixed64Entry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0L) hash ^= Key.GetHashCode();
- if (Value != 0L) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0L) {
- output.WriteRawTag(9);
- output.WriteSFixed64(Key);
- }
- if (Value != 0L) {
- output.WriteRawTag(17);
- output.WriteSFixed64(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0L) {
- size += 1 + 8;
- }
- if (Value != 0L) {
- size += 1 + 8;
- }
- return size;
- }
-
- public void MergeFrom(MapSfixed64Sfixed64Entry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0L) {
- Key = other.Key;
- }
- if (other.Value != 0L) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 9: {
- Key = input.ReadSFixed64();
- break;
- }
- case 17: {
- Value = input.ReadSFixed64();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32FloatEntry : pb::IMessage<MapInt32FloatEntry> {
- private static readonly pb::MessageParser<MapInt32FloatEntry> _parser = new pb::MessageParser<MapInt32FloatEntry>(() => new MapInt32FloatEntry());
- public static pb::MessageParser<MapInt32FloatEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 21 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[10]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapInt32FloatEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32FloatEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32FloatEntry(MapInt32FloatEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32FloatEntry Clone() {
- return new MapInt32FloatEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private float value_;
- public float Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32FloatEntry);
- }
-
- public bool Equals(MapInt32FloatEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0F) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0F) {
- size += 1 + 4;
- }
- return size;
- }
-
- public void MergeFrom(MapInt32FloatEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0F) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 21: {
- Value = input.ReadFloat();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32DoubleEntry : pb::IMessage<MapInt32DoubleEntry> {
- private static readonly pb::MessageParser<MapInt32DoubleEntry> _parser = new pb::MessageParser<MapInt32DoubleEntry>(() => new MapInt32DoubleEntry());
- public static pb::MessageParser<MapInt32DoubleEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 17 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[11]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapInt32DoubleEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32DoubleEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32DoubleEntry(MapInt32DoubleEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32DoubleEntry Clone() {
- return new MapInt32DoubleEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private double value_;
- public double Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32DoubleEntry);
- }
-
- public bool Equals(MapInt32DoubleEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0D) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0D) {
- size += 1 + 8;
- }
- return size;
- }
-
- public void MergeFrom(MapInt32DoubleEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0D) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 17: {
- Value = input.ReadDouble();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapBoolBoolEntry : pb::IMessage<MapBoolBoolEntry> {
- private static readonly pb::MessageParser<MapBoolBoolEntry> _parser = new pb::MessageParser<MapBoolBoolEntry>(() => new MapBoolBoolEntry());
- public static pb::MessageParser<MapBoolBoolEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[12]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapBoolBoolEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapBoolBoolEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapBoolBoolEntry(MapBoolBoolEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapBoolBoolEntry Clone() {
- return new MapBoolBoolEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private bool key_;
- public bool Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private bool value_;
- public bool Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapBoolBoolEntry);
- }
-
- public bool Equals(MapBoolBoolEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != false) hash ^= Key.GetHashCode();
- if (Value != false) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != false) {
- output.WriteRawTag(8);
- output.WriteBool(Key);
- }
- if (Value != false) {
- output.WriteRawTag(16);
- output.WriteBool(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != false) {
- size += 1 + 1;
- }
- if (Value != false) {
- size += 1 + 1;
- }
- return size;
- }
-
- public void MergeFrom(MapBoolBoolEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != false) {
- Key = other.Key;
- }
- if (other.Value != false) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadBool();
- break;
- }
- case 16: {
- Value = input.ReadBool();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32EnumEntry : pb::IMessage<MapInt32EnumEntry> {
- private static readonly pb::MessageParser<MapInt32EnumEntry> _parser = new pb::MessageParser<MapInt32EnumEntry>(() => new MapInt32EnumEntry());
- public static pb::MessageParser<MapInt32EnumEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[13]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapInt32EnumEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32EnumEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32EnumEntry(MapInt32EnumEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public MapInt32EnumEntry Clone() {
- return new MapInt32EnumEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.MapEnum value_ = global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO;
- public global::Google.Protobuf.TestProtos.MapEnum Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32EnumEntry);
- }
-
- public bool Equals(MapInt32EnumEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) {
- output.WriteRawTag(16);
- output.WriteEnum((int) Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32EnumEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != global::Google.Protobuf.TestProtos.MapEnum.MAP_ENUM_FOO) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 16: {
- value_ = (global::Google.Protobuf.TestProtos.MapEnum) input.ReadEnum();
- break;
- }
- }
- }
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MapInt32ForeignMessageEntry : pb::IMessage<MapInt32ForeignMessageEntry> {
- private static readonly pb::MessageParser<MapInt32ForeignMessageEntry> _parser = new pb::MessageParser<MapInt32ForeignMessageEntry>(() => new MapInt32ForeignMessageEntry());
- public static pb::MessageParser<MapInt32ForeignMessageEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestArenaMap.Descriptor.NestedTypes[14]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_TestArenaMap_MapInt32ForeignMessageEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public MapInt32ForeignMessageEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public MapInt32ForeignMessageEntry(MapInt32ForeignMessageEntry other) : this() {
- key_ = other.key_;
- Value = other.value_ != null ? other.Value.Clone() : null;
- }
-
- public MapInt32ForeignMessageEntry Clone() {
- return new MapInt32ForeignMessageEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (value_ != null) Value.Freeze();
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.ForeignMessage value_;
- public global::Google.Protobuf.TestProtos.ForeignMessage Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as MapInt32ForeignMessageEntry);
- }
-
- public bool Equals(MapInt32ForeignMessageEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (!object.Equals(Value, other.Value)) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (value_ != null) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (value_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (value_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
- }
- return size;
- }
-
- public void MergeFrom(MapInt32ForeignMessageEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.value_ != null) {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- Value.MergeFrom(other.Value);
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 18: {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- input.ReadMessage(value_);
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6502,11 +1359,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "type" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[5]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_MessageContainingEnumCalledType__FieldAccessorTable; }
}
@@ -6564,6 +1421,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
type_.WriteTo(output, _map_type_codec);
}
@@ -6607,155 +1468,6 @@ namespace Google.Protobuf.TestProtos {
TYPE_FOO = 0,
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TypeEntry : pb::IMessage<TypeEntry> {
- private static readonly pb::MessageParser<TypeEntry> _parser = new pb::MessageParser<TypeEntry>(() => new TypeEntry());
- public static pb::MessageParser<TypeEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Descriptor.NestedTypes[0]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_MessageContainingEnumCalledType_TypeEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public TypeEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public TypeEntry(TypeEntry other) : this() {
- key_ = other.key_;
- Value = other.value_ != null ? other.Value.Clone() : null;
- }
-
- public TypeEntry Clone() {
- return new TypeEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (value_ != null) Value.Freeze();
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType value_;
- public global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as TypeEntry);
- }
-
- public bool Equals(TypeEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (!object.Equals(Value, other.Value)) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (value_ != null) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (value_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (value_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
- }
- return size;
- }
-
- public void MergeFrom(TypeEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.value_ != null) {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType();
- }
- Value.MergeFrom(other.Value);
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 18: {
- if (value_ == null) {
- value_ = new global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType();
- }
- input.ReadMessage(value_);
- break;
- }
- }
- }
- }
-
- }
-
}
#endregion
@@ -6768,11 +1480,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "entry" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[6]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_MessageContainingMapCalledEntry__FieldAccessorTable; }
}
@@ -6830,6 +1542,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
entry_.WriteTo(output, _map_entry_codec);
}
@@ -6866,154 +1582,6 @@ namespace Google.Protobuf.TestProtos {
}
}
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class EntryEntry : pb::IMessage<EntryEntry> {
- private static readonly pb::MessageParser<EntryEntry> _parser = new pb::MessageParser<EntryEntry>(() => new EntryEntry());
- public static pb::MessageParser<EntryEntry> Parser { get { return _parser; } }
-
- private static readonly string[] _fieldNames = new string[] { "key", "value" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Descriptor.NestedTypes[0]; }
- }
-
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.internal__static_protobuf_unittest_MessageContainingMapCalledEntry_EntryEntry__FieldAccessorTable; }
- }
-
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
-
- public EntryEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- public EntryEntry(EntryEntry other) : this() {
- key_ = other.key_;
- value_ = other.value_;
- }
-
- public EntryEntry Clone() {
- return new EntryEntry(this);
- }
-
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
- public const int KeyFieldNumber = 1;
- private int key_;
- public int Key {
- get { return key_; }
- set {
- pb::Freezable.CheckMutable(this);
- key_ = value;
- }
- }
-
- public const int ValueFieldNumber = 2;
- private int value_;
- public int Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
-
- public override bool Equals(object other) {
- return Equals(other as EntryEntry);
- }
-
- public bool Equals(EntryEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (Value != other.Value) return false;
- return true;
- }
-
- public override int GetHashCode() {
- int hash = 1;
- if (Key != 0) hash ^= Key.GetHashCode();
- if (Value != 0) hash ^= Value.GetHashCode();
- return hash;
- }
-
- public void WriteTo(pb::CodedOutputStream output) {
- if (Key != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Key);
- }
- if (Value != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Value);
- }
- }
-
- public int CalculateSize() {
- int size = 0;
- if (Key != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
- }
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
- }
- return size;
- }
-
- public void MergeFrom(EntryEntry other) {
- if (other == null) {
- return;
- }
- if (other.Key != 0) {
- Key = other.Key;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- }
-
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Key = input.ReadInt32();
- break;
- }
- case 16: {
- Value = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
}
#endregion
diff --git a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportProto3.cs b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportProto3.cs
index d30f22db..3875a4c3 100644
--- a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportProto3.cs
+++ b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportProto3.cs
@@ -5,7 +5,7 @@
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
-using pbd = global::Google.Protobuf.Descriptors;
+using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Protobuf.TestProtos {
@@ -13,13 +13,13 @@ namespace Google.Protobuf.TestProtos {
public static partial class UnittestImportProto3 {
#region Static variables
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable;
#endregion
#region Descriptor
- public static pbd::FileDescriptor Descriptor {
+ public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
- private static pbd::FileDescriptor descriptor;
+ private static pbr::FileDescriptor descriptor;
static UnittestImportProto3() {
byte[] descriptorData = global::System.Convert.FromBase64String(
@@ -32,13 +32,13 @@ namespace Google.Protobuf.TestProtos {
"UhAIEg4KCklNUE9SVF9CQVoQCUI8Chhjb20uZ29vZ2xlLnByb3RvYnVmLnRl",
"c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv",
"Mw=="));
- descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
+ descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
+ new pbr::FileDescriptor[] {
global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.Descriptor,
});
internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.ImportMessage), descriptor.MessageTypes[0],
- new string[] { "D", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.ImportMessage), descriptor.MessageTypes[0],
+ new string[] { "D", }, new string[] { });
}
#endregion
@@ -61,11 +61,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "d" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestImportProto3.Descriptor.MessageTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestImportProto3.internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable; }
}
@@ -124,6 +124,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (D != 0) {
output.WriteRawTag(8);
diff --git a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportPublicProto3.cs b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportPublicProto3.cs
index 5aa03a64..048ae5e9 100644
--- a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportPublicProto3.cs
+++ b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestImportPublicProto3.cs
@@ -5,7 +5,7 @@
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
-using pbd = global::Google.Protobuf.Descriptors;
+using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Protobuf.TestProtos {
@@ -13,13 +13,13 @@ namespace Google.Protobuf.TestProtos {
public static partial class UnittestImportPublicProto3 {
#region Static variables
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_import_PublicImportMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_import_PublicImportMessage__FieldAccessorTable;
#endregion
#region Descriptor
- public static pbd::FileDescriptor Descriptor {
+ public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
- private static pbd::FileDescriptor descriptor;
+ private static pbr::FileDescriptor descriptor;
static UnittestImportPublicProto3() {
byte[] descriptorData = global::System.Convert.FromBase64String(
@@ -28,12 +28,12 @@ namespace Google.Protobuf.TestProtos {
"bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ",
"bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1",
"Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
- descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
+ descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
+ new pbr::FileDescriptor[] {
});
internal__static_protobuf_unittest_import_PublicImportMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), descriptor.MessageTypes[0],
- new string[] { "E", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), descriptor.MessageTypes[0],
+ new string[] { "E", }, new string[] { });
}
#endregion
@@ -46,11 +46,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "e" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.Descriptor.MessageTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.internal__static_protobuf_unittest_import_PublicImportMessage__FieldAccessorTable; }
}
@@ -109,6 +109,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (E != 0) {
output.WriteRawTag(8);
diff --git a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs
index 0e409c8b..c68c67fb 100644
--- a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs
+++ b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs
@@ -5,7 +5,7 @@
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
-using pbd = global::Google.Protobuf.Descriptors;
+using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace UnitTest.Issues.TestProtos {
@@ -13,19 +13,19 @@ namespace UnitTest.Issues.TestProtos {
public static partial class UnittestIssues {
#region Static variables
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_Issue307__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_Issue307_NestedOnce__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_Issue307_NestedOnce_NestedTwice__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_ItemField__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_unittest_issues_Issue307__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_unittest_issues_Issue307_NestedOnce__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_unittest_issues_Issue307_NestedOnce_NestedTwice__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_unittest_issues_ItemField__FieldAccessorTable;
#endregion
#region Descriptor
- public static pbd::FileDescriptor Descriptor {
+ public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
- private static pbd::FileDescriptor descriptor;
+ private static pbr::FileDescriptor descriptor;
static UnittestIssues() {
byte[] descriptorData = global::System.Convert.FromBase64String(
@@ -48,30 +48,30 @@ namespace UnitTest.Issues.TestProtos {
"EPv//////////wESFQoITWludXNPbmUQ////////////ASouCg5EZXByZWNh",
"dGVkRW51bRITCg9ERVBSRUNBVEVEX1pFUk8QABIHCgNvbmUQAUIfSAGqAhpV",
"bml0VGVzdC5Jc3N1ZXMuVGVzdFByb3Rvc2IGcHJvdG8z"));
- descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
+ descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
+ new pbr::FileDescriptor[] {
});
internal__static_unittest_issues_Issue307__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307), descriptor.MessageTypes[0],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307), descriptor.MessageTypes[0],
+ new string[] { }, new string[] { });
internal__static_unittest_issues_Issue307_NestedOnce__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce), descriptor.MessageTypes[0].NestedTypes[0],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce), descriptor.MessageTypes[0].NestedTypes[0],
+ new string[] { }, new string[] { });
internal__static_unittest_issues_Issue307_NestedOnce_NestedTwice__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice), descriptor.MessageTypes[0].NestedTypes[0].NestedTypes[0],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice), descriptor.MessageTypes[0].NestedTypes[0].NestedTypes[0],
+ new string[] { }, new string[] { });
internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.NegativeEnumMessage), descriptor.MessageTypes[1],
- new string[] { "Value", "Values", "PackedValues", });
+ new pbr::FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.NegativeEnumMessage), descriptor.MessageTypes[1],
+ new string[] { "Value", "Values", "PackedValues", }, new string[] { });
internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.DeprecatedChild), descriptor.MessageTypes[2],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.DeprecatedChild), descriptor.MessageTypes[2],
+ new string[] { }, new string[] { });
internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage), descriptor.MessageTypes[3],
- new string[] { "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray", });
+ new pbr::FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage), descriptor.MessageTypes[3],
+ new string[] { "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray", }, new string[] { });
internal__static_unittest_issues_ItemField__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.ItemField), descriptor.MessageTypes[4],
- new string[] { "Item", });
+ new pbr::FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.ItemField), descriptor.MessageTypes[4],
+ new string[] { "Item", }, new string[] { });
}
#endregion
@@ -98,11 +98,11 @@ namespace UnitTest.Issues.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_Issue307__FieldAccessorTable; }
}
@@ -148,6 +148,10 @@ namespace UnitTest.Issues.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -187,11 +191,11 @@ namespace UnitTest.Issues.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.NestedTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_Issue307_NestedOnce__FieldAccessorTable; }
}
@@ -237,6 +241,10 @@ namespace UnitTest.Issues.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -276,11 +284,11 @@ namespace UnitTest.Issues.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Descriptor.NestedTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_Issue307_NestedOnce_NestedTwice__FieldAccessorTable; }
}
@@ -326,6 +334,10 @@ namespace UnitTest.Issues.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -374,11 +386,11 @@ namespace UnitTest.Issues.TestProtos {
private static readonly string[] _fieldNames = new string[] { "packed_values", "value", "values" };
private static readonly uint[] _fieldTags = new uint[] { 26, 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[1]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable; }
}
@@ -459,6 +471,10 @@ namespace UnitTest.Issues.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO) {
output.WriteRawTag(8);
@@ -527,11 +543,11 @@ namespace UnitTest.Issues.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[2]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable; }
}
@@ -577,6 +593,10 @@ namespace UnitTest.Issues.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -615,11 +635,11 @@ namespace UnitTest.Issues.TestProtos {
private static readonly string[] _fieldNames = new string[] { "EnumArray", "EnumValue", "MessageArray", "MessageValue", "PrimitiveArray", "PrimitiveValue" };
private static readonly uint[] _fieldTags = new uint[] { 50, 40, 34, 26, 18, 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[3]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable; }
}
@@ -746,6 +766,10 @@ namespace UnitTest.Issues.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (PrimitiveValue != 0) {
output.WriteRawTag(8);
@@ -855,11 +879,11 @@ namespace UnitTest.Issues.TestProtos {
private static readonly string[] _fieldNames = new string[] { "item" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[4]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_ItemField__FieldAccessorTable; }
}
@@ -918,6 +942,10 @@ namespace UnitTest.Issues.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Item != 0) {
output.WriteRawTag(8);
diff --git a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestProto3.cs b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestProto3.cs
index d2437bf4..67c42708 100644
--- a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestProto3.cs
+++ b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestProto3.cs
@@ -5,7 +5,7 @@
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
-using pbd = global::Google.Protobuf.Descriptors;
+using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Protobuf.TestProtos {
@@ -13,47 +13,47 @@ namespace Google.Protobuf.TestProtos {
public static partial class UnittestProto3 {
#region Static variables
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OneString__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MoreString__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OneBytes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Int32Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Int64Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestOneof__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooRequest__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooResponse__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarRequest__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarResponse__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_OneString__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_MoreString__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_OneBytes__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_Int32Message__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_Int64Message__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestOneof__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_FooRequest__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_FooResponse__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_BarRequest__FieldAccessorTable;
+ internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_BarResponse__FieldAccessorTable;
#endregion
#region Descriptor
- public static pbd::FileDescriptor Descriptor {
+ public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
- private static pbd::FileDescriptor descriptor;
+ private static pbr::FileDescriptor descriptor;
static UnittestProto3() {
byte[] descriptorData = global::System.Convert.FromBase64String(
@@ -185,115 +185,115 @@ namespace Google.Protobuf.TestProtos {
"HS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5p",
"dHRlc3QuQmFyUmVzcG9uc2VCOkINVW5pdHRlc3RQcm90b0gBgAEBiAEBkAEB",
"+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
- descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
+ descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
+ new pbr::FileDescriptor[] {
global::Google.Protobuf.TestProtos.UnittestImportProto3.Descriptor,
});
internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes), descriptor.MessageTypes[0],
- new string[] { "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofField", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes), descriptor.MessageTypes[0],
+ new string[] { "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", }, new string[] { "OneofField", });
internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage), descriptor.MessageTypes[0].NestedTypes[0],
- new string[] { "Bb", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage), descriptor.MessageTypes[0].NestedTypes[0],
+ new string[] { "Bb", }, new string[] { });
internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.NestedTestAllTypes), descriptor.MessageTypes[1],
- new string[] { "Child", "Payload", "RepeatedChild", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.NestedTestAllTypes), descriptor.MessageTypes[1],
+ new string[] { "Child", "Payload", "RepeatedChild", }, new string[] { });
internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestDeprecatedFields), descriptor.MessageTypes[2],
- new string[] { "DeprecatedInt32", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestDeprecatedFields), descriptor.MessageTypes[2],
+ new string[] { "DeprecatedInt32", }, new string[] { });
internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.ForeignMessage), descriptor.MessageTypes[3],
- new string[] { "C", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.ForeignMessage), descriptor.MessageTypes[3],
+ new string[] { "C", }, new string[] { });
internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReservedFields), descriptor.MessageTypes[4],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReservedFields), descriptor.MessageTypes[4],
+ new string[] { }, new string[] { });
internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestForeignNested), descriptor.MessageTypes[5],
- new string[] { "ForeignNested", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestForeignNested), descriptor.MessageTypes[5],
+ new string[] { "ForeignNested", }, new string[] { });
internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber), descriptor.MessageTypes[6],
- new string[] { "A", "Bb", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber), descriptor.MessageTypes[6],
+ new string[] { "A", "Bb", }, new string[] { });
internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRecursiveMessage), descriptor.MessageTypes[7],
- new string[] { "A", "I", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRecursiveMessage), descriptor.MessageTypes[7],
+ new string[] { "A", "I", }, new string[] { });
internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionA), descriptor.MessageTypes[8],
- new string[] { "Bb", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionA), descriptor.MessageTypes[8],
+ new string[] { "Bb", }, new string[] { });
internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionB), descriptor.MessageTypes[9],
- new string[] { "A", "OptionalInt32", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionB), descriptor.MessageTypes[9],
+ new string[] { "A", "OptionalInt32", }, new string[] { });
internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames), descriptor.MessageTypes[10],
- new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames), descriptor.MessageTypes[10],
+ new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", }, new string[] { });
internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings), descriptor.MessageTypes[11],
- new string[] { "MyString", "MyInt", "MyFloat", "SingleNestedMessage", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings), descriptor.MessageTypes[11],
+ new string[] { "MyString", "MyInt", "MyFloat", "SingleNestedMessage", }, new string[] { });
internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), descriptor.MessageTypes[11].NestedTypes[0],
- new string[] { "Oo", "Bb", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), descriptor.MessageTypes[11].NestedTypes[0],
+ new string[] { "Oo", "Bb", }, new string[] { });
internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.SparseEnumMessage), descriptor.MessageTypes[12],
- new string[] { "SparseEnum", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.SparseEnumMessage), descriptor.MessageTypes[12],
+ new string[] { "SparseEnum", }, new string[] { });
internal__static_protobuf_unittest_OneString__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneString), descriptor.MessageTypes[13],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneString), descriptor.MessageTypes[13],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_MoreString__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreString), descriptor.MessageTypes[14],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreString), descriptor.MessageTypes[14],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_OneBytes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneBytes), descriptor.MessageTypes[15],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneBytes), descriptor.MessageTypes[15],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreBytes), descriptor.MessageTypes[16],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreBytes), descriptor.MessageTypes[16],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_Int32Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int32Message), descriptor.MessageTypes[17],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int32Message), descriptor.MessageTypes[17],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint32Message), descriptor.MessageTypes[18],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint32Message), descriptor.MessageTypes[18],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_Int64Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int64Message), descriptor.MessageTypes[19],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int64Message), descriptor.MessageTypes[19],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint64Message), descriptor.MessageTypes[20],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint64Message), descriptor.MessageTypes[20],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BoolMessage), descriptor.MessageTypes[21],
- new string[] { "Data", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BoolMessage), descriptor.MessageTypes[21],
+ new string[] { "Data", }, new string[] { });
internal__static_protobuf_unittest_TestOneof__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestOneof), descriptor.MessageTypes[22],
- new string[] { "FooInt", "FooString", "FooMessage", "Foo", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestOneof), descriptor.MessageTypes[22],
+ new string[] { "FooInt", "FooString", "FooMessage", }, new string[] { "Foo", });
internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestPackedTypes), descriptor.MessageTypes[23],
- new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestPackedTypes), descriptor.MessageTypes[23],
+ new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", }, new string[] { });
internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestUnpackedTypes), descriptor.MessageTypes[24],
- new string[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestUnpackedTypes), descriptor.MessageTypes[24],
+ new string[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", }, new string[] { });
internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes), descriptor.MessageTypes[25],
- new string[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes), descriptor.MessageTypes[25],
+ new string[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", }, new string[] { });
internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCommentInjectionMessage), descriptor.MessageTypes[26],
- new string[] { "A", });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCommentInjectionMessage), descriptor.MessageTypes[26],
+ new string[] { "A", }, new string[] { });
internal__static_protobuf_unittest_FooRequest__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooRequest), descriptor.MessageTypes[27],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooRequest), descriptor.MessageTypes[27],
+ new string[] { }, new string[] { });
internal__static_protobuf_unittest_FooResponse__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooResponse), descriptor.MessageTypes[28],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooResponse), descriptor.MessageTypes[28],
+ new string[] { }, new string[] { });
internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooClientMessage), descriptor.MessageTypes[29],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooClientMessage), descriptor.MessageTypes[29],
+ new string[] { }, new string[] { });
internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooServerMessage), descriptor.MessageTypes[30],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooServerMessage), descriptor.MessageTypes[30],
+ new string[] { }, new string[] { });
internal__static_protobuf_unittest_BarRequest__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarRequest), descriptor.MessageTypes[31],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarRequest), descriptor.MessageTypes[31],
+ new string[] { }, new string[] { });
internal__static_protobuf_unittest_BarResponse__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarResponse), descriptor.MessageTypes[32],
- new string[] { });
+ new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarResponse), descriptor.MessageTypes[32],
+ new string[] { }, new string[] { });
}
#endregion
@@ -335,11 +335,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "oneof_bytes", "oneof_nested_message", "oneof_string", "oneof_uint32", "repeated_bool", "repeated_bytes", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_nested_enum", "repeated_nested_message", "repeated_public_import_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_uint32", "repeated_uint64", "single_bool", "single_bytes", "single_double", "single_fixed32", "single_fixed64", "single_float", "single_foreign_enum", "single_foreign_message", "single_import_enum", "single_import_message", "single_int32", "single_int64", "single_nested_enum", "single_nested_message", "single_public_import_message", "single_sfixed32", "single_sfixed64", "single_sint32", "single_sint64", "single_string", "single_uint32", "single_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 914, 898, 906, 888, 346, 362, 338, 298, 306, 330, 418, 394, 426, 402, 250, 258, 410, 386, 434, 314, 322, 282, 290, 354, 266, 274, 104, 122, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 210, 77, 81, 40, 48, 114, 24, 32 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
}
@@ -1019,6 +1019,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (SingleInt32 != 0) {
output.WriteRawTag(8);
@@ -1632,11 +1636,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "bb" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descriptor.NestedTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
}
@@ -1695,6 +1699,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Bb != 0) {
output.WriteRawTag(8);
@@ -1752,11 +1760,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "child", "payload", "repeated_child" };
private static readonly uint[] _fieldTags = new uint[] { 10, 18, 26 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[1]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable; }
}
@@ -1842,6 +1850,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (child_ != null) {
output.WriteRawTag(10);
@@ -1927,11 +1939,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "deprecated_int32" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[2]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable; }
}
@@ -1991,6 +2003,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (DeprecatedInt32 != 0) {
output.WriteRawTag(8);
@@ -2043,11 +2059,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "c" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[3]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
}
@@ -2106,6 +2122,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (C != 0) {
output.WriteRawTag(8);
@@ -2158,11 +2178,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[4]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable; }
}
@@ -2208,6 +2228,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -2246,11 +2270,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "foreign_nested" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[5]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
}
@@ -2310,6 +2334,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (foreignNested_ != null) {
output.WriteRawTag(10);
@@ -2368,11 +2396,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "a", "bb" };
private static readonly uint[] _fieldTags = new uint[] { 8, 2147483640 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[6]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
}
@@ -2444,6 +2472,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (A != 0) {
output.WriteRawTag(8);
@@ -2510,11 +2542,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "a", "i" };
private static readonly uint[] _fieldTags = new uint[] { 10, 16 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[7]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
}
@@ -2587,6 +2619,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (a_ != null) {
output.WriteRawTag(10);
@@ -2659,11 +2695,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "bb" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[8]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
}
@@ -2723,6 +2759,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (bb_ != null) {
output.WriteRawTag(10);
@@ -2781,11 +2821,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "a", "optional_int32" };
private static readonly uint[] _fieldTags = new uint[] { 10, 16 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[9]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
}
@@ -2858,6 +2898,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (a_ != null) {
output.WriteRawTag(10);
@@ -2930,11 +2974,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "EnumField", "MessageField", "PrimitiveField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedPrimitiveField", "RepeatedStringField", "StringField" };
private static readonly uint[] _fieldTags = new uint[] { 24, 34, 8, 74, 82, 58, 66, 18 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[10]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
}
@@ -3080,6 +3124,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (PrimitiveField != 0) {
output.WriteRawTag(8);
@@ -3210,11 +3258,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "my_float", "my_int", "my_string", "single_nested_message" };
private static readonly uint[] _fieldTags = new uint[] { 813, 8, 90, 1602 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[11]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
}
@@ -3313,6 +3361,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (MyInt != 0L) {
output.WriteRawTag(8);
@@ -3414,11 +3466,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "bb", "oo" };
private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.TestFieldOrderings.Descriptor.NestedTypes[0]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable; }
}
@@ -3490,6 +3542,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Bb != 0) {
output.WriteRawTag(8);
@@ -3561,11 +3617,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "sparse_enum" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[12]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable; }
}
@@ -3624,6 +3680,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) {
output.WriteRawTag(8);
@@ -3676,11 +3736,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[13]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_OneString__FieldAccessorTable; }
}
@@ -3739,6 +3799,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data.Length != 0) {
output.WriteRawTag(10);
@@ -3791,11 +3855,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[14]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_MoreString__FieldAccessorTable; }
}
@@ -3853,6 +3917,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
data_.WriteTo(output, _repeated_data_codec);
}
@@ -3898,11 +3966,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[15]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_OneBytes__FieldAccessorTable; }
}
@@ -3961,6 +4029,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data.Length != 0) {
output.WriteRawTag(10);
@@ -4013,11 +4085,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[16]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable; }
}
@@ -4076,6 +4148,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data.Length != 0) {
output.WriteRawTag(10);
@@ -4128,11 +4204,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[17]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Int32Message__FieldAccessorTable; }
}
@@ -4191,6 +4267,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data != 0) {
output.WriteRawTag(8);
@@ -4243,11 +4323,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[18]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable; }
}
@@ -4306,6 +4386,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data != 0) {
output.WriteRawTag(8);
@@ -4358,11 +4442,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[19]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Int64Message__FieldAccessorTable; }
}
@@ -4421,6 +4505,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data != 0L) {
output.WriteRawTag(8);
@@ -4473,11 +4561,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[20]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable; }
}
@@ -4536,6 +4624,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data != 0UL) {
output.WriteRawTag(8);
@@ -4588,11 +4680,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "data" };
private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[21]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable; }
}
@@ -4651,6 +4743,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (Data != false) {
output.WriteRawTag(8);
@@ -4703,11 +4799,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "foo_int", "foo_message", "foo_string" };
private static readonly uint[] _fieldTags = new uint[] { 8, 26, 18 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[22]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestOneof__FieldAccessorTable; }
}
@@ -4820,6 +4916,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (fooCase_ == FooOneofCase.FooInt) {
output.WriteRawTag(8);
@@ -4908,11 +5008,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "packed_bool", "packed_double", "packed_enum", "packed_fixed32", "packed_fixed64", "packed_float", "packed_int32", "packed_int64", "packed_sfixed32", "packed_sfixed64", "packed_sint32", "packed_sint64", "packed_uint32", "packed_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[23]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; }
}
@@ -5125,6 +5225,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
@@ -5275,11 +5379,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[24]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable; }
}
@@ -5492,6 +5596,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
@@ -5642,11 +5750,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_int32", "repeated_int64", "repeated_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 98, 16370, 2097138, 106, 16378, 2097146 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[25]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable; }
}
@@ -5764,6 +5872,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
@@ -5850,11 +5962,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { "a" };
private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[26]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable; }
}
@@ -5913,6 +6025,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
if (A.Length != 0) {
output.WriteRawTag(10);
@@ -5965,11 +6081,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[27]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
}
@@ -6015,6 +6131,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -6053,11 +6173,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[28]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
}
@@ -6103,6 +6223,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -6141,11 +6265,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[29]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable; }
}
@@ -6191,6 +6315,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -6229,11 +6357,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[30]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable; }
}
@@ -6279,6 +6407,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -6317,11 +6449,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[31]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
}
@@ -6367,6 +6499,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}
@@ -6405,11 +6541,11 @@ namespace Google.Protobuf.TestProtos {
private static readonly string[] _fieldNames = new string[] { };
private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
+ public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[32]; }
}
- public pb::FieldAccess.FieldAccessorTable Fields {
+ pbr::FieldAccessorTable pb::IReflectedMessage.Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
}
@@ -6455,6 +6591,10 @@ namespace Google.Protobuf.TestProtos {
return hash;
}
+ public override string ToString() {
+ return pb::JsonFormatter.Default.Format(this);
+ }
+
public void WriteTo(pb::CodedOutputStream output) {
}