1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: unittest.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021, 8981
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.Protobuf.TestProtos.Proto2 {
13 
14   /// <summary>Holder for reflection information generated from unittest.proto</summary>
15   public static partial class UnittestReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for unittest.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
UnittestReflection()24     static UnittestReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Cg51bml0dGVzdC5wcm90bxIYcHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yGhV1",
28             "bml0dGVzdF9pbXBvcnQucHJvdG8igBoKDFRlc3RBbGxUeXBlcxIWCg5vcHRp",
29             "b25hbF9pbnQzMhgBIAEoBRIWCg5vcHRpb25hbF9pbnQ2NBgCIAEoAxIXCg9v",
30             "cHRpb25hbF91aW50MzIYAyABKA0SFwoPb3B0aW9uYWxfdWludDY0GAQgASgE",
31             "EhcKD29wdGlvbmFsX3NpbnQzMhgFIAEoERIXCg9vcHRpb25hbF9zaW50NjQY",
32             "BiABKBISGAoQb3B0aW9uYWxfZml4ZWQzMhgHIAEoBxIYChBvcHRpb25hbF9m",
33             "aXhlZDY0GAggASgGEhkKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPEhkKEW9w",
34             "dGlvbmFsX3NmaXhlZDY0GAogASgQEhYKDm9wdGlvbmFsX2Zsb2F0GAsgASgC",
35             "EhcKD29wdGlvbmFsX2RvdWJsZRgMIAEoARIVCg1vcHRpb25hbF9ib29sGA0g",
36             "ASgIEhcKD29wdGlvbmFsX3N0cmluZxgOIAEoCRIWCg5vcHRpb25hbF9ieXRl",
37             "cxgPIAEoDBJLCg1vcHRpb25hbGdyb3VwGBAgASgKMjQucHJvdG9idWZfdW5p",
38             "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5PcHRpb25hbEdyb3VwElUKF29w",
39             "dGlvbmFsX25lc3RlZF9tZXNzYWdlGBIgASgLMjQucHJvdG9idWZfdW5pdHRl",
40             "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGG9wdGlv",
41             "bmFsX2ZvcmVpZ25fbWVzc2FnZRgTIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
42             "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJPChdvcHRpb25hbF9pbXBvcnRfbWVz",
43             "c2FnZRgUIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIu",
44             "SW1wb3J0TWVzc2FnZRJPChRvcHRpb25hbF9uZXN0ZWRfZW51bRgVIAEoDjIx",
45             "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVk",
46             "RW51bRJEChVvcHRpb25hbF9mb3JlaWduX2VudW0YFiABKA4yJS5wcm90b2J1",
47             "Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUb3B0aW9uYWxfaW1w",
48             "b3J0X2VudW0YFyABKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJv",
49             "dG8yLkltcG9ydEVudW0SIQoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBggASgJ",
50             "QgIIAhIZCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIARJcCh5vcHRpb25hbF9w",
51             "dWJsaWNfaW1wb3J0X21lc3NhZ2UYGiABKAsyNC5wcm90b2J1Zl91bml0dGVz",
52             "dF9pbXBvcnRfcHJvdG8yLlB1YmxpY0ltcG9ydE1lc3NhZ2USVwoVb3B0aW9u",
53             "YWxfbGF6eV9tZXNzYWdlGBsgASgLMjQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
54             "dG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlQgIoARIWCg5yZXBlYXRl",
55             "ZF9pbnQzMhgfIAMoBRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBl",
56             "YXRlZF91aW50MzIYISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcK",
57             "D3JlcGVhdGVkX3NpbnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCAD",
58             "KBISGAoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhl",
59             "ZDY0GCYgAygGEhkKEXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVh",
60             "dGVkX3NmaXhlZDY0GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcK",
61             "D3JlcGVhdGVkX2RvdWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygI",
62             "EhcKD3JlcGVhdGVkX3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgt",
63             "IAMoDBJLCg1yZXBlYXRlZGdyb3VwGC4gAygKMjQucHJvdG9idWZfdW5pdHRl",
64             "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5SZXBlYXRlZEdyb3VwElUKF3JlcGVh",
65             "dGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMjQucHJvdG9idWZfdW5pdHRlc3Rf",
66             "cHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGHJlcGVhdGVk",
67             "X2ZvcmVpZ25fbWVzc2FnZRgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3By",
68             "b3RvMi5Gb3JlaWduTWVzc2FnZRJPChdyZXBlYXRlZF9pbXBvcnRfbWVzc2Fn",
69             "ZRgyIAMoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIuSW1w",
70             "b3J0TWVzc2FnZRJPChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjIxLnBy",
71             "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkRW51",
72             "bRJEChVyZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yJS5wcm90b2J1Zl91",
73             "bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUcmVwZWF0ZWRfaW1wb3J0",
74             "X2VudW0YNSADKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJvdG8y",
75             "LkltcG9ydEVudW0SIQoVcmVwZWF0ZWRfc3RyaW5nX3BpZWNlGDYgAygJQgII",
76             "AhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJXChVyZXBlYXRlZF9sYXp5",
77             "X21lc3NhZ2UYOSADKAsyNC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
78             "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VCAigBEhkKDWRlZmF1bHRfaW50MzIY",
79             "PSABKAU6AjQxEhkKDWRlZmF1bHRfaW50NjQYPiABKAM6AjQyEhoKDmRlZmF1",
80             "bHRfdWludDMyGD8gASgNOgI0MxIaCg5kZWZhdWx0X3VpbnQ2NBhAIAEoBDoC",
81             "NDQSGwoOZGVmYXVsdF9zaW50MzIYQSABKBE6Ay00NRIaCg5kZWZhdWx0X3Np",
82             "bnQ2NBhCIAEoEjoCNDYSGwoPZGVmYXVsdF9maXhlZDMyGEMgASgHOgI0NxIb",
83             "Cg9kZWZhdWx0X2ZpeGVkNjQYRCABKAY6AjQ4EhwKEGRlZmF1bHRfc2ZpeGVk",
84             "MzIYRSABKA86AjQ5Eh0KEGRlZmF1bHRfc2ZpeGVkNjQYRiABKBA6Ay01MBIb",
85             "Cg1kZWZhdWx0X2Zsb2F0GEcgASgCOgQ1MS41Eh0KDmRlZmF1bHRfZG91Ymxl",
86             "GEggASgBOgU1MjAwMBIaCgxkZWZhdWx0X2Jvb2wYSSABKAg6BHRydWUSHQoO",
87             "ZGVmYXVsdF9zdHJpbmcYSiABKAk6BWhlbGxvEhwKDWRlZmF1bHRfYnl0ZXMY",
88             "SyABKAw6BXdvcmxkElMKE2RlZmF1bHRfbmVzdGVkX2VudW0YUSABKA4yMS5w",
89             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVu",
90             "dW06A0JBUhJQChRkZWZhdWx0X2ZvcmVpZ25fZW51bRhSIAEoDjIlLnByb3Rv",
91             "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVIS",
92             "VAoTZGVmYXVsdF9pbXBvcnRfZW51bRhTIAEoDjIrLnByb3RvYnVmX3VuaXR0",
93             "ZXN0X2ltcG9ydF9wcm90bzIuSW1wb3J0RW51bToKSU1QT1JUX0JBUhIlChRk",
94             "ZWZhdWx0X3N0cmluZ19waWVjZRhUIAEoCToDYWJjQgIIAhIdCgxkZWZhdWx0",
95             "X2NvcmQYVSABKAk6AzEyM0ICCAESFgoMb25lb2ZfdWludDMyGG8gASgNSAAS",
96             "VAoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCABKAsyNC5wcm90b2J1Zl91bml0",
97             "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxv",
98             "bmVvZl9zdHJpbmcYcSABKAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsK",
99             "DU5lc3RlZE1lc3NhZ2USCgoCYmIYASABKAUaGgoNT3B0aW9uYWxHcm91cBIJ",
100             "CgFhGBEgASgFGhoKDVJlcGVhdGVkR3JvdXASCQoBYRgvIAEoBSI5CgpOZXN0",
101             "ZWRFbnVtEgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADEhAKA05FRxD/////",
102             "//////8BQg0KC29uZW9mX2ZpZWxkItABChJOZXN0ZWRUZXN0QWxsVHlwZXMS",
103             "OwoFY2hpbGQYASABKAsyLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuTmVz",
104             "dGVkVGVzdEFsbFR5cGVzEjcKB3BheWxvYWQYAiABKAsyJi5wcm90b2J1Zl91",
105             "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkQKDnJlcGVhdGVkX2NoaWxk",
106             "GAMgAygLMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLk5lc3RlZFRlc3RB",
107             "bGxUeXBlcyJtChRUZXN0RGVwcmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVk",
108             "X2ludDMyGAEgASgFQgIYARInChlkZXByZWNhdGVkX2ludDMyX2luX29uZW9m",
109             "GAIgASgFQgIYAUgAQg4KDG9uZW9mX2ZpZWxkcyIbChVUZXN0RGVwcmVjYXRl",
110             "ZE1lc3NhZ2U6AhgBIiYKDkZvcmVpZ25NZXNzYWdlEgkKAWMYASABKAUSCQoB",
111             "ZBgCIAEoBSIwChJUZXN0UmVzZXJ2ZWRGaWVsZHNKBAgCEANKBAgPEBBKBAgJ",
112             "EAxSA2JhclIDYmF6Ih0KEVRlc3RBbGxFeHRlbnNpb25zKggIARCAgICAAiIk",
113             "ChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFIiQKF1JlcGVh",
114             "dGVkR3JvdXBfZXh0ZW5zaW9uEgkKAWEYLyABKAUitwEKCVRlc3RHcm91cBJI",
115             "Cg1vcHRpb25hbGdyb3VwGBAgASgKMjEucHJvdG9idWZfdW5pdHRlc3RfcHJv",
116             "dG8yLlRlc3RHcm91cC5PcHRpb25hbEdyb3VwEkQKFW9wdGlvbmFsX2ZvcmVp",
117             "Z25fZW51bRgWIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
118             "aWduRW51bRoaCg1PcHRpb25hbEdyb3VwEgkKAWEYESABKAUiHgoSVGVzdEdy",
119             "b3VwRXh0ZW5zaW9uKggIARCAgICAAiLhAwoTVGVzdE5lc3RlZEV4dGVuc2lv",
120             "bhokChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFMkAKBHRl",
121             "c3QSKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
122             "bnMY6gcgASgJOgR0ZXN0Mk0KF25lc3RlZF9zdHJpbmdfZXh0ZW5zaW9uEisu",
123             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGOsH",
124             "IAEoCTKUAQoXb3B0aW9uYWxncm91cF9leHRlbnNpb24SLC5wcm90b2J1Zl91",
125             "bml0dGVzdF9wcm90bzIuVGVzdEdyb3VwRXh0ZW5zaW9uGBAgASgKMkUucHJv",
126             "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3ROZXN0ZWRFeHRlbnNpb24uT3B0",
127             "aW9uYWxHcm91cF9leHRlbnNpb24yfAofb3B0aW9uYWxfZm9yZWlnbl9lbnVt",
128             "X2V4dGVuc2lvbhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0R3Jv",
129             "dXBFeHRlbnNpb24YFiABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
130             "Rm9yZWlnbkVudW0i8QUKDFRlc3RSZXF1aXJlZBIJCgFhGAEgAigFEg4KBmR1",
131             "bW15MhgCIAEoBRIJCgFiGAMgAigFEg4KBmR1bW15NBgEIAEoBRIOCgZkdW1t",
132             "eTUYBSABKAUSDgoGZHVtbXk2GAYgASgFEg4KBmR1bW15NxgHIAEoBRIOCgZk",
133             "dW1teTgYCCABKAUSDgoGZHVtbXk5GAkgASgFEg8KB2R1bW15MTAYCiABKAUS",
134             "DwoHZHVtbXkxMRgLIAEoBRIPCgdkdW1teTEyGAwgASgFEg8KB2R1bW15MTMY",
135             "DSABKAUSDwoHZHVtbXkxNBgOIAEoBRIPCgdkdW1teTE1GA8gASgFEg8KB2R1",
136             "bW15MTYYECABKAUSDwoHZHVtbXkxNxgRIAEoBRIPCgdkdW1teTE4GBIgASgF",
137             "Eg8KB2R1bW15MTkYEyABKAUSDwoHZHVtbXkyMBgUIAEoBRIPCgdkdW1teTIx",
138             "GBUgASgFEg8KB2R1bW15MjIYFiABKAUSDwoHZHVtbXkyMxgXIAEoBRIPCgdk",
139             "dW1teTI0GBggASgFEg8KB2R1bW15MjUYGSABKAUSDwoHZHVtbXkyNhgaIAEo",
140             "BRIPCgdkdW1teTI3GBsgASgFEg8KB2R1bW15MjgYHCABKAUSDwoHZHVtbXky",
141             "ORgdIAEoBRIPCgdkdW1teTMwGB4gASgFEg8KB2R1bW15MzEYHyABKAUSDwoH",
142             "ZHVtbXkzMhggIAEoBRIJCgFjGCEgAigFMmQKBnNpbmdsZRIrLnByb3RvYnVm",
143             "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxjoByABKAsyJi5w",
144             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFJlcXVpcmVkMmMKBW11bHRp",
145             "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
146             "GOkHIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
147             "ZWQiqAEKE1Rlc3RSZXF1aXJlZEZvcmVpZ24SQAoQb3B0aW9uYWxfbWVzc2Fn",
148             "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
149             "ZWQSQAoQcmVwZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0",
150             "ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSDQoFZHVtbXkYAyABKAUi2wEKE1Rl",
151             "c3RSZXF1aXJlZE1lc3NhZ2USQAoQb3B0aW9uYWxfbWVzc2FnZRgBIAEoCzIm",
152             "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSQAoQcmVw",
153             "ZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
154             "Mi5UZXN0UmVxdWlyZWQSQAoQcmVxdWlyZWRfbWVzc2FnZRgDIAIoCzImLnBy",
155             "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQiYQoRVGVzdEZv",
156             "cmVpZ25OZXN0ZWQSTAoOZm9yZWlnbl9uZXN0ZWQYASABKAsyNC5wcm90b2J1",
157             "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2Ui",
158             "EgoQVGVzdEVtcHR5TWVzc2FnZSIqCh5UZXN0RW1wdHlNZXNzYWdlV2l0aEV4",
159             "dGVuc2lvbnMqCAgBEICAgIACIjcKG1Rlc3RNdWx0aXBsZUV4dGVuc2lvblJh",
160             "bmdlcyoECCoQKyoGCK8gEJQhKgoIgIAEEICAgIACIjQKGFRlc3RSZWFsbHlM",
161             "YXJnZVRhZ051bWJlchIJCgFhGAEgASgFEg0KAmJiGP///38gASgFIlwKFFRl",
162             "c3RSZWN1cnNpdmVNZXNzYWdlEjkKAWEYASABKAsyLi5wcm90b2J1Zl91bml0",
163             "dGVzdF9wcm90bzIuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSKE",
164             "AwoUVGVzdE11dHVhbFJlY3Vyc2lvbkESOgoCYmIYASABKAsyLi5wcm90b2J1",
165             "Zl91bml0dGVzdF9wcm90bzIuVGVzdE11dHVhbFJlY3Vyc2lvbkISSQoIc3Vi",
166             "Z3JvdXAYAiABKAoyNy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE11",
167             "dHVhbFJlY3Vyc2lvbkEuU3ViR3JvdXAaRwoKU3ViTWVzc2FnZRI5CgFiGAEg",
168             "ASgLMi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RNdXR1YWxSZWN1",
169             "cnNpb25CGpsBCghTdWJHcm91cBJOCgtzdWJfbWVzc2FnZRgDIAEoCzI5LnBy",
170             "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0TXV0dWFsUmVjdXJzaW9uQS5T",
171             "dWJNZXNzYWdlEj8KD25vdF9pbl90aGlzX3NjYxgEIAEoCzImLnByb3RvYnVm",
172             "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMiaQoUVGVzdE11dHVhbFJl",
173             "Y3Vyc2lvbkISOQoBYRgBIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
174             "Mi5UZXN0TXV0dWFsUmVjdXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEo",
175             "BSLYAQoRVGVzdElzSW5pdGlhbGl6ZWQSSwoLc3ViX21lc3NhZ2UYASABKAsy",
176             "Ni5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdElzSW5pdGlhbGl6ZWQu",
177             "U3ViTWVzc2FnZRp2CgpTdWJNZXNzYWdlElEKCHN1Ymdyb3VwGAEgASgKMj8u",
178             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RJc0luaXRpYWxpemVkLlN1",
179             "Yk1lc3NhZ2UuU3ViR3JvdXAaFQoIU3ViR3JvdXASCQoBaRgCIAIoBSLBAQoS",
180             "VGVzdER1cEZpZWxkTnVtYmVyEgkKAWEYASABKAUSPQoDZm9vGAIgASgKMjAu",
181             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3REdXBGaWVsZE51bWJlci5G",
182             "b28SPQoDYmFyGAMgASgKMjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
183             "c3REdXBGaWVsZE51bWJlci5CYXIaEAoDRm9vEgkKAWEYASABKAUaEAoDQmFy",
184             "EgkKAWEYASABKAUiUwoQVGVzdEVhZ2VyTWVzc2FnZRI/CgtzdWJfbWVzc2Fn",
185             "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlw",
186             "ZXNCAigAIlIKD1Rlc3RMYXp5TWVzc2FnZRI/CgtzdWJfbWVzc2FnZRgBIAEo",
187             "CzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXNCAigB",
188             "Io4CChhUZXN0TmVzdGVkTWVzc2FnZUhhc0JpdHMSYQoXb3B0aW9uYWxfbmVz",
189             "dGVkX21lc3NhZ2UYASABKAsyQC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
190             "VGVzdE5lc3RlZE1lc3NhZ2VIYXNCaXRzLk5lc3RlZE1lc3NhZ2UajgEKDU5l",
191             "c3RlZE1lc3NhZ2USJAocbmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9pbnQzMhgB",
192             "IAMoBRJXCiVuZXN0ZWRtZXNzYWdlX3JlcGVhdGVkX2ZvcmVpZ25tZXNzYWdl",
193             "GAIgAygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNz",
194             "YWdlIoEEChdUZXN0Q2FtZWxDYXNlRmllbGROYW1lcxIWCg5QcmltaXRpdmVG",
195             "aWVsZBgBIAEoBRITCgtTdHJpbmdGaWVsZBgCIAEoCRI4CglFbnVtRmllbGQY",
196             "AyABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0S",
197             "PgoMTWVzc2FnZUZpZWxkGAQgASgLMigucHJvdG9idWZfdW5pdHRlc3RfcHJv",
198             "dG8yLkZvcmVpZ25NZXNzYWdlEhwKEFN0cmluZ1BpZWNlRmllbGQYBSABKAlC",
199             "AggCEhUKCUNvcmRGaWVsZBgGIAEoCUICCAESHgoWUmVwZWF0ZWRQcmltaXRp",
200             "dmVGaWVsZBgHIAMoBRIbChNSZXBlYXRlZFN0cmluZ0ZpZWxkGAggAygJEkAK",
201             "EVJlcGVhdGVkRW51bUZpZWxkGAkgAygOMiUucHJvdG9idWZfdW5pdHRlc3Rf",
202             "cHJvdG8yLkZvcmVpZ25FbnVtEkYKFFJlcGVhdGVkTWVzc2FnZUZpZWxkGAog",
203             "AygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdl",
204             "EiQKGFJlcGVhdGVkU3RyaW5nUGllY2VGaWVsZBgLIAMoCUICCAISHQoRUmVw",
205             "ZWF0ZWRDb3JkRmllbGQYDCADKAlCAggBItwBChJUZXN0RmllbGRPcmRlcmlu",
206             "Z3MSEQoJbXlfc3RyaW5nGAsgASgJEg4KBm15X2ludBgBIAEoAxIQCghteV9m",
207             "bG9hdBhlIAEoAhJcChdvcHRpb25hbF9uZXN0ZWRfbWVzc2FnZRjIASABKAsy",
208             "Oi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJpbmdz",
209             "Lk5lc3RlZE1lc3NhZ2UaJwoNTmVzdGVkTWVzc2FnZRIKCgJvbxgCIAEoAxIK",
210             "CgJiYhgBIAEoBSoECAIQCyoECAwQZSKqAQoXVGVzdEV4dGVuc2lvbk9yZGVy",
211             "aW5nczESEQoJbXlfc3RyaW5nGAEgASgJMnwKE3Rlc3RfZXh0X29yZGVyaW5n",
212             "czESLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJp",
213             "bmdzGA0gASgLMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RFeHRl",
214             "bnNpb25PcmRlcmluZ3MxIvACChdUZXN0RXh0ZW5zaW9uT3JkZXJpbmdzMhIR",
215             "CglteV9zdHJpbmcYASABKAkawwEKF1Rlc3RFeHRlbnNpb25PcmRlcmluZ3Mz",
216             "EhEKCW15X3N0cmluZxgBIAEoCTKUAQoTdGVzdF9leHRfb3JkZXJpbmdzMxIs",
217             "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0RmllbGRPcmRlcmluZ3MY",
218             "DiABKAsySS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEV4dGVuc2lv",
219             "bk9yZGVyaW5nczIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczMyfAoTdGVzdF9l",
220             "eHRfb3JkZXJpbmdzMhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
221             "RmllbGRPcmRlcmluZ3MYDCABKAsyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
222             "bzIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczIitgcKGFRlc3RFeHRyZW1lRGVm",
223             "YXVsdFZhbHVlcxI/Cg1lc2NhcGVkX2J5dGVzGAEgASgMOihcMDAwXDAwMVww",
224             "MDdcMDEwXDAxNFxuXHJcdFwwMTNcXFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQz",
225             "MhgCIAEoDToKNDI5NDk2NzI5NRIqCgxsYXJnZV91aW50NjQYAyABKAQ6FDE4",
226             "NDQ2NzQ0MDczNzA5NTUxNjE1EiAKC3NtYWxsX2ludDMyGAQgASgFOgstMjE0",
227             "NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3",
228             "NzU4MDcSJwoScmVhbGx5X3NtYWxsX2ludDMyGBUgASgFOgstMjE0NzQ4MzY0",
229             "OBIwChJyZWFsbHlfc21hbGxfaW50NjQYFiABKAM6FC05MjIzMzcyMDM2ODU0",
230             "Nzc1ODA4EhgKC3V0Zjhfc3RyaW5nGAYgASgJOgPhiLQSFQoKemVyb19mbG9h",
231             "dBgHIAEoAjoBMBIUCglvbmVfZmxvYXQYCCABKAI6ATESGAoLc21hbGxfZmxv",
232             "YXQYCSABKAI6AzEuNRIeChJuZWdhdGl2ZV9vbmVfZmxvYXQYCiABKAI6Ai0x",
233             "EhwKDm5lZ2F0aXZlX2Zsb2F0GAsgASgCOgQtMS41EhoKC2xhcmdlX2Zsb2F0",
234             "GAwgASgCOgUyZSswOBIkChRzbWFsbF9uZWdhdGl2ZV9mbG9hdBgNIAEoAjoG",
235             "LThlLTI4EhcKCmluZl9kb3VibGUYDiABKAE6A2luZhIcCg5uZWdfaW5mX2Rv",
236             "dWJsZRgPIAEoAToELWluZhIXCgpuYW5fZG91YmxlGBAgASgBOgNuYW4SFgoJ",
237             "aW5mX2Zsb2F0GBEgASgCOgNpbmYSGwoNbmVnX2luZl9mbG9hdBgSIAEoAjoE",
238             "LWluZhIWCgluYW5fZmxvYXQYEyABKAI6A25hbhIrCgxjcHBfdHJpZ3JhcGgY",
239             "FCABKAk6FT8gPyA/PyA/PyA/Pz8gPz8vID8/LRIgChBzdHJpbmdfd2l0aF96",
240             "ZXJvGBcgASgJOgZoZWwAbG8SIgoPYnl0ZXNfd2l0aF96ZXJvGBggASgMOgl3",
241             "b3JcMDAwbGQSKAoWc3RyaW5nX3BpZWNlX3dpdGhfemVybxgZIAEoCToEYWIA",
242             "Y0ICCAISIAoOY29yZF93aXRoX3plcm8YGiABKAk6BDEyADNCAggBEiYKEnJl",
243             "cGxhY2VtZW50X3N0cmluZxgbIAEoCToKJHt1bmtub3dufSJSChFTcGFyc2VF",
244             "bnVtTWVzc2FnZRI9CgtzcGFyc2VfZW51bRgBIAEoDjIoLnByb3RvYnVmX3Vu",
245             "aXR0ZXN0X3Byb3RvMi5UZXN0U3BhcnNlRW51bSIZCglPbmVTdHJpbmcSDAoE",
246             "ZGF0YRgBIAEoCSIaCgpNb3JlU3RyaW5nEgwKBGRhdGEYASADKAkiGAoIT25l",
247             "Qnl0ZXMSDAoEZGF0YRgBIAEoDCIZCglNb3JlQnl0ZXMSDAoEZGF0YRgBIAMo",
248             "DCIcCgxJbnQzMk1lc3NhZ2USDAoEZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNz",
249             "YWdlEgwKBGRhdGEYASABKA0iHAoMSW50NjRNZXNzYWdlEgwKBGRhdGEYASAB",
250             "KAMiHQoNVWludDY0TWVzc2FnZRIMCgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNz",
251             "YWdlEgwKBGRhdGEYASABKAgi3gEKCVRlc3RPbmVvZhIRCgdmb29faW50GAEg",
252             "ASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAEj0KC2Zvb19tZXNzYWdlGAMg",
253             "ASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gA",
254             "EkAKCGZvb2dyb3VwGAQgASgKMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
255             "LlRlc3RPbmVvZi5Gb29Hcm91cEgAGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUS",
256             "CQoBYhgGIAEoCUIFCgNmb28i9QEKHFRlc3RPbmVvZkJhY2t3YXJkc0NvbXBh",
257             "dGlibGUSDwoHZm9vX2ludBgBIAEoBRISCgpmb29fc3RyaW5nGAIgASgJEjsK",
258             "C2Zvb19tZXNzYWdlGAMgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
259             "LlRlc3RBbGxUeXBlcxJRCghmb29ncm91cBgEIAEoCjI/LnByb3RvYnVmX3Vu",
260             "aXR0ZXN0X3Byb3RvMi5UZXN0T25lb2ZCYWNrd2FyZHNDb21wYXRpYmxlLkZv",
261             "b0dyb3VwGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUSCQoBYhgGIAEoCSLBBgoK",
262             "VGVzdE9uZW9mMhIRCgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgC",
263             "IAEoCUgAEhYKCGZvb19jb3JkGAMgASgJQgIIAUgAEh4KEGZvb19zdHJpbmdf",
264             "cGllY2UYBCABKAlCAggCSAASEwoJZm9vX2J5dGVzGAUgASgMSAASQwoIZm9v",
265             "X2VudW0YBiABKA4yLy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9u",
266             "ZW9mMi5OZXN0ZWRFbnVtSAASSQoLZm9vX21lc3NhZ2UYByABKAsyMi5wcm90",
267             "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdl",
268             "SAASQQoIZm9vZ3JvdXAYCCABKAoyLS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
269             "bzIuVGVzdE9uZW9mMi5Gb29Hcm91cEgAElIKEGZvb19sYXp5X21lc3NhZ2UY",
270             "CyABKAsyMi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5O",
271             "ZXN0ZWRNZXNzYWdlQgIoAUgAEhQKB2Jhcl9pbnQYDCABKAU6ATVIARIcCgpi",
272             "YXJfc3RyaW5nGA0gASgJOgZTVFJJTkdIARIcCghiYXJfY29yZBgOIAEoCToE",
273             "Q09SREICCAFIARImChBiYXJfc3RyaW5nX3BpZWNlGA8gASgJOgZTUElFQ0VC",
274             "AggCSAESGgoJYmFyX2J5dGVzGBAgASgMOgVCWVRFU0gBEkgKCGJhcl9lbnVt",
275             "GBEgASgOMi8ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RPbmVvZjIu",
276             "TmVzdGVkRW51bToDQkFSSAESDwoHYmF6X2ludBgSIAEoBRIXCgpiYXpfc3Ry",
277             "aW5nGBMgASgJOgNCQVoaIAoIRm9vR3JvdXASCQoBYRgJIAEoBRIJCgFiGAog",
278             "ASgJGjMKDU5lc3RlZE1lc3NhZ2USDwoHcXV4X2ludBgBIAEoAxIRCgljb3Jn",
279             "ZV9pbnQYAiADKAUiJwoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIH",
280             "CgNCQVoQA0IFCgNmb29CBQoDYmFyIr8BChFUZXN0UmVxdWlyZWRPbmVvZhIR",
281             "Cgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAElAKC2Zv",
282             "b19tZXNzYWdlGAMgASgLMjkucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
283             "c3RSZXF1aXJlZE9uZW9mLk5lc3RlZE1lc3NhZ2VIABooCg1OZXN0ZWRNZXNz",
284             "YWdlEhcKD3JlcXVpcmVkX2RvdWJsZRgBIAIoAUIFCgNmb28i4AEKD1Rlc3RS",
285             "ZXF1aXJlZE1hcBI/CgNmb28YASADKAsyMi5wcm90b2J1Zl91bml0dGVzdF9w",
286             "cm90bzIuVGVzdFJlcXVpcmVkTWFwLkZvb0VudHJ5GmMKCEZvb0VudHJ5EgsK",
287             "A2tleRgBIAEoBRJGCgV2YWx1ZRgCIAEoCzI3LnByb3RvYnVmX3VuaXR0ZXN0",
288             "X3Byb3RvMi5UZXN0UmVxdWlyZWRNYXAuTmVzdGVkTWVzc2FnZToCOAEaJwoN",
289             "TmVzdGVkTWVzc2FnZRIWCg5yZXF1aXJlZF9pbnQzMhgBIAIoBSKxAwoPVGVz",
290             "dFBhY2tlZFR5cGVzEhgKDHBhY2tlZF9pbnQzMhhaIAMoBUICEAESGAoMcGFj",
291             "a2VkX2ludDY0GFsgAygDQgIQARIZCg1wYWNrZWRfdWludDMyGFwgAygNQgIQ",
292             "ARIZCg1wYWNrZWRfdWludDY0GF0gAygEQgIQARIZCg1wYWNrZWRfc2ludDMy",
293             "GF4gAygRQgIQARIZCg1wYWNrZWRfc2ludDY0GF8gAygSQgIQARIaCg5wYWNr",
294             "ZWRfZml4ZWQzMhhgIAMoB0ICEAESGgoOcGFja2VkX2ZpeGVkNjQYYSADKAZC",
295             "AhABEhsKD3BhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAESGwoPcGFja2VkX3Nm",
296             "aXhlZDY0GGMgAygQQgIQARIYCgxwYWNrZWRfZmxvYXQYZCADKAJCAhABEhkK",
297             "DXBhY2tlZF9kb3VibGUYZSADKAFCAhABEhcKC3BhY2tlZF9ib29sGGYgAygI",
298             "QgIQARI+CgtwYWNrZWRfZW51bRhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0",
299             "X3Byb3RvMi5Gb3JlaWduRW51bUICEAEizwMKEVRlc3RVbnBhY2tlZFR5cGVz",
300             "EhoKDnVucGFja2VkX2ludDMyGFogAygFQgIQABIaCg51bnBhY2tlZF9pbnQ2",
301             "NBhbIAMoA0ICEAASGwoPdW5wYWNrZWRfdWludDMyGFwgAygNQgIQABIbCg91",
302             "bnBhY2tlZF91aW50NjQYXSADKARCAhAAEhsKD3VucGFja2VkX3NpbnQzMhhe",
303             "IAMoEUICEAASGwoPdW5wYWNrZWRfc2ludDY0GF8gAygSQgIQABIcChB1bnBh",
304             "Y2tlZF9maXhlZDMyGGAgAygHQgIQABIcChB1bnBhY2tlZF9maXhlZDY0GGEg",
305             "AygGQgIQABIdChF1bnBhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAASHQoRdW5w",
306             "YWNrZWRfc2ZpeGVkNjQYYyADKBBCAhAAEhoKDnVucGFja2VkX2Zsb2F0GGQg",
307             "AygCQgIQABIbCg91bnBhY2tlZF9kb3VibGUYZSADKAFCAhAAEhkKDXVucGFj",
308             "a2VkX2Jvb2wYZiADKAhCAhAAEkAKDXVucGFja2VkX2VudW0YZyADKA4yJS5w",
309             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW1CAhAAIiAKFFRl",
310             "c3RQYWNrZWRFeHRlbnNpb25zKggIARCAgICAAiIiChZUZXN0VW5wYWNrZWRF",
311             "eHRlbnNpb25zKggIARCAgICAAiK1BAoVVGVzdER5bmFtaWNFeHRlbnNpb25z",
312             "EhkKEHNjYWxhcl9leHRlbnNpb24Y0A8gASgHEj4KDmVudW1fZXh0ZW5zaW9u",
313             "GNEPIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51",
314             "bRJgChZkeW5hbWljX2VudW1fZXh0ZW5zaW9uGNIPIAEoDjI/LnByb3RvYnVm",
315             "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1p",
316             "Y0VudW1UeXBlEkQKEW1lc3NhZ2VfZXh0ZW5zaW9uGNMPIAEoCzIoLnByb3Rv",
317             "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJmChlkeW5hbWlj",
318             "X21lc3NhZ2VfZXh0ZW5zaW9uGNQPIAEoCzJCLnByb3RvYnVmX3VuaXR0ZXN0",
319             "X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1pY01lc3NhZ2VU",
320             "eXBlEhsKEnJlcGVhdGVkX2V4dGVuc2lvbhjVDyADKAkSHQoQcGFja2VkX2V4",
321             "dGVuc2lvbhjWDyADKBFCAhABGiwKEkR5bmFtaWNNZXNzYWdlVHlwZRIWCg1k",
322             "eW5hbWljX2ZpZWxkGLQQIAEoBSJHCg9EeW5hbWljRW51bVR5cGUSEAoLRFlO",
323             "QU1JQ19GT08QmBESEAoLRFlOQU1JQ19CQVIQmRESEAoLRFlOQU1JQ19CQVoQ",
324             "mhEiwAEKI1Rlc3RSZXBlYXRlZFNjYWxhckRpZmZlcmVudFRhZ1NpemVzEhgK",
325             "EHJlcGVhdGVkX2ZpeGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRfaW50MzIYDSAD",
326             "KAUSGQoQcmVwZWF0ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVwZWF0ZWRfaW50",
327             "NjQY/w8gAygDEhgKDnJlcGVhdGVkX2Zsb2F0GP7/DyADKAISGQoPcmVwZWF0",
328             "ZWRfdWludDY0GP//DyADKAQigwsKEFRlc3RQYXJzaW5nTWVyZ2USQgoScmVx",
329             "dWlyZWRfYWxsX3R5cGVzGAEgAigLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJv",
330             "dG8yLlRlc3RBbGxUeXBlcxJCChJvcHRpb25hbF9hbGxfdHlwZXMYAiABKAsy",
331             "Ji5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkIKEnJl",
332             "cGVhdGVkX2FsbF90eXBlcxgDIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3By",
333             "b3RvMi5UZXN0QWxsVHlwZXMSTwoNb3B0aW9uYWxncm91cBgKIAEoCjI4LnBy",
334             "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLk9wdGlv",
335             "bmFsR3JvdXASTwoNcmVwZWF0ZWRncm91cBgUIAMoCjI4LnByb3RvYnVmX3Vu",
336             "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkR3JvdXAa",
337             "6QQKF1JlcGVhdGVkRmllbGRzR2VuZXJhdG9yEjYKBmZpZWxkMRgBIAMoCzIm",
338             "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMSNgoGZmll",
339             "bGQyGAIgAygLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
340             "eXBlcxI2CgZmaWVsZDMYAyADKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
341             "bzIuVGVzdEFsbFR5cGVzElkKBmdyb3VwMRgKIAMoCjJJLnByb3RvYnVmX3Vu",
342             "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkRmllbGRz",
343             "R2VuZXJhdG9yLkdyb3VwMRJZCgZncm91cDIYFCADKAoySS5wcm90b2J1Zl91",
344             "bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZS5SZXBlYXRlZEZpZWxk",
345             "c0dlbmVyYXRvci5Hcm91cDISNQoEZXh0MRjoByADKAsyJi5wcm90b2J1Zl91",
346             "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEjUKBGV4dDIY6QcgAygLMiYu",
347             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpACgZHcm91",
348             "cDESNgoGZmllbGQxGAsgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
349             "LlRlc3RBbGxUeXBlcxpACgZHcm91cDISNgoGZmllbGQxGBUgASgLMiYucHJv",
350             "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpZCg1PcHRpb25h",
351             "bEdyb3VwEkgKGG9wdGlvbmFsX2dyb3VwX2FsbF90eXBlcxgLIAEoCzImLnBy",
352             "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMaWQoNUmVwZWF0",
353             "ZWRHcm91cBJIChhyZXBlYXRlZF9ncm91cF9hbGxfdHlwZXMYFSABKAsyJi5w",
354             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzKgkI6AcQgICA",
355             "gAIyaQoMb3B0aW9uYWxfZXh0EioucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
356             "LlRlc3RQYXJzaW5nTWVyZ2UY6AcgASgLMiYucHJvdG9idWZfdW5pdHRlc3Rf",
357             "cHJvdG8yLlRlc3RBbGxUeXBlczJpCgxyZXBlYXRlZF9leHQSKi5wcm90b2J1",
358             "Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZRjpByADKAsyJi5w",
359             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzIkQKG1Rlc3RD",
360             "b21tZW50SW5qZWN0aW9uTWVzc2FnZRIlCgFhGAEgASgJOhoqLyA8LSBOZWl0",
361             "aGVyIHNob3VsZCB0aGlzLiIMCgpGb29SZXF1ZXN0Ig0KC0Zvb1Jlc3BvbnNl",
362             "IhIKEEZvb0NsaWVudE1lc3NhZ2UiEgoQRm9vU2VydmVyTWVzc2FnZSIMCgpC",
363             "YXJSZXF1ZXN0Ig0KC0JhclJlc3BvbnNlIpIBCgxUZXN0SnNvbk5hbWUSEwoL",
364             "ZmllbGRfbmFtZTEYASABKAUSEgoKZmllbGROYW1lMhgCIAEoBRISCgpGaWVs",
365             "ZE5hbWUzGAMgASgFEhQKDF9maWVsZF9uYW1lNBgEIAEoBRITCgtGSUVMRF9O",
366             "QU1FNRgFIAEoBRIaCgtmaWVsZF9uYW1lNhgGIAEoBVIFQHR5cGUioAYKFFRl",
367             "c3RIdWdlRmllbGROdW1iZXJzEhoKDm9wdGlvbmFsX2ludDMyGPD4//8BIAEo",
368             "BRIUCghmaXhlZF8zMhjx+P//ASABKAUSHgoOcmVwZWF0ZWRfaW50MzIY8vj/",
369             "/wEgAygFQgIQABIcCgxwYWNrZWRfaW50MzIY8/j//wEgAygFQgIQARJACg1v",
370             "cHRpb25hbF9lbnVtGPT4//8BIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
371             "b3RvMi5Gb3JlaWduRW51bRIbCg9vcHRpb25hbF9zdHJpbmcY9fj//wEgASgJ",
372             "EhoKDm9wdGlvbmFsX2J5dGVzGPb4//8BIAEoDBJGChBvcHRpb25hbF9tZXNz",
373             "YWdlGPf4//8BIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
374             "aWduTWVzc2FnZRJXCg1vcHRpb25hbGdyb3VwGPj4//8BIAEoCjI8LnByb3Rv",
375             "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5PcHRp",
376             "b25hbEdyb3VwEmIKEXN0cmluZ19zdHJpbmdfbWFwGPr4//8BIAMoCzJDLnBy",
377             "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5T",
378             "dHJpbmdTdHJpbmdNYXBFbnRyeRIaCgxvbmVvZl91aW50MzIY+/j//wEgASgN",
379             "SAASSgoUb25lb2ZfdGVzdF9hbGxfdHlwZXMY/Pj//wEgASgLMiYucHJvdG9i",
380             "dWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gAEhoKDG9uZW9mX3N0",
381             "cmluZxj9+P//ASABKAlIABIZCgtvbmVvZl9ieXRlcxj++P//ASABKAxIABok",
382             "Cg1PcHRpb25hbEdyb3VwEhMKB2dyb3VwX2EY+fj//wEgASgFGjYKFFN0cmlu",
383             "Z1N0cmluZ01hcEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToC",
384             "OAEqDAjgqv//ARDw+P//AUINCgtvbmVvZl9maWVsZCKxAQoYVGVzdEV4dGVu",
385             "c2lvbkluc2lkZVRhYmxlEg4KBmZpZWxkMRgBIAEoBRIOCgZmaWVsZDIYAiAB",
386             "KAUSDgoGZmllbGQzGAMgASgFEg4KBmZpZWxkNBgEIAEoBRIOCgZmaWVsZDYY",
387             "BiABKAUSDgoGZmllbGQ3GAcgASgFEg4KBmZpZWxkOBgIIAEoBRIOCgZmaWVs",
388             "ZDkYCSABKAUSDwoHZmllbGQxMBgKIAEoBSoECAUQBipACgtGb3JlaWduRW51",
389             "bRIPCgtGT1JFSUdOX0ZPTxAEEg8KC0ZPUkVJR05fQkFSEAUSDwoLRk9SRUlH",
390             "Tl9CQVoQBipLChRUZXN0RW51bVdpdGhEdXBWYWx1ZRIICgRGT08xEAESCAoE",
391             "QkFSMRACEgcKA0JBWhADEggKBEZPTzIQARIICgRCQVIyEAIaAhABKokBCg5U",
392             "ZXN0U3BhcnNlRW51bRIMCghTUEFSU0VfQRB7Eg4KCFNQQVJTRV9CEKbnAxIP",
393             "CghTUEFSU0VfQxCysYAGEhUKCFNQQVJTRV9EEPH//////////wESFQoIU1BB",
394             "UlNFX0UQtN78////////ARIMCghTUEFSU0VfRhAAEgwKCFNQQVJTRV9HEAIq",
395             "iw8KDVZlcnlMYXJnZUVudW0SFgoSRU5VTV9MQUJFTF9ERUZBVUxUEAASEAoM",
396             "RU5VTV9MQUJFTF8xEAESEAoMRU5VTV9MQUJFTF8yEAISEAoMRU5VTV9MQUJF",
397             "TF8zEAMSEAoMRU5VTV9MQUJFTF80EAQSEAoMRU5VTV9MQUJFTF81EAUSEAoM",
398             "RU5VTV9MQUJFTF82EAYSEAoMRU5VTV9MQUJFTF83EAcSEAoMRU5VTV9MQUJF",
399             "TF84EAgSEAoMRU5VTV9MQUJFTF85EAkSEQoNRU5VTV9MQUJFTF8xMBAKEhEK",
400             "DUVOVU1fTEFCRUxfMTEQCxIRCg1FTlVNX0xBQkVMXzEyEAwSEQoNRU5VTV9M",
401             "QUJFTF8xMxANEhEKDUVOVU1fTEFCRUxfMTQQDhIRCg1FTlVNX0xBQkVMXzE1",
402             "EA8SEQoNRU5VTV9MQUJFTF8xNhAQEhEKDUVOVU1fTEFCRUxfMTcQERIRCg1F",
403             "TlVNX0xBQkVMXzE4EBISEQoNRU5VTV9MQUJFTF8xORATEhEKDUVOVU1fTEFC",
404             "RUxfMjAQFBIRCg1FTlVNX0xBQkVMXzIxEBUSEQoNRU5VTV9MQUJFTF8yMhAW",
405             "EhEKDUVOVU1fTEFCRUxfMjMQFxIRCg1FTlVNX0xBQkVMXzI0EBgSEQoNRU5V",
406             "TV9MQUJFTF8yNRAZEhEKDUVOVU1fTEFCRUxfMjYQGhIRCg1FTlVNX0xBQkVM",
407             "XzI3EBsSEQoNRU5VTV9MQUJFTF8yOBAcEhEKDUVOVU1fTEFCRUxfMjkQHRIR",
408             "Cg1FTlVNX0xBQkVMXzMwEB4SEQoNRU5VTV9MQUJFTF8zMRAfEhEKDUVOVU1f",
409             "TEFCRUxfMzIQIBIRCg1FTlVNX0xBQkVMXzMzECESEQoNRU5VTV9MQUJFTF8z",
410             "NBAiEhEKDUVOVU1fTEFCRUxfMzUQIxIRCg1FTlVNX0xBQkVMXzM2ECQSEQoN",
411             "RU5VTV9MQUJFTF8zNxAlEhEKDUVOVU1fTEFCRUxfMzgQJhIRCg1FTlVNX0xB",
412             "QkVMXzM5ECcSEQoNRU5VTV9MQUJFTF80MBAoEhEKDUVOVU1fTEFCRUxfNDEQ",
413             "KRIRCg1FTlVNX0xBQkVMXzQyECoSEQoNRU5VTV9MQUJFTF80MxArEhEKDUVO",
414             "VU1fTEFCRUxfNDQQLBIRCg1FTlVNX0xBQkVMXzQ1EC0SEQoNRU5VTV9MQUJF",
415             "TF80NhAuEhEKDUVOVU1fTEFCRUxfNDcQLxIRCg1FTlVNX0xBQkVMXzQ4EDAS",
416             "EQoNRU5VTV9MQUJFTF80ORAxEhEKDUVOVU1fTEFCRUxfNTAQMhIRCg1FTlVN",
417             "X0xBQkVMXzUxEDMSEQoNRU5VTV9MQUJFTF81MhA0EhEKDUVOVU1fTEFCRUxf",
418             "NTMQNRIRCg1FTlVNX0xBQkVMXzU0EDYSEQoNRU5VTV9MQUJFTF81NRA3EhEK",
419             "DUVOVU1fTEFCRUxfNTYQOBIRCg1FTlVNX0xBQkVMXzU3EDkSEQoNRU5VTV9M",
420             "QUJFTF81OBA6EhEKDUVOVU1fTEFCRUxfNTkQOxIRCg1FTlVNX0xBQkVMXzYw",
421             "EDwSEQoNRU5VTV9MQUJFTF82MRA9EhEKDUVOVU1fTEFCRUxfNjIQPhIRCg1F",
422             "TlVNX0xBQkVMXzYzED8SEQoNRU5VTV9MQUJFTF82NBBAEhEKDUVOVU1fTEFC",
423             "RUxfNjUQQRIRCg1FTlVNX0xBQkVMXzY2EEISEQoNRU5VTV9MQUJFTF82NxBD",
424             "EhEKDUVOVU1fTEFCRUxfNjgQRBIRCg1FTlVNX0xBQkVMXzY5EEUSEQoNRU5V",
425             "TV9MQUJFTF83MBBGEhEKDUVOVU1fTEFCRUxfNzEQRxIRCg1FTlVNX0xBQkVM",
426             "XzcyEEgSEQoNRU5VTV9MQUJFTF83MxBJEhEKDUVOVU1fTEFCRUxfNzQQShIR",
427             "Cg1FTlVNX0xBQkVMXzc1EEsSEQoNRU5VTV9MQUJFTF83NhBMEhEKDUVOVU1f",
428             "TEFCRUxfNzcQTRIRCg1FTlVNX0xBQkVMXzc4EE4SEQoNRU5VTV9MQUJFTF83",
429             "ORBPEhEKDUVOVU1fTEFCRUxfODAQUBIRCg1FTlVNX0xBQkVMXzgxEFESEQoN",
430             "RU5VTV9MQUJFTF84MhBSEhEKDUVOVU1fTEFCRUxfODMQUxIRCg1FTlVNX0xB",
431             "QkVMXzg0EFQSEQoNRU5VTV9MQUJFTF84NRBVEhEKDUVOVU1fTEFCRUxfODYQ",
432             "VhIRCg1FTlVNX0xBQkVMXzg3EFcSEQoNRU5VTV9MQUJFTF84OBBYEhEKDUVO",
433             "VU1fTEFCRUxfODkQWRIRCg1FTlVNX0xBQkVMXzkwEFoSEQoNRU5VTV9MQUJF",
434             "TF85MRBbEhEKDUVOVU1fTEFCRUxfOTIQXBIRCg1FTlVNX0xBQkVMXzkzEF0S",
435             "EQoNRU5VTV9MQUJFTF85NBBeEhEKDUVOVU1fTEFCRUxfOTUQXxIRCg1FTlVN",
436             "X0xBQkVMXzk2EGASEQoNRU5VTV9MQUJFTF85NxBhEhEKDUVOVU1fTEFCRUxf",
437             "OTgQYhIRCg1FTlVNX0xBQkVMXzk5EGMSEgoORU5VTV9MQUJFTF8xMDAQZDK1",
438             "AQoLVGVzdFNlcnZpY2USUgoDRm9vEiQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
439             "dG8yLkZvb1JlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9v",
440             "UmVzcG9uc2USUgoDQmFyEiQucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkJh",
441             "clJlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuQmFyUmVzcG9u",
442             "c2U6TQoYb3B0aW9uYWxfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5p",
443             "dHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAEgASgFOk0KGG9wdGlv",
444             "bmFsX2ludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
445             "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgCIAEoAzpOChlvcHRpb25hbF91aW50MzJf",
446             "ZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxF",
447             "eHRlbnNpb25zGAMgASgNOk4KGW9wdGlvbmFsX3VpbnQ2NF9leHRlbnNpb24S",
448             "Ky5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMY",
449             "BCABKAQ6TgoZb3B0aW9uYWxfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
450             "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgFIAEoETpOChlv",
451             "cHRpb25hbF9zaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
452             "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAYgASgSOk8KGm9wdGlvbmFsX2Zp",
453             "eGVkMzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
454             "c3RBbGxFeHRlbnNpb25zGAcgASgHOk8KGm9wdGlvbmFsX2ZpeGVkNjRfZXh0",
455             "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
456             "bnNpb25zGAggASgGOlAKG29wdGlvbmFsX3NmaXhlZDMyX2V4dGVuc2lvbhIr",
457             "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgJ",
458             "IAEoDzpQChtvcHRpb25hbF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
459             "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYCiABKBA6TQoY",
460             "b3B0aW9uYWxfZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
461             "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAsgASgCOk4KGW9wdGlvbmFsX2Rv",
462             "dWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
463             "dEFsbEV4dGVuc2lvbnMYDCABKAE6TAoXb3B0aW9uYWxfYm9vbF9leHRlbnNp",
464             "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
465             "bnMYDSABKAg6TgoZb3B0aW9uYWxfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3Rv",
466             "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgOIAEoCTpN",
467             "ChhvcHRpb25hbF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
468             "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYDyABKAw6fwoXb3B0aW9uYWxn",
469             "cm91cF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
470             "dEFsbEV4dGVuc2lvbnMYECABKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
471             "bzIuT3B0aW9uYWxHcm91cF9leHRlbnNpb246jAEKIW9wdGlvbmFsX25lc3Rl",
472             "ZF9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
473             "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgSIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
474             "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoib3B0aW9u",
475             "YWxfZm9yZWlnbl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
476             "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgTIAEoCzIoLnByb3RvYnVm",
477             "X3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohb3B0aW9uYWxf",
478             "aW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
479             "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBQgASgLMi4ucHJvdG9idWZfdW5p",
480             "dHRlc3RfaW1wb3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5vcHRpb25h",
481             "bF9uZXN0ZWRfZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9w",
482             "cm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYFSABKA4yMS5wcm90b2J1Zl91bml0",
483             "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofb3B0aW9u",
484             "YWxfZm9yZWlnbl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
485             "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgWIAEoDjIlLnByb3RvYnVmX3Vu",
486             "aXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bTqAAQoeb3B0aW9uYWxfaW1wb3J0",
487             "X2VudW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
488             "c3RBbGxFeHRlbnNpb25zGBcgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1w",
489             "b3J0X3Byb3RvMi5JbXBvcnRFbnVtOlgKH29wdGlvbmFsX3N0cmluZ19waWVj",
490             "ZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
491             "bEV4dGVuc2lvbnMYGCABKAlCAggCOlAKF29wdGlvbmFsX2NvcmRfZXh0ZW5z",
492             "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
493             "b25zGBkgASgJQgIIATqTAQoob3B0aW9uYWxfcHVibGljX2ltcG9ydF9tZXNz",
494             "YWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
495             "QWxsRXh0ZW5zaW9ucxgaIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9y",
496             "dF9wcm90bzIuUHVibGljSW1wb3J0TWVzc2FnZTqOAQofb3B0aW9uYWxfbGF6",
497             "eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
498             "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgbIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
499             "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZUICKAE6TQoYcmVw",
500             "ZWF0ZWRfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJv",
501             "dG8yLlRlc3RBbGxFeHRlbnNpb25zGB8gAygFOk0KGHJlcGVhdGVkX2ludDY0",
502             "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
503             "RXh0ZW5zaW9ucxggIAMoAzpOChlyZXBlYXRlZF91aW50MzJfZXh0ZW5zaW9u",
504             "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
505             "GCEgAygNOk4KGXJlcGVhdGVkX3VpbnQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
506             "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYIiADKAQ6TgoZ",
507             "cmVwZWF0ZWRfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
508             "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgjIAMoETpOChlyZXBlYXRlZF9z",
509             "aW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
510             "c3RBbGxFeHRlbnNpb25zGCQgAygSOk8KGnJlcGVhdGVkX2ZpeGVkMzJfZXh0",
511             "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
512             "bnNpb25zGCUgAygHOk8KGnJlcGVhdGVkX2ZpeGVkNjRfZXh0ZW5zaW9uEisu",
513             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGCYg",
514             "AygGOlAKG3JlcGVhdGVkX3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
515             "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgnIAMoDzpQChty",
516             "ZXBlYXRlZF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
517             "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKCADKBA6TQoYcmVwZWF0ZWRf",
518             "ZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
519             "c3RBbGxFeHRlbnNpb25zGCkgAygCOk4KGXJlcGVhdGVkX2RvdWJsZV9leHRl",
520             "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
521             "c2lvbnMYKiADKAE6TAoXcmVwZWF0ZWRfYm9vbF9leHRlbnNpb24SKy5wcm90",
522             "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKyADKAg6",
523             "TgoZcmVwZWF0ZWRfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
524             "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgsIAMoCTpNChhyZXBlYXRl",
525             "ZF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
526             "VGVzdEFsbEV4dGVuc2lvbnMYLSADKAw6fwoXcmVwZWF0ZWRncm91cF9leHRl",
527             "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
528             "c2lvbnMYLiADKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuUmVwZWF0",
529             "ZWRHcm91cF9leHRlbnNpb246jAEKIXJlcGVhdGVkX25lc3RlZF9tZXNzYWdl",
530             "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
531             "RXh0ZW5zaW9ucxgwIAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
532             "ZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoicmVwZWF0ZWRfZm9yZWln",
533             "bl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
534             "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
535             "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohcmVwZWF0ZWRfaW1wb3J0X21l",
536             "c3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
537             "c3RBbGxFeHRlbnNpb25zGDIgAygLMi4ucHJvdG9idWZfdW5pdHRlc3RfaW1w",
538             "b3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5yZXBlYXRlZF9uZXN0ZWRf",
539             "ZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
540             "dEFsbEV4dGVuc2lvbnMYMyADKA4yMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
541             "bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofcmVwZWF0ZWRfZm9yZWln",
542             "bl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
543             "ZXN0QWxsRXh0ZW5zaW9ucxg0IAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
544             "b3RvMi5Gb3JlaWduRW51bTqAAQoecmVwZWF0ZWRfaW1wb3J0X2VudW1fZXh0",
545             "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
546             "bnNpb25zGDUgAygOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3Rv",
547             "Mi5JbXBvcnRFbnVtOlgKH3JlcGVhdGVkX3N0cmluZ19waWVjZV9leHRlbnNp",
548             "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
549             "bnMYNiADKAlCAggCOlAKF3JlcGVhdGVkX2NvcmRfZXh0ZW5zaW9uEisucHJv",
550             "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGDcgAygJ",
551             "QgIIATqOAQofcmVwZWF0ZWRfbGF6eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnBy",
552             "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxg5IAMo",
553             "CzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVz",
554             "dGVkTWVzc2FnZUICKAE6UAoXZGVmYXVsdF9pbnQzMl9leHRlbnNpb24SKy5w",
555             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPSAB",
556             "KAU6AjQxOlAKF2RlZmF1bHRfaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZf",
557             "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGD4gASgDOgI0MjpR",
558             "ChhkZWZhdWx0X3VpbnQzMl9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
559             "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPyABKA06AjQzOlEKGGRlZmF1",
560             "bHRfdWludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
561             "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhAIAEoBDoCNDQ6UgoYZGVmYXVsdF9zaW50",
562             "MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
563             "bGxFeHRlbnNpb25zGEEgASgROgMtNDU6UQoYZGVmYXVsdF9zaW50NjRfZXh0",
564             "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
565             "bnNpb25zGEIgASgSOgI0NjpSChlkZWZhdWx0X2ZpeGVkMzJfZXh0ZW5zaW9u",
566             "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
567             "GEMgASgHOgI0NzpSChlkZWZhdWx0X2ZpeGVkNjRfZXh0ZW5zaW9uEisucHJv",
568             "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGEQgASgG",
569             "OgI0ODpTChpkZWZhdWx0X3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
570             "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhFIAEoDzoCNDk6",
571             "VAoaZGVmYXVsdF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0",
572             "dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYRiABKBA6Ay01MDpSChdk",
573             "ZWZhdWx0X2Zsb2F0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By",
574             "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhHIAEoAjoENTEuNTpUChhkZWZhdWx0",
575             "X2RvdWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
576             "VGVzdEFsbEV4dGVuc2lvbnMYSCABKAE6BTUyMDAwOlEKFmRlZmF1bHRfYm9v",
577             "bF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
578             "bEV4dGVuc2lvbnMYSSABKAg6BHRydWU6VAoYZGVmYXVsdF9zdHJpbmdfZXh0",
579             "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
580             "bnNpb25zGEogASgJOgVoZWxsbzpTChdkZWZhdWx0X2J5dGVzX2V4dGVuc2lv",
581             "bhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9u",
582             "cxhLIAEoDDoFd29ybGQ6igEKHWRlZmF1bHRfbmVzdGVkX2VudW1fZXh0ZW5z",
583             "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
584             "b25zGFEgASgOMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
585             "eXBlcy5OZXN0ZWRFbnVtOgNCQVI6hwEKHmRlZmF1bHRfZm9yZWlnbl9lbnVt",
586             "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
587             "RXh0ZW5zaW9ucxhSIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5G",
588             "b3JlaWduRW51bToLRk9SRUlHTl9CQVI6iwEKHWRlZmF1bHRfaW1wb3J0X2Vu",
589             "dW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
590             "bGxFeHRlbnNpb25zGFMgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0",
591             "X3Byb3RvMi5JbXBvcnRFbnVtOgpJTVBPUlRfQkFSOlwKHmRlZmF1bHRfc3Ry",
592             "aW5nX3BpZWNlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
593             "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhUIAEoCToDYWJjQgIIAjpUChZkZWZhdWx0",
594             "X2NvcmRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
595             "c3RBbGxFeHRlbnNpb25zGFUgASgJOgMxMjNCAggBOksKFm9uZW9mX3VpbnQz",
596             "Ml9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
597             "bEV4dGVuc2lvbnMYbyABKA06iQEKHm9uZW9mX25lc3RlZF9tZXNzYWdlX2V4",
598             "dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0",
599             "ZW5zaW9ucxhwIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
600             "QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTpLChZvbmVvZl9zdHJpbmdfZXh0ZW5z",
601             "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
602             "b25zGHEgASgJOkoKFW9uZW9mX2J5dGVzX2V4dGVuc2lvbhIrLnByb3RvYnVm",
603             "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhyIAEoDDpJChNt",
604             "eV9leHRlbnNpb25fc3RyaW5nEiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
605             "LlRlc3RGaWVsZE9yZGVyaW5ncxgyIAEoCTpGChBteV9leHRlbnNpb25faW50",
606             "EiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RGaWVsZE9yZGVyaW5n",
607             "cxgFIAEoBTpSChZwYWNrZWRfaW50MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZf",
608             "dW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFogAygFQgIQ",
609             "ATpSChZwYWNrZWRfaW50NjRfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
610             "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFsgAygDQgIQATpTChdw",
611             "YWNrZWRfdWludDMyX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3By",
612             "b3RvMi5UZXN0UGFja2VkRXh0ZW5zaW9ucxhcIAMoDUICEAE6UwoXcGFja2Vk",
613             "X3VpbnQ2NF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
614             "VGVzdFBhY2tlZEV4dGVuc2lvbnMYXSADKARCAhABOlMKF3BhY2tlZF9zaW50",
615             "MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQ",
616             "YWNrZWRFeHRlbnNpb25zGF4gAygRQgIQATpTChdwYWNrZWRfc2ludDY0X2V4",
617             "dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFja2Vk",
618             "RXh0ZW5zaW9ucxhfIAMoEkICEAE6VAoYcGFja2VkX2ZpeGVkMzJfZXh0ZW5z",
619             "aW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRl",
620             "bnNpb25zGGAgAygHQgIQATpUChhwYWNrZWRfZml4ZWQ2NF9leHRlbnNpb24S",
621             "Li5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lv",
622             "bnMYYSADKAZCAhABOlUKGXBhY2tlZF9zZml4ZWQzMl9leHRlbnNpb24SLi5w",
623             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMY",
624             "YiADKA9CAhABOlUKGXBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24SLi5wcm90",
625             "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYYyAD",
626             "KBBCAhABOlIKFnBhY2tlZF9mbG9hdF9leHRlbnNpb24SLi5wcm90b2J1Zl91",
627             "bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZCADKAJCAhAB",
628             "OlMKF3BhY2tlZF9kb3VibGVfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
629             "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGGUgAygBQgIQATpRChVw",
630             "YWNrZWRfYm9vbF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
631             "bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZiADKAhCAhABOngKFXBhY2tlZF9l",
632             "bnVtX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
633             "UGFja2VkRXh0ZW5zaW9ucxhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
634             "b3RvMi5Gb3JlaWduRW51bUICEAE6VgoYdW5wYWNrZWRfaW50MzJfZXh0ZW5z",
635             "aW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4",
636             "dGVuc2lvbnMYWiADKAVCAhAAOlYKGHVucGFja2VkX2ludDY0X2V4dGVuc2lv",
637             "bhIwLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRl",
638             "bnNpb25zGFsgAygDQgIQADpXChl1bnBhY2tlZF91aW50MzJfZXh0ZW5zaW9u",
639             "EjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVu",
640             "c2lvbnMYXCADKA1CAhAAOlcKGXVucGFja2VkX3VpbnQ2NF9leHRlbnNpb24S",
641             "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
642             "aW9ucxhdIAMoBEICEAA6VwoZdW5wYWNrZWRfc2ludDMyX2V4dGVuc2lvbhIw",
643             "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
644             "b25zGF4gAygRQgIQADpXChl1bnBhY2tlZF9zaW50NjRfZXh0ZW5zaW9uEjAu",
645             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
646             "bnMYXyADKBJCAhAAOlgKGnVucGFja2VkX2ZpeGVkMzJfZXh0ZW5zaW9uEjAu",
647             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
648             "bnMYYCADKAdCAhAAOlgKGnVucGFja2VkX2ZpeGVkNjRfZXh0ZW5zaW9uEjAu",
649             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
650             "bnMYYSADKAZCAhAAOlkKG3VucGFja2VkX3NmaXhlZDMyX2V4dGVuc2lvbhIw",
651             "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
652             "b25zGGIgAygPQgIQADpZCht1bnBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24S",
653             "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
654             "aW9ucxhjIAMoEEICEAA6VgoYdW5wYWNrZWRfZmxvYXRfZXh0ZW5zaW9uEjAu",
655             "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
656             "bnMYZCADKAJCAhAAOlcKGXVucGFja2VkX2RvdWJsZV9leHRlbnNpb24SMC5w",
657             "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9u",
658             "cxhlIAMoAUICEAA6VQoXdW5wYWNrZWRfYm9vbF9leHRlbnNpb24SMC5wcm90",
659             "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhm",
660             "IAMoCEICEAA6fAoXdW5wYWNrZWRfZW51bV9leHRlbnNpb24SMC5wcm90b2J1",
661             "Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhnIAMo",
662             "DjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bUICEAA6",
663             "cgoOdGVzdF9hbGxfdHlwZXMSLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
664             "VGVzdEh1Z2VGaWVsZE51bWJlcnMY4Kr//wEgASgLMiYucHJvdG9idWZfdW5p",
665             "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlczphCiV0ZXN0X2V4dGVuc2lvbl9p",
666             "bnNpZGVfdGFibGVfZXh0ZW5zaW9uEjIucHJvdG9idWZfdW5pdHRlc3RfcHJv",
667             "dG8yLlRlc3RFeHRlbnNpb25JbnNpZGVUYWJsZRgFIAEoBUIySAGAAQGIAQGQ",
668             "AQH4AQGqAiFHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvcy5Qcm90bzI="));
669       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
670           new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Proto2.UnittestImportReflection.Descriptor, },
671           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.Proto2.TestEnumWithDupValue), typeof(global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum), typeof(global::Google.Protobuf.TestProtos.Proto2.VeryLargeEnum), }, new pb::Extension[] { UnittestExtensions.OptionalInt32Extension, UnittestExtensions.OptionalInt64Extension, UnittestExtensions.OptionalUint32Extension, UnittestExtensions.OptionalUint64Extension, UnittestExtensions.OptionalSint32Extension, UnittestExtensions.OptionalSint64Extension, UnittestExtensions.OptionalFixed32Extension, UnittestExtensions.OptionalFixed64Extension, UnittestExtensions.OptionalSfixed32Extension, UnittestExtensions.OptionalSfixed64Extension, UnittestExtensions.OptionalFloatExtension, UnittestExtensions.OptionalDoubleExtension, UnittestExtensions.OptionalBoolExtension, UnittestExtensions.OptionalStringExtension, UnittestExtensions.OptionalBytesExtension, UnittestExtensions.OptionalGroupExtension, UnittestExtensions.OptionalNestedMessageExtension, UnittestExtensions.OptionalForeignMessageExtension, UnittestExtensions.OptionalImportMessageExtension, UnittestExtensions.OptionalNestedEnumExtension, UnittestExtensions.OptionalForeignEnumExtension, UnittestExtensions.OptionalImportEnumExtension, UnittestExtensions.OptionalStringPieceExtension, UnittestExtensions.OptionalCordExtension, UnittestExtensions.OptionalPublicImportMessageExtension, UnittestExtensions.OptionalLazyMessageExtension, UnittestExtensions.RepeatedInt32Extension, UnittestExtensions.RepeatedInt64Extension, UnittestExtensions.RepeatedUint32Extension, UnittestExtensions.RepeatedUint64Extension, UnittestExtensions.RepeatedSint32Extension, UnittestExtensions.RepeatedSint64Extension, UnittestExtensions.RepeatedFixed32Extension, UnittestExtensions.RepeatedFixed64Extension, UnittestExtensions.RepeatedSfixed32Extension, UnittestExtensions.RepeatedSfixed64Extension, UnittestExtensions.RepeatedFloatExtension, UnittestExtensions.RepeatedDoubleExtension, UnittestExtensions.RepeatedBoolExtension, UnittestExtensions.RepeatedStringExtension, UnittestExtensions.RepeatedBytesExtension, UnittestExtensions.RepeatedGroupExtension, UnittestExtensions.RepeatedNestedMessageExtension, UnittestExtensions.RepeatedForeignMessageExtension, UnittestExtensions.RepeatedImportMessageExtension, UnittestExtensions.RepeatedNestedEnumExtension, UnittestExtensions.RepeatedForeignEnumExtension, UnittestExtensions.RepeatedImportEnumExtension, UnittestExtensions.RepeatedStringPieceExtension, UnittestExtensions.RepeatedCordExtension, UnittestExtensions.RepeatedLazyMessageExtension, UnittestExtensions.DefaultInt32Extension, UnittestExtensions.DefaultInt64Extension, UnittestExtensions.DefaultUint32Extension, UnittestExtensions.DefaultUint64Extension, UnittestExtensions.DefaultSint32Extension, UnittestExtensions.DefaultSint64Extension, UnittestExtensions.DefaultFixed32Extension, UnittestExtensions.DefaultFixed64Extension, UnittestExtensions.DefaultSfixed32Extension, UnittestExtensions.DefaultSfixed64Extension, UnittestExtensions.DefaultFloatExtension, UnittestExtensions.DefaultDoubleExtension, UnittestExtensions.DefaultBoolExtension, UnittestExtensions.DefaultStringExtension, UnittestExtensions.DefaultBytesExtension, UnittestExtensions.DefaultNestedEnumExtension, UnittestExtensions.DefaultForeignEnumExtension, UnittestExtensions.DefaultImportEnumExtension, UnittestExtensions.DefaultStringPieceExtension, UnittestExtensions.DefaultCordExtension, UnittestExtensions.OneofUint32Extension, UnittestExtensions.OneofNestedMessageExtension, UnittestExtensions.OneofStringExtension, UnittestExtensions.OneofBytesExtension, UnittestExtensions.MyExtensionString, UnittestExtensions.MyExtensionInt, UnittestExtensions.PackedInt32Extension, UnittestExtensions.PackedInt64Extension, UnittestExtensions.PackedUint32Extension, UnittestExtensions.PackedUint64Extension, UnittestExtensions.PackedSint32Extension, UnittestExtensions.PackedSint64Extension, UnittestExtensions.PackedFixed32Extension, UnittestExtensions.PackedFixed64Extension, UnittestExtensions.PackedSfixed32Extension, UnittestExtensions.PackedSfixed64Extension, UnittestExtensions.PackedFloatExtension, UnittestExtensions.PackedDoubleExtension, UnittestExtensions.PackedBoolExtension, UnittestExtensions.PackedEnumExtension, UnittestExtensions.UnpackedInt32Extension, UnittestExtensions.UnpackedInt64Extension, UnittestExtensions.UnpackedUint32Extension, UnittestExtensions.UnpackedUint64Extension, UnittestExtensions.UnpackedSint32Extension, UnittestExtensions.UnpackedSint64Extension, UnittestExtensions.UnpackedFixed32Extension, UnittestExtensions.UnpackedFixed64Extension, UnittestExtensions.UnpackedSfixed32Extension, UnittestExtensions.UnpackedSfixed64Extension, UnittestExtensions.UnpackedFloatExtension, UnittestExtensions.UnpackedDoubleExtension, UnittestExtensions.UnpackedBoolExtension, UnittestExtensions.UnpackedEnumExtension, UnittestExtensions.TestAllTypes, UnittestExtensions.TestExtensionInsideTableExtension }, new pbr::GeneratedClrTypeInfo[] {
672             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "OptionalPublicImportMessage", "OptionalLazyMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "RepeatedLazyMessage", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null, null),
673             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null),
674             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser, new[]{ "A" }, null, null, null, null)}),
675             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes), global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser, new[]{ "Child", "Payload", "RepeatedChild" }, null, null, null, null),
676             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedFields), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedFields.Parser, new[]{ "DeprecatedInt32", "DeprecatedInt32InOneof" }, new[]{ "OneofFields" }, null, null, null),
677             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage.Parser, null, null, null, null, null),
678             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignMessage), global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser, new[]{ "C", "D" }, null, null, null, null),
679             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReservedFields), global::Google.Protobuf.TestProtos.Proto2.TestReservedFields.Parser, null, null, null, null, null),
680             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions), global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions.Parser, null, null, null, null, null),
681             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension), global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension.Parser, new[]{ "A" }, null, null, null, null),
682             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension), global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension.Parser, new[]{ "A" }, null, null, null, null),
683             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroup), global::Google.Protobuf.TestProtos.Proto2.TestGroup.Parser, new[]{ "OptionalGroup", "OptionalForeignEnum" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null)}),
684             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension), global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension.Parser, null, null, null, null, null),
685             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension), global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Parser, null, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.Test, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.NestedStringExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.OptionalGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.OptionalForeignEnumExtension }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension), global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension.Parser, new[]{ "A" }, null, null, null, null)}),
686             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequired), global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser, new[]{ "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestRequired.Extensions.Single, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Extensions.Multi }, null),
687             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredForeign), global::Google.Protobuf.TestProtos.Proto2.TestRequiredForeign.Parser, new[]{ "OptionalMessage", "RepeatedMessage", "Dummy" }, null, null, null, null),
688             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMessage.Parser, new[]{ "OptionalMessage", "RepeatedMessage", "RequiredMessage" }, null, null, null, null),
689             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestForeignNested), global::Google.Protobuf.TestProtos.Proto2.TestForeignNested.Parser, new[]{ "ForeignNested" }, null, null, null, null),
690             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage.Parser, null, null, null, null, null),
691             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions.Parser, null, null, null, null, null),
692             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges), global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges.Parser, null, null, null, null, null),
693             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null, null),
694             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage), global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage.Parser, new[]{ "A", "I" }, null, null, null, null),
695             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Parser, new[]{ "Bb", "SubGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage.Parser, new[]{ "B" }, null, null, null, null),
696             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup.Parser, new[]{ "SubMessage", "NotInThisScc" }, null, null, null, null)}),
697             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null, null),
698             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Parser, new[]{ "SubMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Parser, new[]{ "SubGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup.Parser, new[]{ "I" }, null, null, null, null)})}),
699             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Parser, new[]{ "A", "Foo", "Bar" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo.Parser, new[]{ "A" }, null, null, null, null),
700             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar.Parser, new[]{ "A" }, null, null, null, null)}),
701             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage), global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
702             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage), global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
703             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits), global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Parser, new[]{ "OptionalNestedMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage.Parser, new[]{ "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage" }, null, null, null, null)}),
704             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCamelCaseFieldNames), global::Google.Protobuf.TestProtos.Proto2.TestCamelCaseFieldNames.Parser, new[]{ "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField" }, null, null, null, null),
705             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings), global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Parser, new[]{ "MyString", "MyInt", "MyFloat", "OptionalNestedMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage.Parser, new[]{ "Oo", "Bb" }, null, null, null, null)}),
706             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Extensions.TestExtOrderings1 }, null),
707             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Extensions.TestExtOrderings2 }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Extensions.TestExtOrderings3 }, null)}),
708             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtremeDefaultValues), global::Google.Protobuf.TestProtos.Proto2.TestExtremeDefaultValues.Parser, new[]{ "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "ReallySmallInt32", "ReallySmallInt64", "Utf8String", "ZeroFloat", "OneFloat", "SmallFloat", "NegativeOneFloat", "NegativeFloat", "LargeFloat", "SmallNegativeFloat", "InfDouble", "NegInfDouble", "NanDouble", "InfFloat", "NegInfFloat", "NanFloat", "CppTrigraph", "StringWithZero", "BytesWithZero", "StringPieceWithZero", "CordWithZero", "ReplacementString" }, null, null, null, null),
709             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage), global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage.Parser, new[]{ "SparseEnum" }, null, null, null, null),
710             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneString), global::Google.Protobuf.TestProtos.Proto2.OneString.Parser, new[]{ "Data" }, null, null, null, null),
711             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreString), global::Google.Protobuf.TestProtos.Proto2.MoreString.Parser, new[]{ "Data" }, null, null, null, null),
712             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneBytes), global::Google.Protobuf.TestProtos.Proto2.OneBytes.Parser, new[]{ "Data" }, null, null, null, null),
713             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreBytes), global::Google.Protobuf.TestProtos.Proto2.MoreBytes.Parser, new[]{ "Data" }, null, null, null, null),
714             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int32Message), global::Google.Protobuf.TestProtos.Proto2.Int32Message.Parser, new[]{ "Data" }, null, null, null, null),
715             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint32Message), global::Google.Protobuf.TestProtos.Proto2.Uint32Message.Parser, new[]{ "Data" }, null, null, null, null),
716             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int64Message), global::Google.Protobuf.TestProtos.Proto2.Int64Message.Parser, new[]{ "Data" }, null, null, null, null),
717             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint64Message), global::Google.Protobuf.TestProtos.Proto2.Uint64Message.Parser, new[]{ "Data" }, null, null, null, null),
718             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BoolMessage), global::Google.Protobuf.TestProtos.Proto2.BoolMessage.Parser, new[]{ "Data" }, null, null, null, null),
719             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof), global::Google.Protobuf.TestProtos.Proto2.TestOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage", "FooGroup" }, new[]{ "Foo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null)}),
720             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible), global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Parser, new[]{ "FooInt", "FooString", "FooMessage", "FooGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null)}),
721             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Parser, new[]{ "FooInt", "FooString", "FooCord", "FooStringPiece", "FooBytes", "FooEnum", "FooMessage", "FooGroup", "FooLazyMessage", "BarInt", "BarString", "BarCord", "BarStringPiece", "BarBytes", "BarEnum", "BazInt", "BazString" }, new[]{ "Foo", "Bar" }, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null),
722             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage.Parser, new[]{ "QuxInt", "CorgeInt" }, null, null, null, null)}),
723             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof), global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage" }, new[]{ "Foo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage.Parser, new[]{ "RequiredDouble" }, null, null, null, null)}),
724             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Parser, new[]{ "Foo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage.Parser, new[]{ "RequiredInt32" }, null, null, null, null)}),
725             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedTypes), global::Google.Protobuf.TestProtos.Proto2.TestPackedTypes.Parser, new[]{ "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum" }, null, null, null, null),
726             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedTypes), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedTypes.Parser, new[]{ "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum" }, null, null, null, null),
727             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions.Parser, null, null, null, null, null),
728             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions.Parser, null, null, null, null, null),
729             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions), global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Parser, new[]{ "ScalarExtension", "EnumExtension", "DynamicEnumExtension", "MessageExtension", "DynamicMessageExtension", "RepeatedExtension", "PackedExtension" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType), global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType.Parser, new[]{ "DynamicField" }, null, null, null, null)}),
730             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRepeatedScalarDifferentTagSizes), global::Google.Protobuf.TestProtos.Proto2.TestRepeatedScalarDifferentTagSizes.Parser, new[]{ "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64" }, null, null, null, null),
731             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Parser, new[]{ "RequiredAllTypes", "OptionalAllTypes", "RepeatedAllTypes", "OptionalGroup", "RepeatedGroup" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Extensions.OptionalExt, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Extensions.RepeatedExt }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Parser, new[]{ "Field1", "Field2", "Field3", "Group1", "Group2", "Ext1", "Ext2" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser, new[]{ "Field1" }, null, null, null, null),
732             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser, new[]{ "Field1" }, null, null, null, null)}),
733             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup.Parser, new[]{ "OptionalGroupAllTypes" }, null, null, null, null),
734             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser, new[]{ "RepeatedGroupAllTypes" }, null, null, null, null)}),
735             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage.Parser, new[]{ "A" }, null, null, null, null),
736             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooRequest), global::Google.Protobuf.TestProtos.Proto2.FooRequest.Parser, null, null, null, null, null),
737             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooResponse), global::Google.Protobuf.TestProtos.Proto2.FooResponse.Parser, null, null, null, null, null),
738             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooClientMessage), global::Google.Protobuf.TestProtos.Proto2.FooClientMessage.Parser, null, null, null, null, null),
739             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooServerMessage), global::Google.Protobuf.TestProtos.Proto2.FooServerMessage.Parser, null, null, null, null, null),
740             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarRequest), global::Google.Protobuf.TestProtos.Proto2.BarRequest.Parser, null, null, null, null, null),
741             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarResponse), global::Google.Protobuf.TestProtos.Proto2.BarResponse.Parser, null, null, null, null, null),
742             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestJsonName), global::Google.Protobuf.TestProtos.Proto2.TestJsonName.Parser, new[]{ "FieldName1", "FieldName2", "FieldName3", "FieldName4", "FIELDNAME5", "FieldName6" }, null, null, null, null),
743             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers), global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Parser, new[]{ "OptionalInt32", "Fixed32", "RepeatedInt32", "PackedInt32", "OptionalEnum", "OptionalString", "OptionalBytes", "OptionalMessage", "OptionalGroup", "StringStringMap", "OneofUint32", "OneofTestAllTypes", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup.Parser, new[]{ "GroupA" }, null, null, null, null),
744             null, }),
745             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable), global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable.Parser, new[]{ "Field1", "Field2", "Field3", "Field4", "Field6", "Field7", "Field8", "Field9", "Field10" }, null, null, null, null)
746           }));
747     }
748     #endregion
749 
750   }
751   /// <summary>Holder for extension identifiers generated from the top level of unittest.proto</summary>
752   public static partial class UnittestExtensions {
753     /// <summary>
754     /// Singular
755     /// </summary>
756     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalInt32Extension =
757       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(1, pb::FieldCodec.ForInt32(8, 0));
758     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalInt64Extension =
759       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(2, pb::FieldCodec.ForInt64(16, 0L));
760     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalUint32Extension =
761       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(3, pb::FieldCodec.ForUInt32(24, 0));
762     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalUint64Extension =
763       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(4, pb::FieldCodec.ForUInt64(32, 0UL));
764     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSint32Extension =
765       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(5, pb::FieldCodec.ForSInt32(40, 0));
766     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSint64Extension =
767       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(6, pb::FieldCodec.ForSInt64(48, 0L));
768     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalFixed32Extension =
769       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(7, pb::FieldCodec.ForFixed32(61, 0));
770     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalFixed64Extension =
771       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(8, pb::FieldCodec.ForFixed64(65, 0UL));
772     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSfixed32Extension =
773       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(9, pb::FieldCodec.ForSFixed32(77, 0));
774     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSfixed64Extension =
775       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(10, pb::FieldCodec.ForSFixed64(81, 0L));
776     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> OptionalFloatExtension =
777       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(11, pb::FieldCodec.ForFloat(93, 0F));
778     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> OptionalDoubleExtension =
779       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(12, pb::FieldCodec.ForDouble(97, 0D));
780     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> OptionalBoolExtension =
781       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(13, pb::FieldCodec.ForBool(104, false));
782     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringExtension =
783       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(14, pb::FieldCodec.ForString(114, ""));
784     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OptionalBytesExtension =
785       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(15, pb::FieldCodec.ForBytes(122, pb::ByteString.Empty));
786     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension> OptionalGroupExtension =
787       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension>(16, pb::FieldCodec.ForGroup(131, 132, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension.Parser));
788     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
789       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(18, pb::FieldCodec.ForMessage(146, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
790     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> OptionalForeignMessageExtension =
791       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(19, pb::FieldCodec.ForMessage(154, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser));
792     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> OptionalImportMessageExtension =
793       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage>(20, pb::FieldCodec.ForMessage(162, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser));
794     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
795       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(21, pb::FieldCodec.ForEnum(168, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo));
796     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
797       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(22, pb::FieldCodec.ForEnum(176, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo));
798     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> OptionalImportEnumExtension =
799       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(23, pb::FieldCodec.ForEnum(184, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x, global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo));
800     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringPieceExtension =
801       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(24, pb::FieldCodec.ForString(194, ""));
802     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalCordExtension =
803       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(25, pb::FieldCodec.ForString(202, ""));
804     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage> OptionalPublicImportMessageExtension =
805       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage>(26, pb::FieldCodec.ForMessage(210, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage.Parser));
806     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalLazyMessageExtension =
807       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(27, pb::FieldCodec.ForMessage(218, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
808     /// <summary>
809     /// Repeated
810     /// </summary>
811     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedInt32Extension =
812       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(31, pb::FieldCodec.ForInt32(248));
813     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedInt64Extension =
814       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(32, pb::FieldCodec.ForInt64(256));
815     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedUint32Extension =
816       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(33, pb::FieldCodec.ForUInt32(264));
817     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedUint64Extension =
818       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(34, pb::FieldCodec.ForUInt64(272));
819     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSint32Extension =
820       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(35, pb::FieldCodec.ForSInt32(280));
821     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSint64Extension =
822       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(36, pb::FieldCodec.ForSInt64(288));
823     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedFixed32Extension =
824       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(37, pb::FieldCodec.ForFixed32(301));
825     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedFixed64Extension =
826       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(38, pb::FieldCodec.ForFixed64(305));
827     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSfixed32Extension =
828       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(39, pb::FieldCodec.ForSFixed32(317));
829     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSfixed64Extension =
830       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(40, pb::FieldCodec.ForSFixed64(321));
831     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> RepeatedFloatExtension =
832       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(41, pb::FieldCodec.ForFloat(333));
833     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> RepeatedDoubleExtension =
834       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(42, pb::FieldCodec.ForDouble(337));
835     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> RepeatedBoolExtension =
836       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(43, pb::FieldCodec.ForBool(344));
837     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringExtension =
838       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(44, pb::FieldCodec.ForString(354));
839     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> RepeatedBytesExtension =
840       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(45, pb::FieldCodec.ForBytes(362));
841     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension> RepeatedGroupExtension =
842       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension>(46, pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension.Parser));
843     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageExtension =
844       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(48, pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
845     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessageExtension =
846       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(49, pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser));
847     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessageExtension =
848       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage>(50, pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser));
849     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumExtension =
850       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(51, pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x));
851     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnumExtension =
852       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(52, pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
853     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnumExtension =
854       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(53, pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x));
855     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringPieceExtension =
856       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(54, pb::FieldCodec.ForString(434));
857     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedCordExtension =
858       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(55, pb::FieldCodec.ForString(442));
859     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageExtension =
860       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(57, pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
861     /// <summary>
862     /// Singular with defaults
863     /// </summary>
864     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultInt32Extension =
865       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(61, pb::FieldCodec.ForInt32(488, 41));
866     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultInt64Extension =
867       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(62, pb::FieldCodec.ForInt64(496, 42L));
868     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultUint32Extension =
869       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(63, pb::FieldCodec.ForUInt32(504, 43));
870     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultUint64Extension =
871       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(64, pb::FieldCodec.ForUInt64(512, 44UL));
872     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSint32Extension =
873       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(65, pb::FieldCodec.ForSInt32(520, -45));
874     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSint64Extension =
875       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(66, pb::FieldCodec.ForSInt64(528, 46L));
876     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultFixed32Extension =
877       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(67, pb::FieldCodec.ForFixed32(541, 47));
878     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultFixed64Extension =
879       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(68, pb::FieldCodec.ForFixed64(545, 48UL));
880     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSfixed32Extension =
881       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(69, pb::FieldCodec.ForSFixed32(557, 49));
882     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSfixed64Extension =
883       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(70, pb::FieldCodec.ForSFixed64(561, -50L));
884     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> DefaultFloatExtension =
885       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(71, pb::FieldCodec.ForFloat(573, 51.5F));
886     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> DefaultDoubleExtension =
887       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(72, pb::FieldCodec.ForDouble(577, 52000D));
888     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> DefaultBoolExtension =
889       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(73, pb::FieldCodec.ForBool(584, true));
890     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringExtension =
891       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(74, pb::FieldCodec.ForString(594, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5)));
892     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> DefaultBytesExtension =
893       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(75, pb::FieldCodec.ForBytes(602, pb::ByteString.FromBase64("d29ybGQ=")));
894     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
895       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(81, pb::FieldCodec.ForEnum(648, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar));
896     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> DefaultForeignEnumExtension =
897       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(82, pb::FieldCodec.ForEnum(656, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar));
898     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> DefaultImportEnumExtension =
899       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(83, pb::FieldCodec.ForEnum(664, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x, global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar));
900     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringPieceExtension =
901       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(84, pb::FieldCodec.ForString(674, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3)));
902     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultCordExtension =
903       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(85, pb::FieldCodec.ForString(682, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3)));
904     /// <summary>
905     /// For oneof test
906     /// </summary>
907     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OneofUint32Extension =
908       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(111, pb::FieldCodec.ForUInt32(888, 0));
909     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OneofNestedMessageExtension =
910       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(112, pb::FieldCodec.ForMessage(898, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
911     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OneofStringExtension =
912       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(113, pb::FieldCodec.ForString(906, ""));
913     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OneofBytesExtension =
914       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(114, pb::FieldCodec.ForBytes(914, pb::ByteString.Empty));
915     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string> MyExtensionString =
916       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string>(50, pb::FieldCodec.ForString(402, ""));
917     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int> MyExtensionInt =
918       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int>(5, pb::FieldCodec.ForInt32(40, 0));
919     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedInt32Extension =
920       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(90, pb::FieldCodec.ForInt32(722));
921     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedInt64Extension =
922       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(91, pb::FieldCodec.ForInt64(730));
923     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedUint32Extension =
924       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(738));
925     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedUint64Extension =
926       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(746));
927     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSint32Extension =
928       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(94, pb::FieldCodec.ForSInt32(754));
929     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSint64Extension =
930       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(95, pb::FieldCodec.ForSInt64(762));
931     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedFixed32Extension =
932       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(770));
933     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedFixed64Extension =
934       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(778));
935     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSfixed32Extension =
936       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(786));
937     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSfixed64Extension =
938       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(794));
939     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float> PackedFloatExtension =
940       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float>(100, pb::FieldCodec.ForFloat(802));
941     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double> PackedDoubleExtension =
942       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double>(101, pb::FieldCodec.ForDouble(810));
943     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool> PackedBoolExtension =
944       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool>(102, pb::FieldCodec.ForBool(818));
945     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnumExtension =
946       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(103, pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
947     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedInt32Extension =
948       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(90, pb::FieldCodec.ForInt32(720));
949     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedInt64Extension =
950       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(91, pb::FieldCodec.ForInt64(728));
951     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedUint32Extension =
952       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(736));
953     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedUint64Extension =
954       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(744));
955     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSint32Extension =
956       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(94, pb::FieldCodec.ForSInt32(752));
957     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSint64Extension =
958       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(95, pb::FieldCodec.ForSInt64(760));
959     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedFixed32Extension =
960       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(773));
961     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedFixed64Extension =
962       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(777));
963     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSfixed32Extension =
964       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(789));
965     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSfixed64Extension =
966       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(793));
967     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float> UnpackedFloatExtension =
968       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float>(100, pb::FieldCodec.ForFloat(805));
969     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double> UnpackedDoubleExtension =
970       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double>(101, pb::FieldCodec.ForDouble(809));
971     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool> UnpackedBoolExtension =
972       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool>(102, pb::FieldCodec.ForBool(816));
973     public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnumExtension =
974       new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(103, pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
975     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> TestAllTypes =
976       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(536860000, pb::FieldCodec.ForMessage(4294880002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
977     public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int> TestExtensionInsideTableExtension =
978       new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int>(5, pb::FieldCodec.ForInt32(40, 0));
979   }
980 
981   #region Enums
982   public enum ForeignEnum {
983     [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4,
984     [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5,
985     [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6,
986   }
987 
988   /// <summary>
989   /// Test an enum that has multiple values with the same number.
990   /// </summary>
991   public enum TestEnumWithDupValue {
992     [pbr::OriginalName("FOO1")] Foo1 = 1,
993     [pbr::OriginalName("BAR1")] Bar1 = 2,
994     [pbr::OriginalName("BAZ")] Baz = 3,
995     [pbr::OriginalName("FOO2", PreferredAlias = false)] Foo2 = 1,
996     [pbr::OriginalName("BAR2", PreferredAlias = false)] Bar2 = 2,
997   }
998 
999   /// <summary>
1000   /// Test an enum with large, unordered values.
1001   /// </summary>
1002   public enum TestSparseEnum {
1003     [pbr::OriginalName("SPARSE_A")] SparseA = 123,
1004     [pbr::OriginalName("SPARSE_B")] SparseB = 62374,
1005     [pbr::OriginalName("SPARSE_C")] SparseC = 12589234,
1006     [pbr::OriginalName("SPARSE_D")] SparseD = -15,
1007     [pbr::OriginalName("SPARSE_E")] SparseE = -53452,
1008     [pbr::OriginalName("SPARSE_F")] SparseF = 0,
1009     [pbr::OriginalName("SPARSE_G")] SparseG = 2,
1010   }
1011 
1012   public enum VeryLargeEnum {
1013     [pbr::OriginalName("ENUM_LABEL_DEFAULT")] EnumLabelDefault = 0,
1014     [pbr::OriginalName("ENUM_LABEL_1")] EnumLabel1 = 1,
1015     [pbr::OriginalName("ENUM_LABEL_2")] EnumLabel2 = 2,
1016     [pbr::OriginalName("ENUM_LABEL_3")] EnumLabel3 = 3,
1017     [pbr::OriginalName("ENUM_LABEL_4")] EnumLabel4 = 4,
1018     [pbr::OriginalName("ENUM_LABEL_5")] EnumLabel5 = 5,
1019     [pbr::OriginalName("ENUM_LABEL_6")] EnumLabel6 = 6,
1020     [pbr::OriginalName("ENUM_LABEL_7")] EnumLabel7 = 7,
1021     [pbr::OriginalName("ENUM_LABEL_8")] EnumLabel8 = 8,
1022     [pbr::OriginalName("ENUM_LABEL_9")] EnumLabel9 = 9,
1023     [pbr::OriginalName("ENUM_LABEL_10")] EnumLabel10 = 10,
1024     [pbr::OriginalName("ENUM_LABEL_11")] EnumLabel11 = 11,
1025     [pbr::OriginalName("ENUM_LABEL_12")] EnumLabel12 = 12,
1026     [pbr::OriginalName("ENUM_LABEL_13")] EnumLabel13 = 13,
1027     [pbr::OriginalName("ENUM_LABEL_14")] EnumLabel14 = 14,
1028     [pbr::OriginalName("ENUM_LABEL_15")] EnumLabel15 = 15,
1029     [pbr::OriginalName("ENUM_LABEL_16")] EnumLabel16 = 16,
1030     [pbr::OriginalName("ENUM_LABEL_17")] EnumLabel17 = 17,
1031     [pbr::OriginalName("ENUM_LABEL_18")] EnumLabel18 = 18,
1032     [pbr::OriginalName("ENUM_LABEL_19")] EnumLabel19 = 19,
1033     [pbr::OriginalName("ENUM_LABEL_20")] EnumLabel20 = 20,
1034     [pbr::OriginalName("ENUM_LABEL_21")] EnumLabel21 = 21,
1035     [pbr::OriginalName("ENUM_LABEL_22")] EnumLabel22 = 22,
1036     [pbr::OriginalName("ENUM_LABEL_23")] EnumLabel23 = 23,
1037     [pbr::OriginalName("ENUM_LABEL_24")] EnumLabel24 = 24,
1038     [pbr::OriginalName("ENUM_LABEL_25")] EnumLabel25 = 25,
1039     [pbr::OriginalName("ENUM_LABEL_26")] EnumLabel26 = 26,
1040     [pbr::OriginalName("ENUM_LABEL_27")] EnumLabel27 = 27,
1041     [pbr::OriginalName("ENUM_LABEL_28")] EnumLabel28 = 28,
1042     [pbr::OriginalName("ENUM_LABEL_29")] EnumLabel29 = 29,
1043     [pbr::OriginalName("ENUM_LABEL_30")] EnumLabel30 = 30,
1044     [pbr::OriginalName("ENUM_LABEL_31")] EnumLabel31 = 31,
1045     [pbr::OriginalName("ENUM_LABEL_32")] EnumLabel32 = 32,
1046     [pbr::OriginalName("ENUM_LABEL_33")] EnumLabel33 = 33,
1047     [pbr::OriginalName("ENUM_LABEL_34")] EnumLabel34 = 34,
1048     [pbr::OriginalName("ENUM_LABEL_35")] EnumLabel35 = 35,
1049     [pbr::OriginalName("ENUM_LABEL_36")] EnumLabel36 = 36,
1050     [pbr::OriginalName("ENUM_LABEL_37")] EnumLabel37 = 37,
1051     [pbr::OriginalName("ENUM_LABEL_38")] EnumLabel38 = 38,
1052     [pbr::OriginalName("ENUM_LABEL_39")] EnumLabel39 = 39,
1053     [pbr::OriginalName("ENUM_LABEL_40")] EnumLabel40 = 40,
1054     [pbr::OriginalName("ENUM_LABEL_41")] EnumLabel41 = 41,
1055     [pbr::OriginalName("ENUM_LABEL_42")] EnumLabel42 = 42,
1056     [pbr::OriginalName("ENUM_LABEL_43")] EnumLabel43 = 43,
1057     [pbr::OriginalName("ENUM_LABEL_44")] EnumLabel44 = 44,
1058     [pbr::OriginalName("ENUM_LABEL_45")] EnumLabel45 = 45,
1059     [pbr::OriginalName("ENUM_LABEL_46")] EnumLabel46 = 46,
1060     [pbr::OriginalName("ENUM_LABEL_47")] EnumLabel47 = 47,
1061     [pbr::OriginalName("ENUM_LABEL_48")] EnumLabel48 = 48,
1062     [pbr::OriginalName("ENUM_LABEL_49")] EnumLabel49 = 49,
1063     [pbr::OriginalName("ENUM_LABEL_50")] EnumLabel50 = 50,
1064     [pbr::OriginalName("ENUM_LABEL_51")] EnumLabel51 = 51,
1065     [pbr::OriginalName("ENUM_LABEL_52")] EnumLabel52 = 52,
1066     [pbr::OriginalName("ENUM_LABEL_53")] EnumLabel53 = 53,
1067     [pbr::OriginalName("ENUM_LABEL_54")] EnumLabel54 = 54,
1068     [pbr::OriginalName("ENUM_LABEL_55")] EnumLabel55 = 55,
1069     [pbr::OriginalName("ENUM_LABEL_56")] EnumLabel56 = 56,
1070     [pbr::OriginalName("ENUM_LABEL_57")] EnumLabel57 = 57,
1071     [pbr::OriginalName("ENUM_LABEL_58")] EnumLabel58 = 58,
1072     [pbr::OriginalName("ENUM_LABEL_59")] EnumLabel59 = 59,
1073     [pbr::OriginalName("ENUM_LABEL_60")] EnumLabel60 = 60,
1074     [pbr::OriginalName("ENUM_LABEL_61")] EnumLabel61 = 61,
1075     [pbr::OriginalName("ENUM_LABEL_62")] EnumLabel62 = 62,
1076     [pbr::OriginalName("ENUM_LABEL_63")] EnumLabel63 = 63,
1077     [pbr::OriginalName("ENUM_LABEL_64")] EnumLabel64 = 64,
1078     [pbr::OriginalName("ENUM_LABEL_65")] EnumLabel65 = 65,
1079     [pbr::OriginalName("ENUM_LABEL_66")] EnumLabel66 = 66,
1080     [pbr::OriginalName("ENUM_LABEL_67")] EnumLabel67 = 67,
1081     [pbr::OriginalName("ENUM_LABEL_68")] EnumLabel68 = 68,
1082     [pbr::OriginalName("ENUM_LABEL_69")] EnumLabel69 = 69,
1083     [pbr::OriginalName("ENUM_LABEL_70")] EnumLabel70 = 70,
1084     [pbr::OriginalName("ENUM_LABEL_71")] EnumLabel71 = 71,
1085     [pbr::OriginalName("ENUM_LABEL_72")] EnumLabel72 = 72,
1086     [pbr::OriginalName("ENUM_LABEL_73")] EnumLabel73 = 73,
1087     [pbr::OriginalName("ENUM_LABEL_74")] EnumLabel74 = 74,
1088     [pbr::OriginalName("ENUM_LABEL_75")] EnumLabel75 = 75,
1089     [pbr::OriginalName("ENUM_LABEL_76")] EnumLabel76 = 76,
1090     [pbr::OriginalName("ENUM_LABEL_77")] EnumLabel77 = 77,
1091     [pbr::OriginalName("ENUM_LABEL_78")] EnumLabel78 = 78,
1092     [pbr::OriginalName("ENUM_LABEL_79")] EnumLabel79 = 79,
1093     [pbr::OriginalName("ENUM_LABEL_80")] EnumLabel80 = 80,
1094     [pbr::OriginalName("ENUM_LABEL_81")] EnumLabel81 = 81,
1095     [pbr::OriginalName("ENUM_LABEL_82")] EnumLabel82 = 82,
1096     [pbr::OriginalName("ENUM_LABEL_83")] EnumLabel83 = 83,
1097     [pbr::OriginalName("ENUM_LABEL_84")] EnumLabel84 = 84,
1098     [pbr::OriginalName("ENUM_LABEL_85")] EnumLabel85 = 85,
1099     [pbr::OriginalName("ENUM_LABEL_86")] EnumLabel86 = 86,
1100     [pbr::OriginalName("ENUM_LABEL_87")] EnumLabel87 = 87,
1101     [pbr::OriginalName("ENUM_LABEL_88")] EnumLabel88 = 88,
1102     [pbr::OriginalName("ENUM_LABEL_89")] EnumLabel89 = 89,
1103     [pbr::OriginalName("ENUM_LABEL_90")] EnumLabel90 = 90,
1104     [pbr::OriginalName("ENUM_LABEL_91")] EnumLabel91 = 91,
1105     [pbr::OriginalName("ENUM_LABEL_92")] EnumLabel92 = 92,
1106     [pbr::OriginalName("ENUM_LABEL_93")] EnumLabel93 = 93,
1107     [pbr::OriginalName("ENUM_LABEL_94")] EnumLabel94 = 94,
1108     [pbr::OriginalName("ENUM_LABEL_95")] EnumLabel95 = 95,
1109     [pbr::OriginalName("ENUM_LABEL_96")] EnumLabel96 = 96,
1110     [pbr::OriginalName("ENUM_LABEL_97")] EnumLabel97 = 97,
1111     [pbr::OriginalName("ENUM_LABEL_98")] EnumLabel98 = 98,
1112     [pbr::OriginalName("ENUM_LABEL_99")] EnumLabel99 = 99,
1113     [pbr::OriginalName("ENUM_LABEL_100")] EnumLabel100 = 100,
1114   }
1115 
1116   #endregion
1117 
1118   #region Messages
1119   /// <summary>
1120   /// This proto includes every type of field in both singular and repeated
1121   /// forms.
1122   /// </summary>
1123   public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes>
1124   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1125       , pb::IBufferMessage
1126   #endif
1127   {
1128     private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
1129     private pb::UnknownFieldSet _unknownFields;
1130     private int _hasBits0;
1131     private int _hasBits1;
1132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1133     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1134     public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
1135 
1136     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1137     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1138     public static pbr::MessageDescriptor Descriptor {
1139       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[0]; }
1140     }
1141 
1142     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1143     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1144     pbr::MessageDescriptor pb::IMessage.Descriptor {
1145       get { return Descriptor; }
1146     }
1147 
1148     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1149     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllTypes()1150     public TestAllTypes() {
1151       OnConstruction();
1152     }
1153 
OnConstruction()1154     partial void OnConstruction();
1155 
1156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1157     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllTypes(TestAllTypes other)1158     public TestAllTypes(TestAllTypes other) : this() {
1159       _hasBits0 = other._hasBits0;
1160       _hasBits1 = other._hasBits1;
1161       optionalInt32_ = other.optionalInt32_;
1162       optionalInt64_ = other.optionalInt64_;
1163       optionalUint32_ = other.optionalUint32_;
1164       optionalUint64_ = other.optionalUint64_;
1165       optionalSint32_ = other.optionalSint32_;
1166       optionalSint64_ = other.optionalSint64_;
1167       optionalFixed32_ = other.optionalFixed32_;
1168       optionalFixed64_ = other.optionalFixed64_;
1169       optionalSfixed32_ = other.optionalSfixed32_;
1170       optionalSfixed64_ = other.optionalSfixed64_;
1171       optionalFloat_ = other.optionalFloat_;
1172       optionalDouble_ = other.optionalDouble_;
1173       optionalBool_ = other.optionalBool_;
1174       optionalString_ = other.optionalString_;
1175       optionalBytes_ = other.optionalBytes_;
1176       optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
1177       optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
1178       optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
1179       optionalImportMessage_ = other.optionalImportMessage_ != null ? other.optionalImportMessage_.Clone() : null;
1180       optionalNestedEnum_ = other.optionalNestedEnum_;
1181       optionalForeignEnum_ = other.optionalForeignEnum_;
1182       optionalImportEnum_ = other.optionalImportEnum_;
1183       optionalStringPiece_ = other.optionalStringPiece_;
1184       optionalCord_ = other.optionalCord_;
1185       optionalPublicImportMessage_ = other.optionalPublicImportMessage_ != null ? other.optionalPublicImportMessage_.Clone() : null;
1186       optionalLazyMessage_ = other.optionalLazyMessage_ != null ? other.optionalLazyMessage_.Clone() : null;
1187       repeatedInt32_ = other.repeatedInt32_.Clone();
1188       repeatedInt64_ = other.repeatedInt64_.Clone();
1189       repeatedUint32_ = other.repeatedUint32_.Clone();
1190       repeatedUint64_ = other.repeatedUint64_.Clone();
1191       repeatedSint32_ = other.repeatedSint32_.Clone();
1192       repeatedSint64_ = other.repeatedSint64_.Clone();
1193       repeatedFixed32_ = other.repeatedFixed32_.Clone();
1194       repeatedFixed64_ = other.repeatedFixed64_.Clone();
1195       repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
1196       repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
1197       repeatedFloat_ = other.repeatedFloat_.Clone();
1198       repeatedDouble_ = other.repeatedDouble_.Clone();
1199       repeatedBool_ = other.repeatedBool_.Clone();
1200       repeatedString_ = other.repeatedString_.Clone();
1201       repeatedBytes_ = other.repeatedBytes_.Clone();
1202       repeatedGroup_ = other.repeatedGroup_.Clone();
1203       repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
1204       repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
1205       repeatedImportMessage_ = other.repeatedImportMessage_.Clone();
1206       repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
1207       repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
1208       repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
1209       repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
1210       repeatedCord_ = other.repeatedCord_.Clone();
1211       repeatedLazyMessage_ = other.repeatedLazyMessage_.Clone();
1212       defaultInt32_ = other.defaultInt32_;
1213       defaultInt64_ = other.defaultInt64_;
1214       defaultUint32_ = other.defaultUint32_;
1215       defaultUint64_ = other.defaultUint64_;
1216       defaultSint32_ = other.defaultSint32_;
1217       defaultSint64_ = other.defaultSint64_;
1218       defaultFixed32_ = other.defaultFixed32_;
1219       defaultFixed64_ = other.defaultFixed64_;
1220       defaultSfixed32_ = other.defaultSfixed32_;
1221       defaultSfixed64_ = other.defaultSfixed64_;
1222       defaultFloat_ = other.defaultFloat_;
1223       defaultDouble_ = other.defaultDouble_;
1224       defaultBool_ = other.defaultBool_;
1225       defaultString_ = other.defaultString_;
1226       defaultBytes_ = other.defaultBytes_;
1227       defaultNestedEnum_ = other.defaultNestedEnum_;
1228       defaultForeignEnum_ = other.defaultForeignEnum_;
1229       defaultImportEnum_ = other.defaultImportEnum_;
1230       defaultStringPiece_ = other.defaultStringPiece_;
1231       defaultCord_ = other.defaultCord_;
1232       switch (other.OneofFieldCase) {
1233         case OneofFieldOneofCase.OneofUint32:
1234           OneofUint32 = other.OneofUint32;
1235           break;
1236         case OneofFieldOneofCase.OneofNestedMessage:
1237           OneofNestedMessage = other.OneofNestedMessage.Clone();
1238           break;
1239         case OneofFieldOneofCase.OneofString:
1240           OneofString = other.OneofString;
1241           break;
1242         case OneofFieldOneofCase.OneofBytes:
1243           OneofBytes = other.OneofBytes;
1244           break;
1245       }
1246 
1247       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1248     }
1249 
1250     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1251     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1252     public TestAllTypes Clone() {
1253       return new TestAllTypes(this);
1254     }
1255 
1256     /// <summary>Field number for the "optional_int32" field.</summary>
1257     public const int OptionalInt32FieldNumber = 1;
1258     private readonly static int OptionalInt32DefaultValue = 0;
1259 
1260     private int optionalInt32_;
1261     /// <summary>
1262     /// Singular
1263     /// </summary>
1264     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1265     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1266     public int OptionalInt32 {
1267       get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
1268       set {
1269         _hasBits0 |= 1;
1270         optionalInt32_ = value;
1271       }
1272     }
1273     /// <summary>Gets whether the "optional_int32" field is set</summary>
1274     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1275     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1276     public bool HasOptionalInt32 {
1277       get { return (_hasBits0 & 1) != 0; }
1278     }
1279     /// <summary>Clears the value of the "optional_int32" field</summary>
1280     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1281     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt32()1282     public void ClearOptionalInt32() {
1283       _hasBits0 &= ~1;
1284     }
1285 
1286     /// <summary>Field number for the "optional_int64" field.</summary>
1287     public const int OptionalInt64FieldNumber = 2;
1288     private readonly static long OptionalInt64DefaultValue = 0L;
1289 
1290     private long optionalInt64_;
1291     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1292     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1293     public long OptionalInt64 {
1294       get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } }
1295       set {
1296         _hasBits0 |= 2;
1297         optionalInt64_ = value;
1298       }
1299     }
1300     /// <summary>Gets whether the "optional_int64" field is set</summary>
1301     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1302     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1303     public bool HasOptionalInt64 {
1304       get { return (_hasBits0 & 2) != 0; }
1305     }
1306     /// <summary>Clears the value of the "optional_int64" field</summary>
1307     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1308     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt64()1309     public void ClearOptionalInt64() {
1310       _hasBits0 &= ~2;
1311     }
1312 
1313     /// <summary>Field number for the "optional_uint32" field.</summary>
1314     public const int OptionalUint32FieldNumber = 3;
1315     private readonly static uint OptionalUint32DefaultValue = 0;
1316 
1317     private uint optionalUint32_;
1318     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1319     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1320     public uint OptionalUint32 {
1321       get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } }
1322       set {
1323         _hasBits0 |= 4;
1324         optionalUint32_ = value;
1325       }
1326     }
1327     /// <summary>Gets whether the "optional_uint32" field is set</summary>
1328     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1329     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1330     public bool HasOptionalUint32 {
1331       get { return (_hasBits0 & 4) != 0; }
1332     }
1333     /// <summary>Clears the value of the "optional_uint32" field</summary>
1334     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1335     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalUint32()1336     public void ClearOptionalUint32() {
1337       _hasBits0 &= ~4;
1338     }
1339 
1340     /// <summary>Field number for the "optional_uint64" field.</summary>
1341     public const int OptionalUint64FieldNumber = 4;
1342     private readonly static ulong OptionalUint64DefaultValue = 0UL;
1343 
1344     private ulong optionalUint64_;
1345     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1346     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1347     public ulong OptionalUint64 {
1348       get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } }
1349       set {
1350         _hasBits0 |= 8;
1351         optionalUint64_ = value;
1352       }
1353     }
1354     /// <summary>Gets whether the "optional_uint64" field is set</summary>
1355     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1356     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1357     public bool HasOptionalUint64 {
1358       get { return (_hasBits0 & 8) != 0; }
1359     }
1360     /// <summary>Clears the value of the "optional_uint64" field</summary>
1361     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1362     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalUint64()1363     public void ClearOptionalUint64() {
1364       _hasBits0 &= ~8;
1365     }
1366 
1367     /// <summary>Field number for the "optional_sint32" field.</summary>
1368     public const int OptionalSint32FieldNumber = 5;
1369     private readonly static int OptionalSint32DefaultValue = 0;
1370 
1371     private int optionalSint32_;
1372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1373     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1374     public int OptionalSint32 {
1375       get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } }
1376       set {
1377         _hasBits0 |= 16;
1378         optionalSint32_ = value;
1379       }
1380     }
1381     /// <summary>Gets whether the "optional_sint32" field is set</summary>
1382     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1383     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1384     public bool HasOptionalSint32 {
1385       get { return (_hasBits0 & 16) != 0; }
1386     }
1387     /// <summary>Clears the value of the "optional_sint32" field</summary>
1388     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1389     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSint32()1390     public void ClearOptionalSint32() {
1391       _hasBits0 &= ~16;
1392     }
1393 
1394     /// <summary>Field number for the "optional_sint64" field.</summary>
1395     public const int OptionalSint64FieldNumber = 6;
1396     private readonly static long OptionalSint64DefaultValue = 0L;
1397 
1398     private long optionalSint64_;
1399     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1400     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1401     public long OptionalSint64 {
1402       get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } }
1403       set {
1404         _hasBits0 |= 32;
1405         optionalSint64_ = value;
1406       }
1407     }
1408     /// <summary>Gets whether the "optional_sint64" field is set</summary>
1409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1410     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1411     public bool HasOptionalSint64 {
1412       get { return (_hasBits0 & 32) != 0; }
1413     }
1414     /// <summary>Clears the value of the "optional_sint64" field</summary>
1415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1416     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSint64()1417     public void ClearOptionalSint64() {
1418       _hasBits0 &= ~32;
1419     }
1420 
1421     /// <summary>Field number for the "optional_fixed32" field.</summary>
1422     public const int OptionalFixed32FieldNumber = 7;
1423     private readonly static uint OptionalFixed32DefaultValue = 0;
1424 
1425     private uint optionalFixed32_;
1426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1427     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1428     public uint OptionalFixed32 {
1429       get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } }
1430       set {
1431         _hasBits0 |= 64;
1432         optionalFixed32_ = value;
1433       }
1434     }
1435     /// <summary>Gets whether the "optional_fixed32" field is set</summary>
1436     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1437     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1438     public bool HasOptionalFixed32 {
1439       get { return (_hasBits0 & 64) != 0; }
1440     }
1441     /// <summary>Clears the value of the "optional_fixed32" field</summary>
1442     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1443     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFixed32()1444     public void ClearOptionalFixed32() {
1445       _hasBits0 &= ~64;
1446     }
1447 
1448     /// <summary>Field number for the "optional_fixed64" field.</summary>
1449     public const int OptionalFixed64FieldNumber = 8;
1450     private readonly static ulong OptionalFixed64DefaultValue = 0UL;
1451 
1452     private ulong optionalFixed64_;
1453     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1454     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1455     public ulong OptionalFixed64 {
1456       get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } }
1457       set {
1458         _hasBits0 |= 128;
1459         optionalFixed64_ = value;
1460       }
1461     }
1462     /// <summary>Gets whether the "optional_fixed64" field is set</summary>
1463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1465     public bool HasOptionalFixed64 {
1466       get { return (_hasBits0 & 128) != 0; }
1467     }
1468     /// <summary>Clears the value of the "optional_fixed64" field</summary>
1469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFixed64()1471     public void ClearOptionalFixed64() {
1472       _hasBits0 &= ~128;
1473     }
1474 
1475     /// <summary>Field number for the "optional_sfixed32" field.</summary>
1476     public const int OptionalSfixed32FieldNumber = 9;
1477     private readonly static int OptionalSfixed32DefaultValue = 0;
1478 
1479     private int optionalSfixed32_;
1480     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1481     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1482     public int OptionalSfixed32 {
1483       get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } }
1484       set {
1485         _hasBits0 |= 256;
1486         optionalSfixed32_ = value;
1487       }
1488     }
1489     /// <summary>Gets whether the "optional_sfixed32" field is set</summary>
1490     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1491     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1492     public bool HasOptionalSfixed32 {
1493       get { return (_hasBits0 & 256) != 0; }
1494     }
1495     /// <summary>Clears the value of the "optional_sfixed32" field</summary>
1496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1497     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSfixed32()1498     public void ClearOptionalSfixed32() {
1499       _hasBits0 &= ~256;
1500     }
1501 
1502     /// <summary>Field number for the "optional_sfixed64" field.</summary>
1503     public const int OptionalSfixed64FieldNumber = 10;
1504     private readonly static long OptionalSfixed64DefaultValue = 0L;
1505 
1506     private long optionalSfixed64_;
1507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1508     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1509     public long OptionalSfixed64 {
1510       get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } }
1511       set {
1512         _hasBits0 |= 512;
1513         optionalSfixed64_ = value;
1514       }
1515     }
1516     /// <summary>Gets whether the "optional_sfixed64" field is set</summary>
1517     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1518     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1519     public bool HasOptionalSfixed64 {
1520       get { return (_hasBits0 & 512) != 0; }
1521     }
1522     /// <summary>Clears the value of the "optional_sfixed64" field</summary>
1523     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1524     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSfixed64()1525     public void ClearOptionalSfixed64() {
1526       _hasBits0 &= ~512;
1527     }
1528 
1529     /// <summary>Field number for the "optional_float" field.</summary>
1530     public const int OptionalFloatFieldNumber = 11;
1531     private readonly static float OptionalFloatDefaultValue = 0F;
1532 
1533     private float optionalFloat_;
1534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1535     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1536     public float OptionalFloat {
1537       get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } }
1538       set {
1539         _hasBits0 |= 1024;
1540         optionalFloat_ = value;
1541       }
1542     }
1543     /// <summary>Gets whether the "optional_float" field is set</summary>
1544     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1545     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1546     public bool HasOptionalFloat {
1547       get { return (_hasBits0 & 1024) != 0; }
1548     }
1549     /// <summary>Clears the value of the "optional_float" field</summary>
1550     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1551     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFloat()1552     public void ClearOptionalFloat() {
1553       _hasBits0 &= ~1024;
1554     }
1555 
1556     /// <summary>Field number for the "optional_double" field.</summary>
1557     public const int OptionalDoubleFieldNumber = 12;
1558     private readonly static double OptionalDoubleDefaultValue = 0D;
1559 
1560     private double optionalDouble_;
1561     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1562     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1563     public double OptionalDouble {
1564       get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } }
1565       set {
1566         _hasBits0 |= 2048;
1567         optionalDouble_ = value;
1568       }
1569     }
1570     /// <summary>Gets whether the "optional_double" field is set</summary>
1571     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1572     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1573     public bool HasOptionalDouble {
1574       get { return (_hasBits0 & 2048) != 0; }
1575     }
1576     /// <summary>Clears the value of the "optional_double" field</summary>
1577     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1578     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalDouble()1579     public void ClearOptionalDouble() {
1580       _hasBits0 &= ~2048;
1581     }
1582 
1583     /// <summary>Field number for the "optional_bool" field.</summary>
1584     public const int OptionalBoolFieldNumber = 13;
1585     private readonly static bool OptionalBoolDefaultValue = false;
1586 
1587     private bool optionalBool_;
1588     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1589     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1590     public bool OptionalBool {
1591       get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
1592       set {
1593         _hasBits0 |= 4096;
1594         optionalBool_ = value;
1595       }
1596     }
1597     /// <summary>Gets whether the "optional_bool" field is set</summary>
1598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1600     public bool HasOptionalBool {
1601       get { return (_hasBits0 & 4096) != 0; }
1602     }
1603     /// <summary>Clears the value of the "optional_bool" field</summary>
1604     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1605     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBool()1606     public void ClearOptionalBool() {
1607       _hasBits0 &= ~4096;
1608     }
1609 
1610     /// <summary>Field number for the "optional_string" field.</summary>
1611     public const int OptionalStringFieldNumber = 14;
1612     private readonly static string OptionalStringDefaultValue = "";
1613 
1614     private string optionalString_;
1615     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1616     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1617     public string OptionalString {
1618       get { return optionalString_ ?? OptionalStringDefaultValue; }
1619       set {
1620         optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1621       }
1622     }
1623     /// <summary>Gets whether the "optional_string" field is set</summary>
1624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1625     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1626     public bool HasOptionalString {
1627       get { return optionalString_ != null; }
1628     }
1629     /// <summary>Clears the value of the "optional_string" field</summary>
1630     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1631     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalString()1632     public void ClearOptionalString() {
1633       optionalString_ = null;
1634     }
1635 
1636     /// <summary>Field number for the "optional_bytes" field.</summary>
1637     public const int OptionalBytesFieldNumber = 15;
1638     private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
1639 
1640     private pb::ByteString optionalBytes_;
1641     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1642     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1643     public pb::ByteString OptionalBytes {
1644       get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
1645       set {
1646         optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1647       }
1648     }
1649     /// <summary>Gets whether the "optional_bytes" field is set</summary>
1650     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1651     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1652     public bool HasOptionalBytes {
1653       get { return optionalBytes_ != null; }
1654     }
1655     /// <summary>Clears the value of the "optional_bytes" field</summary>
1656     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1657     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBytes()1658     public void ClearOptionalBytes() {
1659       optionalBytes_ = null;
1660     }
1661 
1662     /// <summary>Field number for the "optionalgroup" field.</summary>
1663     public const int OptionalGroupFieldNumber = 16;
1664     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup optionalGroup_;
1665     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1666     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1667     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup OptionalGroup {
1668       get { return optionalGroup_; }
1669       set {
1670         optionalGroup_ = value;
1671       }
1672     }
1673     /// <summary>Gets whether the optionalgroup field is set</summary>
1674     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1675     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1676     public bool HasOptionalGroup {
1677       get { return optionalGroup_ != null; }
1678     }
1679     /// <summary>Clears the value of the optionalgroup field</summary>
1680     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1681     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalGroup()1682     public void ClearOptionalGroup() {
1683       optionalGroup_ = null;
1684     }
1685 
1686     /// <summary>Field number for the "optional_nested_message" field.</summary>
1687     public const int OptionalNestedMessageFieldNumber = 18;
1688     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
1689     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1690     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1691     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
1692       get { return optionalNestedMessage_; }
1693       set {
1694         optionalNestedMessage_ = value;
1695       }
1696     }
1697 
1698     /// <summary>Field number for the "optional_foreign_message" field.</summary>
1699     public const int OptionalForeignMessageFieldNumber = 19;
1700     private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalForeignMessage_;
1701     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1702     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1703     public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalForeignMessage {
1704       get { return optionalForeignMessage_; }
1705       set {
1706         optionalForeignMessage_ = value;
1707       }
1708     }
1709 
1710     /// <summary>Field number for the "optional_import_message" field.</summary>
1711     public const int OptionalImportMessageFieldNumber = 20;
1712     private global::Google.Protobuf.TestProtos.Proto2.ImportMessage optionalImportMessage_;
1713     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1714     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1715     public global::Google.Protobuf.TestProtos.Proto2.ImportMessage OptionalImportMessage {
1716       get { return optionalImportMessage_; }
1717       set {
1718         optionalImportMessage_ = value;
1719       }
1720     }
1721 
1722     /// <summary>Field number for the "optional_nested_enum" field.</summary>
1723     public const int OptionalNestedEnumFieldNumber = 21;
1724     private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo;
1725 
1726     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum optionalNestedEnum_;
1727     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1728     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1729     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
1730       get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } }
1731       set {
1732         _hasBits0 |= 8192;
1733         optionalNestedEnum_ = value;
1734       }
1735     }
1736     /// <summary>Gets whether the "optional_nested_enum" field is set</summary>
1737     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1738     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1739     public bool HasOptionalNestedEnum {
1740       get { return (_hasBits0 & 8192) != 0; }
1741     }
1742     /// <summary>Clears the value of the "optional_nested_enum" field</summary>
1743     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1744     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalNestedEnum()1745     public void ClearOptionalNestedEnum() {
1746       _hasBits0 &= ~8192;
1747     }
1748 
1749     /// <summary>Field number for the "optional_foreign_enum" field.</summary>
1750     public const int OptionalForeignEnumFieldNumber = 22;
1751     private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
1752 
1753     private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
1754     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1755     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1756     public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
1757       get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
1758       set {
1759         _hasBits0 |= 16384;
1760         optionalForeignEnum_ = value;
1761       }
1762     }
1763     /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
1764     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1765     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1766     public bool HasOptionalForeignEnum {
1767       get { return (_hasBits0 & 16384) != 0; }
1768     }
1769     /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
1770     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1771     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalForeignEnum()1772     public void ClearOptionalForeignEnum() {
1773       _hasBits0 &= ~16384;
1774     }
1775 
1776     /// <summary>Field number for the "optional_import_enum" field.</summary>
1777     public const int OptionalImportEnumFieldNumber = 23;
1778     private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo;
1779 
1780     private global::Google.Protobuf.TestProtos.Proto2.ImportEnum optionalImportEnum_;
1781     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1782     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1783     public global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnum {
1784       get { if ((_hasBits0 & 32768) != 0) { return optionalImportEnum_; } else { return OptionalImportEnumDefaultValue; } }
1785       set {
1786         _hasBits0 |= 32768;
1787         optionalImportEnum_ = value;
1788       }
1789     }
1790     /// <summary>Gets whether the "optional_import_enum" field is set</summary>
1791     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1792     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1793     public bool HasOptionalImportEnum {
1794       get { return (_hasBits0 & 32768) != 0; }
1795     }
1796     /// <summary>Clears the value of the "optional_import_enum" field</summary>
1797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalImportEnum()1799     public void ClearOptionalImportEnum() {
1800       _hasBits0 &= ~32768;
1801     }
1802 
1803     /// <summary>Field number for the "optional_string_piece" field.</summary>
1804     public const int OptionalStringPieceFieldNumber = 24;
1805     private readonly static string OptionalStringPieceDefaultValue = "";
1806 
1807     private string optionalStringPiece_;
1808     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1809     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1810     public string OptionalStringPiece {
1811       get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; }
1812       set {
1813         optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1814       }
1815     }
1816     /// <summary>Gets whether the "optional_string_piece" field is set</summary>
1817     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1818     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1819     public bool HasOptionalStringPiece {
1820       get { return optionalStringPiece_ != null; }
1821     }
1822     /// <summary>Clears the value of the "optional_string_piece" field</summary>
1823     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1824     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalStringPiece()1825     public void ClearOptionalStringPiece() {
1826       optionalStringPiece_ = null;
1827     }
1828 
1829     /// <summary>Field number for the "optional_cord" field.</summary>
1830     public const int OptionalCordFieldNumber = 25;
1831     private readonly static string OptionalCordDefaultValue = "";
1832 
1833     private string optionalCord_;
1834     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1835     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1836     public string OptionalCord {
1837       get { return optionalCord_ ?? OptionalCordDefaultValue; }
1838       set {
1839         optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1840       }
1841     }
1842     /// <summary>Gets whether the "optional_cord" field is set</summary>
1843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1844     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1845     public bool HasOptionalCord {
1846       get { return optionalCord_ != null; }
1847     }
1848     /// <summary>Clears the value of the "optional_cord" field</summary>
1849     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1850     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalCord()1851     public void ClearOptionalCord() {
1852       optionalCord_ = null;
1853     }
1854 
1855     /// <summary>Field number for the "optional_public_import_message" field.</summary>
1856     public const int OptionalPublicImportMessageFieldNumber = 26;
1857     private global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage optionalPublicImportMessage_;
1858     /// <summary>
1859     /// Defined in unittest_import_public.proto
1860     /// </summary>
1861     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1862     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1863     public global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage OptionalPublicImportMessage {
1864       get { return optionalPublicImportMessage_; }
1865       set {
1866         optionalPublicImportMessage_ = value;
1867       }
1868     }
1869 
1870     /// <summary>Field number for the "optional_lazy_message" field.</summary>
1871     public const int OptionalLazyMessageFieldNumber = 27;
1872     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalLazyMessage_;
1873     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1874     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1875     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
1876       get { return optionalLazyMessage_; }
1877       set {
1878         optionalLazyMessage_ = value;
1879       }
1880     }
1881 
1882     /// <summary>Field number for the "repeated_int32" field.</summary>
1883     public const int RepeatedInt32FieldNumber = 31;
1884     private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
1885         = pb::FieldCodec.ForInt32(248);
1886     private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
1887     /// <summary>
1888     /// Repeated
1889     /// </summary>
1890     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1891     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1892     public pbc::RepeatedField<int> RepeatedInt32 {
1893       get { return repeatedInt32_; }
1894     }
1895 
1896     /// <summary>Field number for the "repeated_int64" field.</summary>
1897     public const int RepeatedInt64FieldNumber = 32;
1898     private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
1899         = pb::FieldCodec.ForInt64(256);
1900     private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
1901     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1902     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1903     public pbc::RepeatedField<long> RepeatedInt64 {
1904       get { return repeatedInt64_; }
1905     }
1906 
1907     /// <summary>Field number for the "repeated_uint32" field.</summary>
1908     public const int RepeatedUint32FieldNumber = 33;
1909     private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
1910         = pb::FieldCodec.ForUInt32(264);
1911     private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
1912     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1913     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1914     public pbc::RepeatedField<uint> RepeatedUint32 {
1915       get { return repeatedUint32_; }
1916     }
1917 
1918     /// <summary>Field number for the "repeated_uint64" field.</summary>
1919     public const int RepeatedUint64FieldNumber = 34;
1920     private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
1921         = pb::FieldCodec.ForUInt64(272);
1922     private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
1923     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1924     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1925     public pbc::RepeatedField<ulong> RepeatedUint64 {
1926       get { return repeatedUint64_; }
1927     }
1928 
1929     /// <summary>Field number for the "repeated_sint32" field.</summary>
1930     public const int RepeatedSint32FieldNumber = 35;
1931     private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
1932         = pb::FieldCodec.ForSInt32(280);
1933     private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
1934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1935     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1936     public pbc::RepeatedField<int> RepeatedSint32 {
1937       get { return repeatedSint32_; }
1938     }
1939 
1940     /// <summary>Field number for the "repeated_sint64" field.</summary>
1941     public const int RepeatedSint64FieldNumber = 36;
1942     private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
1943         = pb::FieldCodec.ForSInt64(288);
1944     private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
1945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1946     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1947     public pbc::RepeatedField<long> RepeatedSint64 {
1948       get { return repeatedSint64_; }
1949     }
1950 
1951     /// <summary>Field number for the "repeated_fixed32" field.</summary>
1952     public const int RepeatedFixed32FieldNumber = 37;
1953     private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
1954         = pb::FieldCodec.ForFixed32(301);
1955     private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
1956     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1957     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1958     public pbc::RepeatedField<uint> RepeatedFixed32 {
1959       get { return repeatedFixed32_; }
1960     }
1961 
1962     /// <summary>Field number for the "repeated_fixed64" field.</summary>
1963     public const int RepeatedFixed64FieldNumber = 38;
1964     private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
1965         = pb::FieldCodec.ForFixed64(305);
1966     private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
1967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1968     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1969     public pbc::RepeatedField<ulong> RepeatedFixed64 {
1970       get { return repeatedFixed64_; }
1971     }
1972 
1973     /// <summary>Field number for the "repeated_sfixed32" field.</summary>
1974     public const int RepeatedSfixed32FieldNumber = 39;
1975     private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
1976         = pb::FieldCodec.ForSFixed32(317);
1977     private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
1978     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1979     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1980     public pbc::RepeatedField<int> RepeatedSfixed32 {
1981       get { return repeatedSfixed32_; }
1982     }
1983 
1984     /// <summary>Field number for the "repeated_sfixed64" field.</summary>
1985     public const int RepeatedSfixed64FieldNumber = 40;
1986     private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
1987         = pb::FieldCodec.ForSFixed64(321);
1988     private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
1989     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1990     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1991     public pbc::RepeatedField<long> RepeatedSfixed64 {
1992       get { return repeatedSfixed64_; }
1993     }
1994 
1995     /// <summary>Field number for the "repeated_float" field.</summary>
1996     public const int RepeatedFloatFieldNumber = 41;
1997     private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
1998         = pb::FieldCodec.ForFloat(333);
1999     private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
2000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2001     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2002     public pbc::RepeatedField<float> RepeatedFloat {
2003       get { return repeatedFloat_; }
2004     }
2005 
2006     /// <summary>Field number for the "repeated_double" field.</summary>
2007     public const int RepeatedDoubleFieldNumber = 42;
2008     private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
2009         = pb::FieldCodec.ForDouble(337);
2010     private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
2011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2013     public pbc::RepeatedField<double> RepeatedDouble {
2014       get { return repeatedDouble_; }
2015     }
2016 
2017     /// <summary>Field number for the "repeated_bool" field.</summary>
2018     public const int RepeatedBoolFieldNumber = 43;
2019     private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
2020         = pb::FieldCodec.ForBool(344);
2021     private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
2022     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2023     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2024     public pbc::RepeatedField<bool> RepeatedBool {
2025       get { return repeatedBool_; }
2026     }
2027 
2028     /// <summary>Field number for the "repeated_string" field.</summary>
2029     public const int RepeatedStringFieldNumber = 44;
2030     private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
2031         = pb::FieldCodec.ForString(354);
2032     private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
2033     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2034     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2035     public pbc::RepeatedField<string> RepeatedString {
2036       get { return repeatedString_; }
2037     }
2038 
2039     /// <summary>Field number for the "repeated_bytes" field.</summary>
2040     public const int RepeatedBytesFieldNumber = 45;
2041     private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
2042         = pb::FieldCodec.ForBytes(362);
2043     private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
2044     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2045     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2046     public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
2047       get { return repeatedBytes_; }
2048     }
2049 
2050     /// <summary>Field number for the "repeatedgroup" field.</summary>
2051     public const int RepeatedGroupFieldNumber = 46;
2052     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> _repeated_repeatedGroup_codec
2053         = pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser);
2054     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup>();
2055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2056     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2057     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> RepeatedGroup {
2058       get { return repeatedGroup_; }
2059     }
2060 
2061     /// <summary>Field number for the "repeated_nested_message" field.</summary>
2062     public const int RepeatedNestedMessageFieldNumber = 48;
2063     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
2064         = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
2065     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
2066     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2067     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2068     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
2069       get { return repeatedNestedMessage_; }
2070     }
2071 
2072     /// <summary>Field number for the "repeated_foreign_message" field.</summary>
2073     public const int RepeatedForeignMessageFieldNumber = 49;
2074     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedForeignMessage_codec
2075         = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
2076     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
2077     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2078     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2079     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessage {
2080       get { return repeatedForeignMessage_; }
2081     }
2082 
2083     /// <summary>Field number for the "repeated_import_message" field.</summary>
2084     public const int RepeatedImportMessageFieldNumber = 50;
2085     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> _repeated_repeatedImportMessage_codec
2086         = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser);
2087     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage>();
2088     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2089     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2090     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessage {
2091       get { return repeatedImportMessage_; }
2092     }
2093 
2094     /// <summary>Field number for the "repeated_nested_enum" field.</summary>
2095     public const int RepeatedNestedEnumFieldNumber = 51;
2096     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
2097         = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x);
2098     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>();
2099     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2100     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2101     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
2102       get { return repeatedNestedEnum_; }
2103     }
2104 
2105     /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
2106     public const int RepeatedForeignEnumFieldNumber = 52;
2107     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedForeignEnum_codec
2108         = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
2109     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
2110     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2111     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2112     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnum {
2113       get { return repeatedForeignEnum_; }
2114     }
2115 
2116     /// <summary>Field number for the "repeated_import_enum" field.</summary>
2117     public const int RepeatedImportEnumFieldNumber = 53;
2118     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> _repeated_repeatedImportEnum_codec
2119         = pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x);
2120     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum>();
2121     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2122     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2123     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnum {
2124       get { return repeatedImportEnum_; }
2125     }
2126 
2127     /// <summary>Field number for the "repeated_string_piece" field.</summary>
2128     public const int RepeatedStringPieceFieldNumber = 54;
2129     private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
2130         = pb::FieldCodec.ForString(434);
2131     private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
2132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2133     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2134     public pbc::RepeatedField<string> RepeatedStringPiece {
2135       get { return repeatedStringPiece_; }
2136     }
2137 
2138     /// <summary>Field number for the "repeated_cord" field.</summary>
2139     public const int RepeatedCordFieldNumber = 55;
2140     private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
2141         = pb::FieldCodec.ForString(442);
2142     private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
2143     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2144     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2145     public pbc::RepeatedField<string> RepeatedCord {
2146       get { return repeatedCord_; }
2147     }
2148 
2149     /// <summary>Field number for the "repeated_lazy_message" field.</summary>
2150     public const int RepeatedLazyMessageFieldNumber = 57;
2151     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedLazyMessage_codec
2152         = pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
2153     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedLazyMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
2154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2155     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2156     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessage {
2157       get { return repeatedLazyMessage_; }
2158     }
2159 
2160     /// <summary>Field number for the "default_int32" field.</summary>
2161     public const int DefaultInt32FieldNumber = 61;
2162     private readonly static int DefaultInt32DefaultValue = 41;
2163 
2164     private int defaultInt32_;
2165     /// <summary>
2166     /// Singular with defaults
2167     /// </summary>
2168     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2169     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2170     public int DefaultInt32 {
2171       get { if ((_hasBits0 & 65536) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } }
2172       set {
2173         _hasBits0 |= 65536;
2174         defaultInt32_ = value;
2175       }
2176     }
2177     /// <summary>Gets whether the "default_int32" field is set</summary>
2178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2180     public bool HasDefaultInt32 {
2181       get { return (_hasBits0 & 65536) != 0; }
2182     }
2183     /// <summary>Clears the value of the "default_int32" field</summary>
2184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2185     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt32()2186     public void ClearDefaultInt32() {
2187       _hasBits0 &= ~65536;
2188     }
2189 
2190     /// <summary>Field number for the "default_int64" field.</summary>
2191     public const int DefaultInt64FieldNumber = 62;
2192     private readonly static long DefaultInt64DefaultValue = 42L;
2193 
2194     private long defaultInt64_;
2195     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2196     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2197     public long DefaultInt64 {
2198       get { if ((_hasBits0 & 131072) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } }
2199       set {
2200         _hasBits0 |= 131072;
2201         defaultInt64_ = value;
2202       }
2203     }
2204     /// <summary>Gets whether the "default_int64" field is set</summary>
2205     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2206     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2207     public bool HasDefaultInt64 {
2208       get { return (_hasBits0 & 131072) != 0; }
2209     }
2210     /// <summary>Clears the value of the "default_int64" field</summary>
2211     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2212     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt64()2213     public void ClearDefaultInt64() {
2214       _hasBits0 &= ~131072;
2215     }
2216 
2217     /// <summary>Field number for the "default_uint32" field.</summary>
2218     public const int DefaultUint32FieldNumber = 63;
2219     private readonly static uint DefaultUint32DefaultValue = 43;
2220 
2221     private uint defaultUint32_;
2222     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2223     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2224     public uint DefaultUint32 {
2225       get { if ((_hasBits0 & 262144) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } }
2226       set {
2227         _hasBits0 |= 262144;
2228         defaultUint32_ = value;
2229       }
2230     }
2231     /// <summary>Gets whether the "default_uint32" field is set</summary>
2232     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2233     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2234     public bool HasDefaultUint32 {
2235       get { return (_hasBits0 & 262144) != 0; }
2236     }
2237     /// <summary>Clears the value of the "default_uint32" field</summary>
2238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2239     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint32()2240     public void ClearDefaultUint32() {
2241       _hasBits0 &= ~262144;
2242     }
2243 
2244     /// <summary>Field number for the "default_uint64" field.</summary>
2245     public const int DefaultUint64FieldNumber = 64;
2246     private readonly static ulong DefaultUint64DefaultValue = 44UL;
2247 
2248     private ulong defaultUint64_;
2249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2250     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2251     public ulong DefaultUint64 {
2252       get { if ((_hasBits0 & 524288) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } }
2253       set {
2254         _hasBits0 |= 524288;
2255         defaultUint64_ = value;
2256       }
2257     }
2258     /// <summary>Gets whether the "default_uint64" field is set</summary>
2259     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2260     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2261     public bool HasDefaultUint64 {
2262       get { return (_hasBits0 & 524288) != 0; }
2263     }
2264     /// <summary>Clears the value of the "default_uint64" field</summary>
2265     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2266     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint64()2267     public void ClearDefaultUint64() {
2268       _hasBits0 &= ~524288;
2269     }
2270 
2271     /// <summary>Field number for the "default_sint32" field.</summary>
2272     public const int DefaultSint32FieldNumber = 65;
2273     private readonly static int DefaultSint32DefaultValue = -45;
2274 
2275     private int defaultSint32_;
2276     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2277     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2278     public int DefaultSint32 {
2279       get { if ((_hasBits0 & 1048576) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } }
2280       set {
2281         _hasBits0 |= 1048576;
2282         defaultSint32_ = value;
2283       }
2284     }
2285     /// <summary>Gets whether the "default_sint32" field is set</summary>
2286     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2287     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2288     public bool HasDefaultSint32 {
2289       get { return (_hasBits0 & 1048576) != 0; }
2290     }
2291     /// <summary>Clears the value of the "default_sint32" field</summary>
2292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2293     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint32()2294     public void ClearDefaultSint32() {
2295       _hasBits0 &= ~1048576;
2296     }
2297 
2298     /// <summary>Field number for the "default_sint64" field.</summary>
2299     public const int DefaultSint64FieldNumber = 66;
2300     private readonly static long DefaultSint64DefaultValue = 46L;
2301 
2302     private long defaultSint64_;
2303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2304     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2305     public long DefaultSint64 {
2306       get { if ((_hasBits0 & 2097152) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } }
2307       set {
2308         _hasBits0 |= 2097152;
2309         defaultSint64_ = value;
2310       }
2311     }
2312     /// <summary>Gets whether the "default_sint64" field is set</summary>
2313     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2314     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2315     public bool HasDefaultSint64 {
2316       get { return (_hasBits0 & 2097152) != 0; }
2317     }
2318     /// <summary>Clears the value of the "default_sint64" field</summary>
2319     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2320     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint64()2321     public void ClearDefaultSint64() {
2322       _hasBits0 &= ~2097152;
2323     }
2324 
2325     /// <summary>Field number for the "default_fixed32" field.</summary>
2326     public const int DefaultFixed32FieldNumber = 67;
2327     private readonly static uint DefaultFixed32DefaultValue = 47;
2328 
2329     private uint defaultFixed32_;
2330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2331     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2332     public uint DefaultFixed32 {
2333       get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } }
2334       set {
2335         _hasBits0 |= 4194304;
2336         defaultFixed32_ = value;
2337       }
2338     }
2339     /// <summary>Gets whether the "default_fixed32" field is set</summary>
2340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2341     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2342     public bool HasDefaultFixed32 {
2343       get { return (_hasBits0 & 4194304) != 0; }
2344     }
2345     /// <summary>Clears the value of the "default_fixed32" field</summary>
2346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed32()2348     public void ClearDefaultFixed32() {
2349       _hasBits0 &= ~4194304;
2350     }
2351 
2352     /// <summary>Field number for the "default_fixed64" field.</summary>
2353     public const int DefaultFixed64FieldNumber = 68;
2354     private readonly static ulong DefaultFixed64DefaultValue = 48UL;
2355 
2356     private ulong defaultFixed64_;
2357     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2358     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2359     public ulong DefaultFixed64 {
2360       get { if ((_hasBits0 & 8388608) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } }
2361       set {
2362         _hasBits0 |= 8388608;
2363         defaultFixed64_ = value;
2364       }
2365     }
2366     /// <summary>Gets whether the "default_fixed64" field is set</summary>
2367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2368     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2369     public bool HasDefaultFixed64 {
2370       get { return (_hasBits0 & 8388608) != 0; }
2371     }
2372     /// <summary>Clears the value of the "default_fixed64" field</summary>
2373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed64()2375     public void ClearDefaultFixed64() {
2376       _hasBits0 &= ~8388608;
2377     }
2378 
2379     /// <summary>Field number for the "default_sfixed32" field.</summary>
2380     public const int DefaultSfixed32FieldNumber = 69;
2381     private readonly static int DefaultSfixed32DefaultValue = 49;
2382 
2383     private int defaultSfixed32_;
2384     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2385     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2386     public int DefaultSfixed32 {
2387       get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } }
2388       set {
2389         _hasBits0 |= 16777216;
2390         defaultSfixed32_ = value;
2391       }
2392     }
2393     /// <summary>Gets whether the "default_sfixed32" field is set</summary>
2394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2395     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2396     public bool HasDefaultSfixed32 {
2397       get { return (_hasBits0 & 16777216) != 0; }
2398     }
2399     /// <summary>Clears the value of the "default_sfixed32" field</summary>
2400     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2401     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed32()2402     public void ClearDefaultSfixed32() {
2403       _hasBits0 &= ~16777216;
2404     }
2405 
2406     /// <summary>Field number for the "default_sfixed64" field.</summary>
2407     public const int DefaultSfixed64FieldNumber = 70;
2408     private readonly static long DefaultSfixed64DefaultValue = -50L;
2409 
2410     private long defaultSfixed64_;
2411     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2412     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2413     public long DefaultSfixed64 {
2414       get { if ((_hasBits0 & 33554432) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } }
2415       set {
2416         _hasBits0 |= 33554432;
2417         defaultSfixed64_ = value;
2418       }
2419     }
2420     /// <summary>Gets whether the "default_sfixed64" field is set</summary>
2421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2422     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2423     public bool HasDefaultSfixed64 {
2424       get { return (_hasBits0 & 33554432) != 0; }
2425     }
2426     /// <summary>Clears the value of the "default_sfixed64" field</summary>
2427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2428     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed64()2429     public void ClearDefaultSfixed64() {
2430       _hasBits0 &= ~33554432;
2431     }
2432 
2433     /// <summary>Field number for the "default_float" field.</summary>
2434     public const int DefaultFloatFieldNumber = 71;
2435     private readonly static float DefaultFloatDefaultValue = 51.5F;
2436 
2437     private float defaultFloat_;
2438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2439     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2440     public float DefaultFloat {
2441       get { if ((_hasBits0 & 67108864) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } }
2442       set {
2443         _hasBits0 |= 67108864;
2444         defaultFloat_ = value;
2445       }
2446     }
2447     /// <summary>Gets whether the "default_float" field is set</summary>
2448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2449     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2450     public bool HasDefaultFloat {
2451       get { return (_hasBits0 & 67108864) != 0; }
2452     }
2453     /// <summary>Clears the value of the "default_float" field</summary>
2454     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2455     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFloat()2456     public void ClearDefaultFloat() {
2457       _hasBits0 &= ~67108864;
2458     }
2459 
2460     /// <summary>Field number for the "default_double" field.</summary>
2461     public const int DefaultDoubleFieldNumber = 72;
2462     private readonly static double DefaultDoubleDefaultValue = 52000D;
2463 
2464     private double defaultDouble_;
2465     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2466     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2467     public double DefaultDouble {
2468       get { if ((_hasBits0 & 134217728) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } }
2469       set {
2470         _hasBits0 |= 134217728;
2471         defaultDouble_ = value;
2472       }
2473     }
2474     /// <summary>Gets whether the "default_double" field is set</summary>
2475     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2476     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2477     public bool HasDefaultDouble {
2478       get { return (_hasBits0 & 134217728) != 0; }
2479     }
2480     /// <summary>Clears the value of the "default_double" field</summary>
2481     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2482     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultDouble()2483     public void ClearDefaultDouble() {
2484       _hasBits0 &= ~134217728;
2485     }
2486 
2487     /// <summary>Field number for the "default_bool" field.</summary>
2488     public const int DefaultBoolFieldNumber = 73;
2489     private readonly static bool DefaultBoolDefaultValue = true;
2490 
2491     private bool defaultBool_;
2492     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2493     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2494     public bool DefaultBool {
2495       get { if ((_hasBits0 & 268435456) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } }
2496       set {
2497         _hasBits0 |= 268435456;
2498         defaultBool_ = value;
2499       }
2500     }
2501     /// <summary>Gets whether the "default_bool" field is set</summary>
2502     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2503     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2504     public bool HasDefaultBool {
2505       get { return (_hasBits0 & 268435456) != 0; }
2506     }
2507     /// <summary>Clears the value of the "default_bool" field</summary>
2508     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2509     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBool()2510     public void ClearDefaultBool() {
2511       _hasBits0 &= ~268435456;
2512     }
2513 
2514     /// <summary>Field number for the "default_string" field.</summary>
2515     public const int DefaultStringFieldNumber = 74;
2516     private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5);
2517 
2518     private string defaultString_;
2519     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2520     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2521     public string DefaultString {
2522       get { return defaultString_ ?? DefaultStringDefaultValue; }
2523       set {
2524         defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2525       }
2526     }
2527     /// <summary>Gets whether the "default_string" field is set</summary>
2528     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2529     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2530     public bool HasDefaultString {
2531       get { return defaultString_ != null; }
2532     }
2533     /// <summary>Clears the value of the "default_string" field</summary>
2534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2535     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultString()2536     public void ClearDefaultString() {
2537       defaultString_ = null;
2538     }
2539 
2540     /// <summary>Field number for the "default_bytes" field.</summary>
2541     public const int DefaultBytesFieldNumber = 75;
2542     private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("d29ybGQ=");
2543 
2544     private pb::ByteString defaultBytes_;
2545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2547     public pb::ByteString DefaultBytes {
2548       get { return defaultBytes_ ?? DefaultBytesDefaultValue; }
2549       set {
2550         defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2551       }
2552     }
2553     /// <summary>Gets whether the "default_bytes" field is set</summary>
2554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2555     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2556     public bool HasDefaultBytes {
2557       get { return defaultBytes_ != null; }
2558     }
2559     /// <summary>Clears the value of the "default_bytes" field</summary>
2560     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2561     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBytes()2562     public void ClearDefaultBytes() {
2563       defaultBytes_ = null;
2564     }
2565 
2566     /// <summary>Field number for the "default_nested_enum" field.</summary>
2567     public const int DefaultNestedEnumFieldNumber = 81;
2568     private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar;
2569 
2570     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum defaultNestedEnum_;
2571     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2572     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2573     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
2574       get { if ((_hasBits0 & 536870912) != 0) { return defaultNestedEnum_; } else { return DefaultNestedEnumDefaultValue; } }
2575       set {
2576         _hasBits0 |= 536870912;
2577         defaultNestedEnum_ = value;
2578       }
2579     }
2580     /// <summary>Gets whether the "default_nested_enum" field is set</summary>
2581     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2582     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2583     public bool HasDefaultNestedEnum {
2584       get { return (_hasBits0 & 536870912) != 0; }
2585     }
2586     /// <summary>Clears the value of the "default_nested_enum" field</summary>
2587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultNestedEnum()2589     public void ClearDefaultNestedEnum() {
2590       _hasBits0 &= ~536870912;
2591     }
2592 
2593     /// <summary>Field number for the "default_foreign_enum" field.</summary>
2594     public const int DefaultForeignEnumFieldNumber = 82;
2595     private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar;
2596 
2597     private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum defaultForeignEnum_;
2598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2600     public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnum {
2601       get { if ((_hasBits0 & 1073741824) != 0) { return defaultForeignEnum_; } else { return DefaultForeignEnumDefaultValue; } }
2602       set {
2603         _hasBits0 |= 1073741824;
2604         defaultForeignEnum_ = value;
2605       }
2606     }
2607     /// <summary>Gets whether the "default_foreign_enum" field is set</summary>
2608     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2609     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2610     public bool HasDefaultForeignEnum {
2611       get { return (_hasBits0 & 1073741824) != 0; }
2612     }
2613     /// <summary>Clears the value of the "default_foreign_enum" field</summary>
2614     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2615     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultForeignEnum()2616     public void ClearDefaultForeignEnum() {
2617       _hasBits0 &= ~1073741824;
2618     }
2619 
2620     /// <summary>Field number for the "default_import_enum" field.</summary>
2621     public const int DefaultImportEnumFieldNumber = 83;
2622     private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar;
2623 
2624     private global::Google.Protobuf.TestProtos.Proto2.ImportEnum defaultImportEnum_;
2625     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2626     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2627     public global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnum {
2628       get { if ((_hasBits0 & -2147483648) != 0) { return defaultImportEnum_; } else { return DefaultImportEnumDefaultValue; } }
2629       set {
2630         _hasBits0 |= -2147483648;
2631         defaultImportEnum_ = value;
2632       }
2633     }
2634     /// <summary>Gets whether the "default_import_enum" field is set</summary>
2635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2636     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2637     public bool HasDefaultImportEnum {
2638       get { return (_hasBits0 & -2147483648) != 0; }
2639     }
2640     /// <summary>Clears the value of the "default_import_enum" field</summary>
2641     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2642     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultImportEnum()2643     public void ClearDefaultImportEnum() {
2644       _hasBits0 &= ~-2147483648;
2645     }
2646 
2647     /// <summary>Field number for the "default_string_piece" field.</summary>
2648     public const int DefaultStringPieceFieldNumber = 84;
2649     private readonly static string DefaultStringPieceDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3);
2650 
2651     private string defaultStringPiece_;
2652     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2653     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2654     public string DefaultStringPiece {
2655       get { return defaultStringPiece_ ?? DefaultStringPieceDefaultValue; }
2656       set {
2657         defaultStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2658       }
2659     }
2660     /// <summary>Gets whether the "default_string_piece" field is set</summary>
2661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2662     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2663     public bool HasDefaultStringPiece {
2664       get { return defaultStringPiece_ != null; }
2665     }
2666     /// <summary>Clears the value of the "default_string_piece" field</summary>
2667     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2668     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultStringPiece()2669     public void ClearDefaultStringPiece() {
2670       defaultStringPiece_ = null;
2671     }
2672 
2673     /// <summary>Field number for the "default_cord" field.</summary>
2674     public const int DefaultCordFieldNumber = 85;
2675     private readonly static string DefaultCordDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3);
2676 
2677     private string defaultCord_;
2678     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2679     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2680     public string DefaultCord {
2681       get { return defaultCord_ ?? DefaultCordDefaultValue; }
2682       set {
2683         defaultCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2684       }
2685     }
2686     /// <summary>Gets whether the "default_cord" field is set</summary>
2687     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2688     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2689     public bool HasDefaultCord {
2690       get { return defaultCord_ != null; }
2691     }
2692     /// <summary>Clears the value of the "default_cord" field</summary>
2693     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2694     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultCord()2695     public void ClearDefaultCord() {
2696       defaultCord_ = null;
2697     }
2698 
2699     /// <summary>Field number for the "oneof_uint32" field.</summary>
2700     public const int OneofUint32FieldNumber = 111;
2701     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2702     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2703     public uint OneofUint32 {
2704       get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
2705       set {
2706         oneofField_ = value;
2707         oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
2708       }
2709     }
2710     /// <summary>Gets whether the "oneof_uint32" field is set</summary>
2711     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2712     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2713     public bool HasOneofUint32 {
2714       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
2715     }
2716     /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
2717     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2718     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofUint32()2719     public void ClearOneofUint32() {
2720       if (HasOneofUint32) {
2721         ClearOneofField();
2722       }
2723     }
2724 
2725     /// <summary>Field number for the "oneof_nested_message" field.</summary>
2726     public const int OneofNestedMessageFieldNumber = 112;
2727     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2728     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2729     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OneofNestedMessage {
2730       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
2731       set {
2732         oneofField_ = value;
2733         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
2734       }
2735     }
2736 
2737     /// <summary>Field number for the "oneof_string" field.</summary>
2738     public const int OneofStringFieldNumber = 113;
2739     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2740     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2741     public string OneofString {
2742       get { return HasOneofString ? (string) oneofField_ : ""; }
2743       set {
2744         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2745         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
2746       }
2747     }
2748     /// <summary>Gets whether the "oneof_string" field is set</summary>
2749     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2750     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2751     public bool HasOneofString {
2752       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
2753     }
2754     /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
2755     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2756     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofString()2757     public void ClearOneofString() {
2758       if (HasOneofString) {
2759         ClearOneofField();
2760       }
2761     }
2762 
2763     /// <summary>Field number for the "oneof_bytes" field.</summary>
2764     public const int OneofBytesFieldNumber = 114;
2765     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2766     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2767     public pb::ByteString OneofBytes {
2768       get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
2769       set {
2770         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2771         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
2772       }
2773     }
2774     /// <summary>Gets whether the "oneof_bytes" field is set</summary>
2775     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2776     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2777     public bool HasOneofBytes {
2778       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
2779     }
2780     /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
2781     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2782     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofBytes()2783     public void ClearOneofBytes() {
2784       if (HasOneofBytes) {
2785         ClearOneofField();
2786       }
2787     }
2788 
2789     private object oneofField_;
2790     /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
2791     public enum OneofFieldOneofCase {
2792       None = 0,
2793       OneofUint32 = 111,
2794       OneofNestedMessage = 112,
2795       OneofString = 113,
2796       OneofBytes = 114,
2797     }
2798     private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
2799     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2800     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2801     public OneofFieldOneofCase OneofFieldCase {
2802       get { return oneofFieldCase_; }
2803     }
2804 
2805     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2806     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofField()2807     public void ClearOneofField() {
2808       oneofFieldCase_ = OneofFieldOneofCase.None;
2809       oneofField_ = null;
2810     }
2811 
2812     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2813     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)2814     public override bool Equals(object other) {
2815       return Equals(other as TestAllTypes);
2816     }
2817 
2818     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2819     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestAllTypes other)2820     public bool Equals(TestAllTypes other) {
2821       if (ReferenceEquals(other, null)) {
2822         return false;
2823       }
2824       if (ReferenceEquals(other, this)) {
2825         return true;
2826       }
2827       if (OptionalInt32 != other.OptionalInt32) return false;
2828       if (OptionalInt64 != other.OptionalInt64) return false;
2829       if (OptionalUint32 != other.OptionalUint32) return false;
2830       if (OptionalUint64 != other.OptionalUint64) return false;
2831       if (OptionalSint32 != other.OptionalSint32) return false;
2832       if (OptionalSint64 != other.OptionalSint64) return false;
2833       if (OptionalFixed32 != other.OptionalFixed32) return false;
2834       if (OptionalFixed64 != other.OptionalFixed64) return false;
2835       if (OptionalSfixed32 != other.OptionalSfixed32) return false;
2836       if (OptionalSfixed64 != other.OptionalSfixed64) return false;
2837       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
2838       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
2839       if (OptionalBool != other.OptionalBool) return false;
2840       if (OptionalString != other.OptionalString) return false;
2841       if (OptionalBytes != other.OptionalBytes) return false;
2842       if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
2843       if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
2844       if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
2845       if (!object.Equals(OptionalImportMessage, other.OptionalImportMessage)) return false;
2846       if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
2847       if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
2848       if (OptionalImportEnum != other.OptionalImportEnum) return false;
2849       if (OptionalStringPiece != other.OptionalStringPiece) return false;
2850       if (OptionalCord != other.OptionalCord) return false;
2851       if (!object.Equals(OptionalPublicImportMessage, other.OptionalPublicImportMessage)) return false;
2852       if (!object.Equals(OptionalLazyMessage, other.OptionalLazyMessage)) return false;
2853       if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
2854       if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
2855       if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
2856       if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
2857       if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
2858       if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
2859       if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
2860       if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
2861       if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
2862       if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
2863       if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
2864       if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
2865       if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
2866       if(!repeatedString_.Equals(other.repeatedString_)) return false;
2867       if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
2868       if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
2869       if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
2870       if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
2871       if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false;
2872       if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
2873       if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
2874       if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false;
2875       if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
2876       if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
2877       if(!repeatedLazyMessage_.Equals(other.repeatedLazyMessage_)) return false;
2878       if (DefaultInt32 != other.DefaultInt32) return false;
2879       if (DefaultInt64 != other.DefaultInt64) return false;
2880       if (DefaultUint32 != other.DefaultUint32) return false;
2881       if (DefaultUint64 != other.DefaultUint64) return false;
2882       if (DefaultSint32 != other.DefaultSint32) return false;
2883       if (DefaultSint64 != other.DefaultSint64) return false;
2884       if (DefaultFixed32 != other.DefaultFixed32) return false;
2885       if (DefaultFixed64 != other.DefaultFixed64) return false;
2886       if (DefaultSfixed32 != other.DefaultSfixed32) return false;
2887       if (DefaultSfixed64 != other.DefaultSfixed64) return false;
2888       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false;
2889       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false;
2890       if (DefaultBool != other.DefaultBool) return false;
2891       if (DefaultString != other.DefaultString) return false;
2892       if (DefaultBytes != other.DefaultBytes) return false;
2893       if (DefaultNestedEnum != other.DefaultNestedEnum) return false;
2894       if (DefaultForeignEnum != other.DefaultForeignEnum) return false;
2895       if (DefaultImportEnum != other.DefaultImportEnum) return false;
2896       if (DefaultStringPiece != other.DefaultStringPiece) return false;
2897       if (DefaultCord != other.DefaultCord) return false;
2898       if (OneofUint32 != other.OneofUint32) return false;
2899       if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
2900       if (OneofString != other.OneofString) return false;
2901       if (OneofBytes != other.OneofBytes) return false;
2902       if (OneofFieldCase != other.OneofFieldCase) return false;
2903       return Equals(_unknownFields, other._unknownFields);
2904     }
2905 
2906     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2907     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()2908     public override int GetHashCode() {
2909       int hash = 1;
2910       if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
2911       if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode();
2912       if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode();
2913       if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode();
2914       if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode();
2915       if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode();
2916       if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode();
2917       if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode();
2918       if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode();
2919       if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode();
2920       if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
2921       if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
2922       if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
2923       if (HasOptionalString) hash ^= OptionalString.GetHashCode();
2924       if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
2925       if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
2926       if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
2927       if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
2928       if (optionalImportMessage_ != null) hash ^= OptionalImportMessage.GetHashCode();
2929       if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode();
2930       if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
2931       if (HasOptionalImportEnum) hash ^= OptionalImportEnum.GetHashCode();
2932       if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode();
2933       if (HasOptionalCord) hash ^= OptionalCord.GetHashCode();
2934       if (optionalPublicImportMessage_ != null) hash ^= OptionalPublicImportMessage.GetHashCode();
2935       if (optionalLazyMessage_ != null) hash ^= OptionalLazyMessage.GetHashCode();
2936       hash ^= repeatedInt32_.GetHashCode();
2937       hash ^= repeatedInt64_.GetHashCode();
2938       hash ^= repeatedUint32_.GetHashCode();
2939       hash ^= repeatedUint64_.GetHashCode();
2940       hash ^= repeatedSint32_.GetHashCode();
2941       hash ^= repeatedSint64_.GetHashCode();
2942       hash ^= repeatedFixed32_.GetHashCode();
2943       hash ^= repeatedFixed64_.GetHashCode();
2944       hash ^= repeatedSfixed32_.GetHashCode();
2945       hash ^= repeatedSfixed64_.GetHashCode();
2946       hash ^= repeatedFloat_.GetHashCode();
2947       hash ^= repeatedDouble_.GetHashCode();
2948       hash ^= repeatedBool_.GetHashCode();
2949       hash ^= repeatedString_.GetHashCode();
2950       hash ^= repeatedBytes_.GetHashCode();
2951       hash ^= repeatedGroup_.GetHashCode();
2952       hash ^= repeatedNestedMessage_.GetHashCode();
2953       hash ^= repeatedForeignMessage_.GetHashCode();
2954       hash ^= repeatedImportMessage_.GetHashCode();
2955       hash ^= repeatedNestedEnum_.GetHashCode();
2956       hash ^= repeatedForeignEnum_.GetHashCode();
2957       hash ^= repeatedImportEnum_.GetHashCode();
2958       hash ^= repeatedStringPiece_.GetHashCode();
2959       hash ^= repeatedCord_.GetHashCode();
2960       hash ^= repeatedLazyMessage_.GetHashCode();
2961       if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode();
2962       if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode();
2963       if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode();
2964       if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode();
2965       if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode();
2966       if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode();
2967       if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode();
2968       if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode();
2969       if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode();
2970       if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode();
2971       if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat);
2972       if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble);
2973       if (HasDefaultBool) hash ^= DefaultBool.GetHashCode();
2974       if (HasDefaultString) hash ^= DefaultString.GetHashCode();
2975       if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode();
2976       if (HasDefaultNestedEnum) hash ^= DefaultNestedEnum.GetHashCode();
2977       if (HasDefaultForeignEnum) hash ^= DefaultForeignEnum.GetHashCode();
2978       if (HasDefaultImportEnum) hash ^= DefaultImportEnum.GetHashCode();
2979       if (HasDefaultStringPiece) hash ^= DefaultStringPiece.GetHashCode();
2980       if (HasDefaultCord) hash ^= DefaultCord.GetHashCode();
2981       if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
2982       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
2983       if (HasOneofString) hash ^= OneofString.GetHashCode();
2984       if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
2985       hash ^= (int) oneofFieldCase_;
2986       if (_unknownFields != null) {
2987         hash ^= _unknownFields.GetHashCode();
2988       }
2989       return hash;
2990     }
2991 
2992     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2993     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()2994     public override string ToString() {
2995       return pb::JsonFormatter.ToDiagnosticString(this);
2996     }
2997 
2998     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2999     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)3000     public void WriteTo(pb::CodedOutputStream output) {
3001     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3002       output.WriteRawMessage(this);
3003     #else
3004       if (HasOptionalInt32) {
3005         output.WriteRawTag(8);
3006         output.WriteInt32(OptionalInt32);
3007       }
3008       if (HasOptionalInt64) {
3009         output.WriteRawTag(16);
3010         output.WriteInt64(OptionalInt64);
3011       }
3012       if (HasOptionalUint32) {
3013         output.WriteRawTag(24);
3014         output.WriteUInt32(OptionalUint32);
3015       }
3016       if (HasOptionalUint64) {
3017         output.WriteRawTag(32);
3018         output.WriteUInt64(OptionalUint64);
3019       }
3020       if (HasOptionalSint32) {
3021         output.WriteRawTag(40);
3022         output.WriteSInt32(OptionalSint32);
3023       }
3024       if (HasOptionalSint64) {
3025         output.WriteRawTag(48);
3026         output.WriteSInt64(OptionalSint64);
3027       }
3028       if (HasOptionalFixed32) {
3029         output.WriteRawTag(61);
3030         output.WriteFixed32(OptionalFixed32);
3031       }
3032       if (HasOptionalFixed64) {
3033         output.WriteRawTag(65);
3034         output.WriteFixed64(OptionalFixed64);
3035       }
3036       if (HasOptionalSfixed32) {
3037         output.WriteRawTag(77);
3038         output.WriteSFixed32(OptionalSfixed32);
3039       }
3040       if (HasOptionalSfixed64) {
3041         output.WriteRawTag(81);
3042         output.WriteSFixed64(OptionalSfixed64);
3043       }
3044       if (HasOptionalFloat) {
3045         output.WriteRawTag(93);
3046         output.WriteFloat(OptionalFloat);
3047       }
3048       if (HasOptionalDouble) {
3049         output.WriteRawTag(97);
3050         output.WriteDouble(OptionalDouble);
3051       }
3052       if (HasOptionalBool) {
3053         output.WriteRawTag(104);
3054         output.WriteBool(OptionalBool);
3055       }
3056       if (HasOptionalString) {
3057         output.WriteRawTag(114);
3058         output.WriteString(OptionalString);
3059       }
3060       if (HasOptionalBytes) {
3061         output.WriteRawTag(122);
3062         output.WriteBytes(OptionalBytes);
3063       }
3064       if (HasOptionalGroup) {
3065         output.WriteRawTag(131, 1);
3066         output.WriteGroup(OptionalGroup);
3067         output.WriteRawTag(132, 1);
3068       }
3069       if (optionalNestedMessage_ != null) {
3070         output.WriteRawTag(146, 1);
3071         output.WriteMessage(OptionalNestedMessage);
3072       }
3073       if (optionalForeignMessage_ != null) {
3074         output.WriteRawTag(154, 1);
3075         output.WriteMessage(OptionalForeignMessage);
3076       }
3077       if (optionalImportMessage_ != null) {
3078         output.WriteRawTag(162, 1);
3079         output.WriteMessage(OptionalImportMessage);
3080       }
3081       if (HasOptionalNestedEnum) {
3082         output.WriteRawTag(168, 1);
3083         output.WriteEnum((int) OptionalNestedEnum);
3084       }
3085       if (HasOptionalForeignEnum) {
3086         output.WriteRawTag(176, 1);
3087         output.WriteEnum((int) OptionalForeignEnum);
3088       }
3089       if (HasOptionalImportEnum) {
3090         output.WriteRawTag(184, 1);
3091         output.WriteEnum((int) OptionalImportEnum);
3092       }
3093       if (HasOptionalStringPiece) {
3094         output.WriteRawTag(194, 1);
3095         output.WriteString(OptionalStringPiece);
3096       }
3097       if (HasOptionalCord) {
3098         output.WriteRawTag(202, 1);
3099         output.WriteString(OptionalCord);
3100       }
3101       if (optionalPublicImportMessage_ != null) {
3102         output.WriteRawTag(210, 1);
3103         output.WriteMessage(OptionalPublicImportMessage);
3104       }
3105       if (optionalLazyMessage_ != null) {
3106         output.WriteRawTag(218, 1);
3107         output.WriteMessage(OptionalLazyMessage);
3108       }
3109       repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
3110       repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
3111       repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
3112       repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
3113       repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
3114       repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
3115       repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
3116       repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
3117       repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
3118       repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
3119       repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
3120       repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
3121       repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
3122       repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
3123       repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
3124       repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
3125       repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
3126       repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
3127       repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec);
3128       repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
3129       repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
3130       repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec);
3131       repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
3132       repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
3133       repeatedLazyMessage_.WriteTo(output, _repeated_repeatedLazyMessage_codec);
3134       if (HasDefaultInt32) {
3135         output.WriteRawTag(232, 3);
3136         output.WriteInt32(DefaultInt32);
3137       }
3138       if (HasDefaultInt64) {
3139         output.WriteRawTag(240, 3);
3140         output.WriteInt64(DefaultInt64);
3141       }
3142       if (HasDefaultUint32) {
3143         output.WriteRawTag(248, 3);
3144         output.WriteUInt32(DefaultUint32);
3145       }
3146       if (HasDefaultUint64) {
3147         output.WriteRawTag(128, 4);
3148         output.WriteUInt64(DefaultUint64);
3149       }
3150       if (HasDefaultSint32) {
3151         output.WriteRawTag(136, 4);
3152         output.WriteSInt32(DefaultSint32);
3153       }
3154       if (HasDefaultSint64) {
3155         output.WriteRawTag(144, 4);
3156         output.WriteSInt64(DefaultSint64);
3157       }
3158       if (HasDefaultFixed32) {
3159         output.WriteRawTag(157, 4);
3160         output.WriteFixed32(DefaultFixed32);
3161       }
3162       if (HasDefaultFixed64) {
3163         output.WriteRawTag(161, 4);
3164         output.WriteFixed64(DefaultFixed64);
3165       }
3166       if (HasDefaultSfixed32) {
3167         output.WriteRawTag(173, 4);
3168         output.WriteSFixed32(DefaultSfixed32);
3169       }
3170       if (HasDefaultSfixed64) {
3171         output.WriteRawTag(177, 4);
3172         output.WriteSFixed64(DefaultSfixed64);
3173       }
3174       if (HasDefaultFloat) {
3175         output.WriteRawTag(189, 4);
3176         output.WriteFloat(DefaultFloat);
3177       }
3178       if (HasDefaultDouble) {
3179         output.WriteRawTag(193, 4);
3180         output.WriteDouble(DefaultDouble);
3181       }
3182       if (HasDefaultBool) {
3183         output.WriteRawTag(200, 4);
3184         output.WriteBool(DefaultBool);
3185       }
3186       if (HasDefaultString) {
3187         output.WriteRawTag(210, 4);
3188         output.WriteString(DefaultString);
3189       }
3190       if (HasDefaultBytes) {
3191         output.WriteRawTag(218, 4);
3192         output.WriteBytes(DefaultBytes);
3193       }
3194       if (HasDefaultNestedEnum) {
3195         output.WriteRawTag(136, 5);
3196         output.WriteEnum((int) DefaultNestedEnum);
3197       }
3198       if (HasDefaultForeignEnum) {
3199         output.WriteRawTag(144, 5);
3200         output.WriteEnum((int) DefaultForeignEnum);
3201       }
3202       if (HasDefaultImportEnum) {
3203         output.WriteRawTag(152, 5);
3204         output.WriteEnum((int) DefaultImportEnum);
3205       }
3206       if (HasDefaultStringPiece) {
3207         output.WriteRawTag(162, 5);
3208         output.WriteString(DefaultStringPiece);
3209       }
3210       if (HasDefaultCord) {
3211         output.WriteRawTag(170, 5);
3212         output.WriteString(DefaultCord);
3213       }
3214       if (HasOneofUint32) {
3215         output.WriteRawTag(248, 6);
3216         output.WriteUInt32(OneofUint32);
3217       }
3218       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3219         output.WriteRawTag(130, 7);
3220         output.WriteMessage(OneofNestedMessage);
3221       }
3222       if (HasOneofString) {
3223         output.WriteRawTag(138, 7);
3224         output.WriteString(OneofString);
3225       }
3226       if (HasOneofBytes) {
3227         output.WriteRawTag(146, 7);
3228         output.WriteBytes(OneofBytes);
3229       }
3230       if (_unknownFields != null) {
3231         _unknownFields.WriteTo(output);
3232       }
3233     #endif
3234     }
3235 
3236     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3237     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3238     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3239     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3240       if (HasOptionalInt32) {
3241         output.WriteRawTag(8);
3242         output.WriteInt32(OptionalInt32);
3243       }
3244       if (HasOptionalInt64) {
3245         output.WriteRawTag(16);
3246         output.WriteInt64(OptionalInt64);
3247       }
3248       if (HasOptionalUint32) {
3249         output.WriteRawTag(24);
3250         output.WriteUInt32(OptionalUint32);
3251       }
3252       if (HasOptionalUint64) {
3253         output.WriteRawTag(32);
3254         output.WriteUInt64(OptionalUint64);
3255       }
3256       if (HasOptionalSint32) {
3257         output.WriteRawTag(40);
3258         output.WriteSInt32(OptionalSint32);
3259       }
3260       if (HasOptionalSint64) {
3261         output.WriteRawTag(48);
3262         output.WriteSInt64(OptionalSint64);
3263       }
3264       if (HasOptionalFixed32) {
3265         output.WriteRawTag(61);
3266         output.WriteFixed32(OptionalFixed32);
3267       }
3268       if (HasOptionalFixed64) {
3269         output.WriteRawTag(65);
3270         output.WriteFixed64(OptionalFixed64);
3271       }
3272       if (HasOptionalSfixed32) {
3273         output.WriteRawTag(77);
3274         output.WriteSFixed32(OptionalSfixed32);
3275       }
3276       if (HasOptionalSfixed64) {
3277         output.WriteRawTag(81);
3278         output.WriteSFixed64(OptionalSfixed64);
3279       }
3280       if (HasOptionalFloat) {
3281         output.WriteRawTag(93);
3282         output.WriteFloat(OptionalFloat);
3283       }
3284       if (HasOptionalDouble) {
3285         output.WriteRawTag(97);
3286         output.WriteDouble(OptionalDouble);
3287       }
3288       if (HasOptionalBool) {
3289         output.WriteRawTag(104);
3290         output.WriteBool(OptionalBool);
3291       }
3292       if (HasOptionalString) {
3293         output.WriteRawTag(114);
3294         output.WriteString(OptionalString);
3295       }
3296       if (HasOptionalBytes) {
3297         output.WriteRawTag(122);
3298         output.WriteBytes(OptionalBytes);
3299       }
3300       if (HasOptionalGroup) {
3301         output.WriteRawTag(131, 1);
3302         output.WriteGroup(OptionalGroup);
3303         output.WriteRawTag(132, 1);
3304       }
3305       if (optionalNestedMessage_ != null) {
3306         output.WriteRawTag(146, 1);
3307         output.WriteMessage(OptionalNestedMessage);
3308       }
3309       if (optionalForeignMessage_ != null) {
3310         output.WriteRawTag(154, 1);
3311         output.WriteMessage(OptionalForeignMessage);
3312       }
3313       if (optionalImportMessage_ != null) {
3314         output.WriteRawTag(162, 1);
3315         output.WriteMessage(OptionalImportMessage);
3316       }
3317       if (HasOptionalNestedEnum) {
3318         output.WriteRawTag(168, 1);
3319         output.WriteEnum((int) OptionalNestedEnum);
3320       }
3321       if (HasOptionalForeignEnum) {
3322         output.WriteRawTag(176, 1);
3323         output.WriteEnum((int) OptionalForeignEnum);
3324       }
3325       if (HasOptionalImportEnum) {
3326         output.WriteRawTag(184, 1);
3327         output.WriteEnum((int) OptionalImportEnum);
3328       }
3329       if (HasOptionalStringPiece) {
3330         output.WriteRawTag(194, 1);
3331         output.WriteString(OptionalStringPiece);
3332       }
3333       if (HasOptionalCord) {
3334         output.WriteRawTag(202, 1);
3335         output.WriteString(OptionalCord);
3336       }
3337       if (optionalPublicImportMessage_ != null) {
3338         output.WriteRawTag(210, 1);
3339         output.WriteMessage(OptionalPublicImportMessage);
3340       }
3341       if (optionalLazyMessage_ != null) {
3342         output.WriteRawTag(218, 1);
3343         output.WriteMessage(OptionalLazyMessage);
3344       }
3345       repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
3346       repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
3347       repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec);
3348       repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
3349       repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec);
3350       repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec);
3351       repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
3352       repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
3353       repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec);
3354       repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec);
3355       repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
3356       repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec);
3357       repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec);
3358       repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec);
3359       repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec);
3360       repeatedGroup_.WriteTo(ref output, _repeated_repeatedGroup_codec);
3361       repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec);
3362       repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec);
3363       repeatedImportMessage_.WriteTo(ref output, _repeated_repeatedImportMessage_codec);
3364       repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec);
3365       repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec);
3366       repeatedImportEnum_.WriteTo(ref output, _repeated_repeatedImportEnum_codec);
3367       repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec);
3368       repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec);
3369       repeatedLazyMessage_.WriteTo(ref output, _repeated_repeatedLazyMessage_codec);
3370       if (HasDefaultInt32) {
3371         output.WriteRawTag(232, 3);
3372         output.WriteInt32(DefaultInt32);
3373       }
3374       if (HasDefaultInt64) {
3375         output.WriteRawTag(240, 3);
3376         output.WriteInt64(DefaultInt64);
3377       }
3378       if (HasDefaultUint32) {
3379         output.WriteRawTag(248, 3);
3380         output.WriteUInt32(DefaultUint32);
3381       }
3382       if (HasDefaultUint64) {
3383         output.WriteRawTag(128, 4);
3384         output.WriteUInt64(DefaultUint64);
3385       }
3386       if (HasDefaultSint32) {
3387         output.WriteRawTag(136, 4);
3388         output.WriteSInt32(DefaultSint32);
3389       }
3390       if (HasDefaultSint64) {
3391         output.WriteRawTag(144, 4);
3392         output.WriteSInt64(DefaultSint64);
3393       }
3394       if (HasDefaultFixed32) {
3395         output.WriteRawTag(157, 4);
3396         output.WriteFixed32(DefaultFixed32);
3397       }
3398       if (HasDefaultFixed64) {
3399         output.WriteRawTag(161, 4);
3400         output.WriteFixed64(DefaultFixed64);
3401       }
3402       if (HasDefaultSfixed32) {
3403         output.WriteRawTag(173, 4);
3404         output.WriteSFixed32(DefaultSfixed32);
3405       }
3406       if (HasDefaultSfixed64) {
3407         output.WriteRawTag(177, 4);
3408         output.WriteSFixed64(DefaultSfixed64);
3409       }
3410       if (HasDefaultFloat) {
3411         output.WriteRawTag(189, 4);
3412         output.WriteFloat(DefaultFloat);
3413       }
3414       if (HasDefaultDouble) {
3415         output.WriteRawTag(193, 4);
3416         output.WriteDouble(DefaultDouble);
3417       }
3418       if (HasDefaultBool) {
3419         output.WriteRawTag(200, 4);
3420         output.WriteBool(DefaultBool);
3421       }
3422       if (HasDefaultString) {
3423         output.WriteRawTag(210, 4);
3424         output.WriteString(DefaultString);
3425       }
3426       if (HasDefaultBytes) {
3427         output.WriteRawTag(218, 4);
3428         output.WriteBytes(DefaultBytes);
3429       }
3430       if (HasDefaultNestedEnum) {
3431         output.WriteRawTag(136, 5);
3432         output.WriteEnum((int) DefaultNestedEnum);
3433       }
3434       if (HasDefaultForeignEnum) {
3435         output.WriteRawTag(144, 5);
3436         output.WriteEnum((int) DefaultForeignEnum);
3437       }
3438       if (HasDefaultImportEnum) {
3439         output.WriteRawTag(152, 5);
3440         output.WriteEnum((int) DefaultImportEnum);
3441       }
3442       if (HasDefaultStringPiece) {
3443         output.WriteRawTag(162, 5);
3444         output.WriteString(DefaultStringPiece);
3445       }
3446       if (HasDefaultCord) {
3447         output.WriteRawTag(170, 5);
3448         output.WriteString(DefaultCord);
3449       }
3450       if (HasOneofUint32) {
3451         output.WriteRawTag(248, 6);
3452         output.WriteUInt32(OneofUint32);
3453       }
3454       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3455         output.WriteRawTag(130, 7);
3456         output.WriteMessage(OneofNestedMessage);
3457       }
3458       if (HasOneofString) {
3459         output.WriteRawTag(138, 7);
3460         output.WriteString(OneofString);
3461       }
3462       if (HasOneofBytes) {
3463         output.WriteRawTag(146, 7);
3464         output.WriteBytes(OneofBytes);
3465       }
3466       if (_unknownFields != null) {
3467         _unknownFields.WriteTo(ref output);
3468       }
3469     }
3470     #endif
3471 
3472     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3473     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()3474     public int CalculateSize() {
3475       int size = 0;
3476       if (HasOptionalInt32) {
3477         size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
3478       }
3479       if (HasOptionalInt64) {
3480         size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
3481       }
3482       if (HasOptionalUint32) {
3483         size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
3484       }
3485       if (HasOptionalUint64) {
3486         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
3487       }
3488       if (HasOptionalSint32) {
3489         size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
3490       }
3491       if (HasOptionalSint64) {
3492         size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
3493       }
3494       if (HasOptionalFixed32) {
3495         size += 1 + 4;
3496       }
3497       if (HasOptionalFixed64) {
3498         size += 1 + 8;
3499       }
3500       if (HasOptionalSfixed32) {
3501         size += 1 + 4;
3502       }
3503       if (HasOptionalSfixed64) {
3504         size += 1 + 8;
3505       }
3506       if (HasOptionalFloat) {
3507         size += 1 + 4;
3508       }
3509       if (HasOptionalDouble) {
3510         size += 1 + 8;
3511       }
3512       if (HasOptionalBool) {
3513         size += 1 + 1;
3514       }
3515       if (HasOptionalString) {
3516         size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
3517       }
3518       if (HasOptionalBytes) {
3519         size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
3520       }
3521       if (HasOptionalGroup) {
3522         size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
3523       }
3524       if (optionalNestedMessage_ != null) {
3525         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
3526       }
3527       if (optionalForeignMessage_ != null) {
3528         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
3529       }
3530       if (optionalImportMessage_ != null) {
3531         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalImportMessage);
3532       }
3533       if (HasOptionalNestedEnum) {
3534         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
3535       }
3536       if (HasOptionalForeignEnum) {
3537         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
3538       }
3539       if (HasOptionalImportEnum) {
3540         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalImportEnum);
3541       }
3542       if (HasOptionalStringPiece) {
3543         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
3544       }
3545       if (HasOptionalCord) {
3546         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
3547       }
3548       if (optionalPublicImportMessage_ != null) {
3549         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalPublicImportMessage);
3550       }
3551       if (optionalLazyMessage_ != null) {
3552         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalLazyMessage);
3553       }
3554       size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
3555       size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
3556       size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
3557       size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
3558       size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
3559       size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
3560       size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
3561       size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
3562       size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
3563       size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
3564       size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
3565       size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
3566       size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
3567       size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
3568       size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
3569       size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
3570       size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
3571       size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
3572       size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec);
3573       size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
3574       size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
3575       size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec);
3576       size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
3577       size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
3578       size += repeatedLazyMessage_.CalculateSize(_repeated_repeatedLazyMessage_codec);
3579       if (HasDefaultInt32) {
3580         size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32);
3581       }
3582       if (HasDefaultInt64) {
3583         size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64);
3584       }
3585       if (HasDefaultUint32) {
3586         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32);
3587       }
3588       if (HasDefaultUint64) {
3589         size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64);
3590       }
3591       if (HasDefaultSint32) {
3592         size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32);
3593       }
3594       if (HasDefaultSint64) {
3595         size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64);
3596       }
3597       if (HasDefaultFixed32) {
3598         size += 2 + 4;
3599       }
3600       if (HasDefaultFixed64) {
3601         size += 2 + 8;
3602       }
3603       if (HasDefaultSfixed32) {
3604         size += 2 + 4;
3605       }
3606       if (HasDefaultSfixed64) {
3607         size += 2 + 8;
3608       }
3609       if (HasDefaultFloat) {
3610         size += 2 + 4;
3611       }
3612       if (HasDefaultDouble) {
3613         size += 2 + 8;
3614       }
3615       if (HasDefaultBool) {
3616         size += 2 + 1;
3617       }
3618       if (HasDefaultString) {
3619         size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString);
3620       }
3621       if (HasDefaultBytes) {
3622         size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes);
3623       }
3624       if (HasDefaultNestedEnum) {
3625         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultNestedEnum);
3626       }
3627       if (HasDefaultForeignEnum) {
3628         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultForeignEnum);
3629       }
3630       if (HasDefaultImportEnum) {
3631         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultImportEnum);
3632       }
3633       if (HasDefaultStringPiece) {
3634         size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultStringPiece);
3635       }
3636       if (HasDefaultCord) {
3637         size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultCord);
3638       }
3639       if (HasOneofUint32) {
3640         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
3641       }
3642       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3643         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
3644       }
3645       if (HasOneofString) {
3646         size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
3647       }
3648       if (HasOneofBytes) {
3649         size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
3650       }
3651       if (_unknownFields != null) {
3652         size += _unknownFields.CalculateSize();
3653       }
3654       return size;
3655     }
3656 
3657     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3658     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestAllTypes other)3659     public void MergeFrom(TestAllTypes other) {
3660       if (other == null) {
3661         return;
3662       }
3663       if (other.HasOptionalInt32) {
3664         OptionalInt32 = other.OptionalInt32;
3665       }
3666       if (other.HasOptionalInt64) {
3667         OptionalInt64 = other.OptionalInt64;
3668       }
3669       if (other.HasOptionalUint32) {
3670         OptionalUint32 = other.OptionalUint32;
3671       }
3672       if (other.HasOptionalUint64) {
3673         OptionalUint64 = other.OptionalUint64;
3674       }
3675       if (other.HasOptionalSint32) {
3676         OptionalSint32 = other.OptionalSint32;
3677       }
3678       if (other.HasOptionalSint64) {
3679         OptionalSint64 = other.OptionalSint64;
3680       }
3681       if (other.HasOptionalFixed32) {
3682         OptionalFixed32 = other.OptionalFixed32;
3683       }
3684       if (other.HasOptionalFixed64) {
3685         OptionalFixed64 = other.OptionalFixed64;
3686       }
3687       if (other.HasOptionalSfixed32) {
3688         OptionalSfixed32 = other.OptionalSfixed32;
3689       }
3690       if (other.HasOptionalSfixed64) {
3691         OptionalSfixed64 = other.OptionalSfixed64;
3692       }
3693       if (other.HasOptionalFloat) {
3694         OptionalFloat = other.OptionalFloat;
3695       }
3696       if (other.HasOptionalDouble) {
3697         OptionalDouble = other.OptionalDouble;
3698       }
3699       if (other.HasOptionalBool) {
3700         OptionalBool = other.OptionalBool;
3701       }
3702       if (other.HasOptionalString) {
3703         OptionalString = other.OptionalString;
3704       }
3705       if (other.HasOptionalBytes) {
3706         OptionalBytes = other.OptionalBytes;
3707       }
3708       if (other.HasOptionalGroup) {
3709         if (!HasOptionalGroup) {
3710           OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
3711         }
3712         OptionalGroup.MergeFrom(other.OptionalGroup);
3713       }
3714       if (other.optionalNestedMessage_ != null) {
3715         if (optionalNestedMessage_ == null) {
3716           OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3717         }
3718         OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
3719       }
3720       if (other.optionalForeignMessage_ != null) {
3721         if (optionalForeignMessage_ == null) {
3722           OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
3723         }
3724         OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
3725       }
3726       if (other.optionalImportMessage_ != null) {
3727         if (optionalImportMessage_ == null) {
3728           OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
3729         }
3730         OptionalImportMessage.MergeFrom(other.OptionalImportMessage);
3731       }
3732       if (other.HasOptionalNestedEnum) {
3733         OptionalNestedEnum = other.OptionalNestedEnum;
3734       }
3735       if (other.HasOptionalForeignEnum) {
3736         OptionalForeignEnum = other.OptionalForeignEnum;
3737       }
3738       if (other.HasOptionalImportEnum) {
3739         OptionalImportEnum = other.OptionalImportEnum;
3740       }
3741       if (other.HasOptionalStringPiece) {
3742         OptionalStringPiece = other.OptionalStringPiece;
3743       }
3744       if (other.HasOptionalCord) {
3745         OptionalCord = other.OptionalCord;
3746       }
3747       if (other.optionalPublicImportMessage_ != null) {
3748         if (optionalPublicImportMessage_ == null) {
3749           OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
3750         }
3751         OptionalPublicImportMessage.MergeFrom(other.OptionalPublicImportMessage);
3752       }
3753       if (other.optionalLazyMessage_ != null) {
3754         if (optionalLazyMessage_ == null) {
3755           OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3756         }
3757         OptionalLazyMessage.MergeFrom(other.OptionalLazyMessage);
3758       }
3759       repeatedInt32_.Add(other.repeatedInt32_);
3760       repeatedInt64_.Add(other.repeatedInt64_);
3761       repeatedUint32_.Add(other.repeatedUint32_);
3762       repeatedUint64_.Add(other.repeatedUint64_);
3763       repeatedSint32_.Add(other.repeatedSint32_);
3764       repeatedSint64_.Add(other.repeatedSint64_);
3765       repeatedFixed32_.Add(other.repeatedFixed32_);
3766       repeatedFixed64_.Add(other.repeatedFixed64_);
3767       repeatedSfixed32_.Add(other.repeatedSfixed32_);
3768       repeatedSfixed64_.Add(other.repeatedSfixed64_);
3769       repeatedFloat_.Add(other.repeatedFloat_);
3770       repeatedDouble_.Add(other.repeatedDouble_);
3771       repeatedBool_.Add(other.repeatedBool_);
3772       repeatedString_.Add(other.repeatedString_);
3773       repeatedBytes_.Add(other.repeatedBytes_);
3774       repeatedGroup_.Add(other.repeatedGroup_);
3775       repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
3776       repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
3777       repeatedImportMessage_.Add(other.repeatedImportMessage_);
3778       repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
3779       repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
3780       repeatedImportEnum_.Add(other.repeatedImportEnum_);
3781       repeatedStringPiece_.Add(other.repeatedStringPiece_);
3782       repeatedCord_.Add(other.repeatedCord_);
3783       repeatedLazyMessage_.Add(other.repeatedLazyMessage_);
3784       if (other.HasDefaultInt32) {
3785         DefaultInt32 = other.DefaultInt32;
3786       }
3787       if (other.HasDefaultInt64) {
3788         DefaultInt64 = other.DefaultInt64;
3789       }
3790       if (other.HasDefaultUint32) {
3791         DefaultUint32 = other.DefaultUint32;
3792       }
3793       if (other.HasDefaultUint64) {
3794         DefaultUint64 = other.DefaultUint64;
3795       }
3796       if (other.HasDefaultSint32) {
3797         DefaultSint32 = other.DefaultSint32;
3798       }
3799       if (other.HasDefaultSint64) {
3800         DefaultSint64 = other.DefaultSint64;
3801       }
3802       if (other.HasDefaultFixed32) {
3803         DefaultFixed32 = other.DefaultFixed32;
3804       }
3805       if (other.HasDefaultFixed64) {
3806         DefaultFixed64 = other.DefaultFixed64;
3807       }
3808       if (other.HasDefaultSfixed32) {
3809         DefaultSfixed32 = other.DefaultSfixed32;
3810       }
3811       if (other.HasDefaultSfixed64) {
3812         DefaultSfixed64 = other.DefaultSfixed64;
3813       }
3814       if (other.HasDefaultFloat) {
3815         DefaultFloat = other.DefaultFloat;
3816       }
3817       if (other.HasDefaultDouble) {
3818         DefaultDouble = other.DefaultDouble;
3819       }
3820       if (other.HasDefaultBool) {
3821         DefaultBool = other.DefaultBool;
3822       }
3823       if (other.HasDefaultString) {
3824         DefaultString = other.DefaultString;
3825       }
3826       if (other.HasDefaultBytes) {
3827         DefaultBytes = other.DefaultBytes;
3828       }
3829       if (other.HasDefaultNestedEnum) {
3830         DefaultNestedEnum = other.DefaultNestedEnum;
3831       }
3832       if (other.HasDefaultForeignEnum) {
3833         DefaultForeignEnum = other.DefaultForeignEnum;
3834       }
3835       if (other.HasDefaultImportEnum) {
3836         DefaultImportEnum = other.DefaultImportEnum;
3837       }
3838       if (other.HasDefaultStringPiece) {
3839         DefaultStringPiece = other.DefaultStringPiece;
3840       }
3841       if (other.HasDefaultCord) {
3842         DefaultCord = other.DefaultCord;
3843       }
3844       switch (other.OneofFieldCase) {
3845         case OneofFieldOneofCase.OneofUint32:
3846           OneofUint32 = other.OneofUint32;
3847           break;
3848         case OneofFieldOneofCase.OneofNestedMessage:
3849           if (OneofNestedMessage == null) {
3850             OneofNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3851           }
3852           OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
3853           break;
3854         case OneofFieldOneofCase.OneofString:
3855           OneofString = other.OneofString;
3856           break;
3857         case OneofFieldOneofCase.OneofBytes:
3858           OneofBytes = other.OneofBytes;
3859           break;
3860       }
3861 
3862       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3863     }
3864 
3865     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3866     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)3867     public void MergeFrom(pb::CodedInputStream input) {
3868     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3869       input.ReadRawMessage(this);
3870     #else
3871       uint tag;
3872       while ((tag = input.ReadTag()) != 0) {
3873         switch(tag) {
3874           default:
3875             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3876             break;
3877           case 8: {
3878             OptionalInt32 = input.ReadInt32();
3879             break;
3880           }
3881           case 16: {
3882             OptionalInt64 = input.ReadInt64();
3883             break;
3884           }
3885           case 24: {
3886             OptionalUint32 = input.ReadUInt32();
3887             break;
3888           }
3889           case 32: {
3890             OptionalUint64 = input.ReadUInt64();
3891             break;
3892           }
3893           case 40: {
3894             OptionalSint32 = input.ReadSInt32();
3895             break;
3896           }
3897           case 48: {
3898             OptionalSint64 = input.ReadSInt64();
3899             break;
3900           }
3901           case 61: {
3902             OptionalFixed32 = input.ReadFixed32();
3903             break;
3904           }
3905           case 65: {
3906             OptionalFixed64 = input.ReadFixed64();
3907             break;
3908           }
3909           case 77: {
3910             OptionalSfixed32 = input.ReadSFixed32();
3911             break;
3912           }
3913           case 81: {
3914             OptionalSfixed64 = input.ReadSFixed64();
3915             break;
3916           }
3917           case 93: {
3918             OptionalFloat = input.ReadFloat();
3919             break;
3920           }
3921           case 97: {
3922             OptionalDouble = input.ReadDouble();
3923             break;
3924           }
3925           case 104: {
3926             OptionalBool = input.ReadBool();
3927             break;
3928           }
3929           case 114: {
3930             OptionalString = input.ReadString();
3931             break;
3932           }
3933           case 122: {
3934             OptionalBytes = input.ReadBytes();
3935             break;
3936           }
3937           case 131: {
3938             if (!HasOptionalGroup) {
3939               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
3940             }
3941             input.ReadGroup(OptionalGroup);
3942             break;
3943           }
3944           case 146: {
3945             if (optionalNestedMessage_ == null) {
3946               OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3947             }
3948             input.ReadMessage(OptionalNestedMessage);
3949             break;
3950           }
3951           case 154: {
3952             if (optionalForeignMessage_ == null) {
3953               OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
3954             }
3955             input.ReadMessage(OptionalForeignMessage);
3956             break;
3957           }
3958           case 162: {
3959             if (optionalImportMessage_ == null) {
3960               OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
3961             }
3962             input.ReadMessage(OptionalImportMessage);
3963             break;
3964           }
3965           case 168: {
3966             OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
3967             break;
3968           }
3969           case 176: {
3970             OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
3971             break;
3972           }
3973           case 184: {
3974             OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
3975             break;
3976           }
3977           case 194: {
3978             OptionalStringPiece = input.ReadString();
3979             break;
3980           }
3981           case 202: {
3982             OptionalCord = input.ReadString();
3983             break;
3984           }
3985           case 210: {
3986             if (optionalPublicImportMessage_ == null) {
3987               OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
3988             }
3989             input.ReadMessage(OptionalPublicImportMessage);
3990             break;
3991           }
3992           case 218: {
3993             if (optionalLazyMessage_ == null) {
3994               OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3995             }
3996             input.ReadMessage(OptionalLazyMessage);
3997             break;
3998           }
3999           case 250:
4000           case 248: {
4001             repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
4002             break;
4003           }
4004           case 258:
4005           case 256: {
4006             repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
4007             break;
4008           }
4009           case 266:
4010           case 264: {
4011             repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
4012             break;
4013           }
4014           case 274:
4015           case 272: {
4016             repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
4017             break;
4018           }
4019           case 282:
4020           case 280: {
4021             repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
4022             break;
4023           }
4024           case 290:
4025           case 288: {
4026             repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
4027             break;
4028           }
4029           case 298:
4030           case 301: {
4031             repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
4032             break;
4033           }
4034           case 306:
4035           case 305: {
4036             repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
4037             break;
4038           }
4039           case 314:
4040           case 317: {
4041             repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
4042             break;
4043           }
4044           case 322:
4045           case 321: {
4046             repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
4047             break;
4048           }
4049           case 330:
4050           case 333: {
4051             repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
4052             break;
4053           }
4054           case 338:
4055           case 337: {
4056             repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
4057             break;
4058           }
4059           case 346:
4060           case 344: {
4061             repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
4062             break;
4063           }
4064           case 354: {
4065             repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
4066             break;
4067           }
4068           case 362: {
4069             repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
4070             break;
4071           }
4072           case 371: {
4073             repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
4074             break;
4075           }
4076           case 386: {
4077             repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
4078             break;
4079           }
4080           case 394: {
4081             repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
4082             break;
4083           }
4084           case 402: {
4085             repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec);
4086             break;
4087           }
4088           case 410:
4089           case 408: {
4090             repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
4091             break;
4092           }
4093           case 418:
4094           case 416: {
4095             repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
4096             break;
4097           }
4098           case 426:
4099           case 424: {
4100             repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec);
4101             break;
4102           }
4103           case 434: {
4104             repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
4105             break;
4106           }
4107           case 442: {
4108             repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
4109             break;
4110           }
4111           case 458: {
4112             repeatedLazyMessage_.AddEntriesFrom(input, _repeated_repeatedLazyMessage_codec);
4113             break;
4114           }
4115           case 488: {
4116             DefaultInt32 = input.ReadInt32();
4117             break;
4118           }
4119           case 496: {
4120             DefaultInt64 = input.ReadInt64();
4121             break;
4122           }
4123           case 504: {
4124             DefaultUint32 = input.ReadUInt32();
4125             break;
4126           }
4127           case 512: {
4128             DefaultUint64 = input.ReadUInt64();
4129             break;
4130           }
4131           case 520: {
4132             DefaultSint32 = input.ReadSInt32();
4133             break;
4134           }
4135           case 528: {
4136             DefaultSint64 = input.ReadSInt64();
4137             break;
4138           }
4139           case 541: {
4140             DefaultFixed32 = input.ReadFixed32();
4141             break;
4142           }
4143           case 545: {
4144             DefaultFixed64 = input.ReadFixed64();
4145             break;
4146           }
4147           case 557: {
4148             DefaultSfixed32 = input.ReadSFixed32();
4149             break;
4150           }
4151           case 561: {
4152             DefaultSfixed64 = input.ReadSFixed64();
4153             break;
4154           }
4155           case 573: {
4156             DefaultFloat = input.ReadFloat();
4157             break;
4158           }
4159           case 577: {
4160             DefaultDouble = input.ReadDouble();
4161             break;
4162           }
4163           case 584: {
4164             DefaultBool = input.ReadBool();
4165             break;
4166           }
4167           case 594: {
4168             DefaultString = input.ReadString();
4169             break;
4170           }
4171           case 602: {
4172             DefaultBytes = input.ReadBytes();
4173             break;
4174           }
4175           case 648: {
4176             DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
4177             break;
4178           }
4179           case 656: {
4180             DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
4181             break;
4182           }
4183           case 664: {
4184             DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
4185             break;
4186           }
4187           case 674: {
4188             DefaultStringPiece = input.ReadString();
4189             break;
4190           }
4191           case 682: {
4192             DefaultCord = input.ReadString();
4193             break;
4194           }
4195           case 888: {
4196             OneofUint32 = input.ReadUInt32();
4197             break;
4198           }
4199           case 898: {
4200             global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
4201             if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
4202               subBuilder.MergeFrom(OneofNestedMessage);
4203             }
4204             input.ReadMessage(subBuilder);
4205             OneofNestedMessage = subBuilder;
4206             break;
4207           }
4208           case 906: {
4209             OneofString = input.ReadString();
4210             break;
4211           }
4212           case 914: {
4213             OneofBytes = input.ReadBytes();
4214             break;
4215           }
4216         }
4217       }
4218     #endif
4219     }
4220 
4221     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4222     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4223     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4224     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4225       uint tag;
4226       while ((tag = input.ReadTag()) != 0) {
4227         switch(tag) {
4228           default:
4229             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4230             break;
4231           case 8: {
4232             OptionalInt32 = input.ReadInt32();
4233             break;
4234           }
4235           case 16: {
4236             OptionalInt64 = input.ReadInt64();
4237             break;
4238           }
4239           case 24: {
4240             OptionalUint32 = input.ReadUInt32();
4241             break;
4242           }
4243           case 32: {
4244             OptionalUint64 = input.ReadUInt64();
4245             break;
4246           }
4247           case 40: {
4248             OptionalSint32 = input.ReadSInt32();
4249             break;
4250           }
4251           case 48: {
4252             OptionalSint64 = input.ReadSInt64();
4253             break;
4254           }
4255           case 61: {
4256             OptionalFixed32 = input.ReadFixed32();
4257             break;
4258           }
4259           case 65: {
4260             OptionalFixed64 = input.ReadFixed64();
4261             break;
4262           }
4263           case 77: {
4264             OptionalSfixed32 = input.ReadSFixed32();
4265             break;
4266           }
4267           case 81: {
4268             OptionalSfixed64 = input.ReadSFixed64();
4269             break;
4270           }
4271           case 93: {
4272             OptionalFloat = input.ReadFloat();
4273             break;
4274           }
4275           case 97: {
4276             OptionalDouble = input.ReadDouble();
4277             break;
4278           }
4279           case 104: {
4280             OptionalBool = input.ReadBool();
4281             break;
4282           }
4283           case 114: {
4284             OptionalString = input.ReadString();
4285             break;
4286           }
4287           case 122: {
4288             OptionalBytes = input.ReadBytes();
4289             break;
4290           }
4291           case 131: {
4292             if (!HasOptionalGroup) {
4293               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
4294             }
4295             input.ReadGroup(OptionalGroup);
4296             break;
4297           }
4298           case 146: {
4299             if (optionalNestedMessage_ == null) {
4300               OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
4301             }
4302             input.ReadMessage(OptionalNestedMessage);
4303             break;
4304           }
4305           case 154: {
4306             if (optionalForeignMessage_ == null) {
4307               OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
4308             }
4309             input.ReadMessage(OptionalForeignMessage);
4310             break;
4311           }
4312           case 162: {
4313             if (optionalImportMessage_ == null) {
4314               OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
4315             }
4316             input.ReadMessage(OptionalImportMessage);
4317             break;
4318           }
4319           case 168: {
4320             OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
4321             break;
4322           }
4323           case 176: {
4324             OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
4325             break;
4326           }
4327           case 184: {
4328             OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
4329             break;
4330           }
4331           case 194: {
4332             OptionalStringPiece = input.ReadString();
4333             break;
4334           }
4335           case 202: {
4336             OptionalCord = input.ReadString();
4337             break;
4338           }
4339           case 210: {
4340             if (optionalPublicImportMessage_ == null) {
4341               OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
4342             }
4343             input.ReadMessage(OptionalPublicImportMessage);
4344             break;
4345           }
4346           case 218: {
4347             if (optionalLazyMessage_ == null) {
4348               OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
4349             }
4350             input.ReadMessage(OptionalLazyMessage);
4351             break;
4352           }
4353           case 250:
4354           case 248: {
4355             repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
4356             break;
4357           }
4358           case 258:
4359           case 256: {
4360             repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
4361             break;
4362           }
4363           case 266:
4364           case 264: {
4365             repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec);
4366             break;
4367           }
4368           case 274:
4369           case 272: {
4370             repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
4371             break;
4372           }
4373           case 282:
4374           case 280: {
4375             repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec);
4376             break;
4377           }
4378           case 290:
4379           case 288: {
4380             repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec);
4381             break;
4382           }
4383           case 298:
4384           case 301: {
4385             repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
4386             break;
4387           }
4388           case 306:
4389           case 305: {
4390             repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
4391             break;
4392           }
4393           case 314:
4394           case 317: {
4395             repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec);
4396             break;
4397           }
4398           case 322:
4399           case 321: {
4400             repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec);
4401             break;
4402           }
4403           case 330:
4404           case 333: {
4405             repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
4406             break;
4407           }
4408           case 338:
4409           case 337: {
4410             repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec);
4411             break;
4412           }
4413           case 346:
4414           case 344: {
4415             repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec);
4416             break;
4417           }
4418           case 354: {
4419             repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec);
4420             break;
4421           }
4422           case 362: {
4423             repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec);
4424             break;
4425           }
4426           case 371: {
4427             repeatedGroup_.AddEntriesFrom(ref input, _repeated_repeatedGroup_codec);
4428             break;
4429           }
4430           case 386: {
4431             repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec);
4432             break;
4433           }
4434           case 394: {
4435             repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec);
4436             break;
4437           }
4438           case 402: {
4439             repeatedImportMessage_.AddEntriesFrom(ref input, _repeated_repeatedImportMessage_codec);
4440             break;
4441           }
4442           case 410:
4443           case 408: {
4444             repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec);
4445             break;
4446           }
4447           case 418:
4448           case 416: {
4449             repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec);
4450             break;
4451           }
4452           case 426:
4453           case 424: {
4454             repeatedImportEnum_.AddEntriesFrom(ref input, _repeated_repeatedImportEnum_codec);
4455             break;
4456           }
4457           case 434: {
4458             repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec);
4459             break;
4460           }
4461           case 442: {
4462             repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec);
4463             break;
4464           }
4465           case 458: {
4466             repeatedLazyMessage_.AddEntriesFrom(ref input, _repeated_repeatedLazyMessage_codec);
4467             break;
4468           }
4469           case 488: {
4470             DefaultInt32 = input.ReadInt32();
4471             break;
4472           }
4473           case 496: {
4474             DefaultInt64 = input.ReadInt64();
4475             break;
4476           }
4477           case 504: {
4478             DefaultUint32 = input.ReadUInt32();
4479             break;
4480           }
4481           case 512: {
4482             DefaultUint64 = input.ReadUInt64();
4483             break;
4484           }
4485           case 520: {
4486             DefaultSint32 = input.ReadSInt32();
4487             break;
4488           }
4489           case 528: {
4490             DefaultSint64 = input.ReadSInt64();
4491             break;
4492           }
4493           case 541: {
4494             DefaultFixed32 = input.ReadFixed32();
4495             break;
4496           }
4497           case 545: {
4498             DefaultFixed64 = input.ReadFixed64();
4499             break;
4500           }
4501           case 557: {
4502             DefaultSfixed32 = input.ReadSFixed32();
4503             break;
4504           }
4505           case 561: {
4506             DefaultSfixed64 = input.ReadSFixed64();
4507             break;
4508           }
4509           case 573: {
4510             DefaultFloat = input.ReadFloat();
4511             break;
4512           }
4513           case 577: {
4514             DefaultDouble = input.ReadDouble();
4515             break;
4516           }
4517           case 584: {
4518             DefaultBool = input.ReadBool();
4519             break;
4520           }
4521           case 594: {
4522             DefaultString = input.ReadString();
4523             break;
4524           }
4525           case 602: {
4526             DefaultBytes = input.ReadBytes();
4527             break;
4528           }
4529           case 648: {
4530             DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
4531             break;
4532           }
4533           case 656: {
4534             DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
4535             break;
4536           }
4537           case 664: {
4538             DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
4539             break;
4540           }
4541           case 674: {
4542             DefaultStringPiece = input.ReadString();
4543             break;
4544           }
4545           case 682: {
4546             DefaultCord = input.ReadString();
4547             break;
4548           }
4549           case 888: {
4550             OneofUint32 = input.ReadUInt32();
4551             break;
4552           }
4553           case 898: {
4554             global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
4555             if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
4556               subBuilder.MergeFrom(OneofNestedMessage);
4557             }
4558             input.ReadMessage(subBuilder);
4559             OneofNestedMessage = subBuilder;
4560             break;
4561           }
4562           case 906: {
4563             OneofString = input.ReadString();
4564             break;
4565           }
4566           case 914: {
4567             OneofBytes = input.ReadBytes();
4568             break;
4569           }
4570         }
4571       }
4572     }
4573     #endif
4574 
4575     #region Nested types
4576     /// <summary>Container for nested types declared in the TestAllTypes message type.</summary>
4577     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4578     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4579     public static partial class Types {
4580       public enum NestedEnum {
4581         [pbr::OriginalName("FOO")] Foo = 1,
4582         [pbr::OriginalName("BAR")] Bar = 2,
4583         [pbr::OriginalName("BAZ")] Baz = 3,
4584         /// <summary>
4585         /// Intentionally negative.
4586         /// </summary>
4587         [pbr::OriginalName("NEG")] Neg = -1,
4588       }
4589 
4590       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
4591       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4592           , pb::IBufferMessage
4593       #endif
4594       {
4595         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
4596         private pb::UnknownFieldSet _unknownFields;
4597         private int _hasBits0;
4598         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4599         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4600         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
4601 
4602         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4603         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4604         public static pbr::MessageDescriptor Descriptor {
4605           get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[0]; }
4606         }
4607 
4608         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4609         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4610         pbr::MessageDescriptor pb::IMessage.Descriptor {
4611           get { return Descriptor; }
4612         }
4613 
4614         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4615         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()4616         public NestedMessage() {
4617           OnConstruction();
4618         }
4619 
OnConstruction()4620         partial void OnConstruction();
4621 
4622         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4623         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)4624         public NestedMessage(NestedMessage other) : this() {
4625           _hasBits0 = other._hasBits0;
4626           bb_ = other.bb_;
4627           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4628         }
4629 
4630         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4631         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()4632         public NestedMessage Clone() {
4633           return new NestedMessage(this);
4634         }
4635 
4636         /// <summary>Field number for the "bb" field.</summary>
4637         public const int BbFieldNumber = 1;
4638         private readonly static int BbDefaultValue = 0;
4639 
4640         private int bb_;
4641         /// <summary>
4642         /// The field name "b" fails to compile in proto1 because it conflicts with
4643         /// a local variable named "b" in one of the generated methods.  Doh.
4644         /// This file needs to compile in proto1 to test backwards-compatibility.
4645         /// </summary>
4646         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4647         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4648         public int Bb {
4649           get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
4650           set {
4651             _hasBits0 |= 1;
4652             bb_ = value;
4653           }
4654         }
4655         /// <summary>Gets whether the "bb" field is set</summary>
4656         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4657         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4658         public bool HasBb {
4659           get { return (_hasBits0 & 1) != 0; }
4660         }
4661         /// <summary>Clears the value of the "bb" field</summary>
4662         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4663         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBb()4664         public void ClearBb() {
4665           _hasBits0 &= ~1;
4666         }
4667 
4668         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4669         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)4670         public override bool Equals(object other) {
4671           return Equals(other as NestedMessage);
4672         }
4673 
4674         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4675         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)4676         public bool Equals(NestedMessage other) {
4677           if (ReferenceEquals(other, null)) {
4678             return false;
4679           }
4680           if (ReferenceEquals(other, this)) {
4681             return true;
4682           }
4683           if (Bb != other.Bb) return false;
4684           return Equals(_unknownFields, other._unknownFields);
4685         }
4686 
4687         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4688         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()4689         public override int GetHashCode() {
4690           int hash = 1;
4691           if (HasBb) hash ^= Bb.GetHashCode();
4692           if (_unknownFields != null) {
4693             hash ^= _unknownFields.GetHashCode();
4694           }
4695           return hash;
4696         }
4697 
4698         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4699         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()4700         public override string ToString() {
4701           return pb::JsonFormatter.ToDiagnosticString(this);
4702         }
4703 
4704         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4705         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)4706         public void WriteTo(pb::CodedOutputStream output) {
4707         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4708           output.WriteRawMessage(this);
4709         #else
4710           if (HasBb) {
4711             output.WriteRawTag(8);
4712             output.WriteInt32(Bb);
4713           }
4714           if (_unknownFields != null) {
4715             _unknownFields.WriteTo(output);
4716           }
4717         #endif
4718         }
4719 
4720         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4721         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4722         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4723         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4724           if (HasBb) {
4725             output.WriteRawTag(8);
4726             output.WriteInt32(Bb);
4727           }
4728           if (_unknownFields != null) {
4729             _unknownFields.WriteTo(ref output);
4730           }
4731         }
4732         #endif
4733 
4734         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4735         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()4736         public int CalculateSize() {
4737           int size = 0;
4738           if (HasBb) {
4739             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
4740           }
4741           if (_unknownFields != null) {
4742             size += _unknownFields.CalculateSize();
4743           }
4744           return size;
4745         }
4746 
4747         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4748         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)4749         public void MergeFrom(NestedMessage other) {
4750           if (other == null) {
4751             return;
4752           }
4753           if (other.HasBb) {
4754             Bb = other.Bb;
4755           }
4756           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4757         }
4758 
4759         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4760         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)4761         public void MergeFrom(pb::CodedInputStream input) {
4762         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4763           input.ReadRawMessage(this);
4764         #else
4765           uint tag;
4766           while ((tag = input.ReadTag()) != 0) {
4767             switch(tag) {
4768               default:
4769                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4770                 break;
4771               case 8: {
4772                 Bb = input.ReadInt32();
4773                 break;
4774               }
4775             }
4776           }
4777         #endif
4778         }
4779 
4780         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4781         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4782         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4783         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4784           uint tag;
4785           while ((tag = input.ReadTag()) != 0) {
4786             switch(tag) {
4787               default:
4788                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4789                 break;
4790               case 8: {
4791                 Bb = input.ReadInt32();
4792                 break;
4793               }
4794             }
4795           }
4796         }
4797         #endif
4798 
4799       }
4800 
4801       public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
4802       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4803           , pb::IBufferMessage
4804       #endif
4805       {
4806         private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
4807         private pb::UnknownFieldSet _unknownFields;
4808         private int _hasBits0;
4809         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4810         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4811         public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
4812 
4813         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4814         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4815         public static pbr::MessageDescriptor Descriptor {
4816           get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[1]; }
4817         }
4818 
4819         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4820         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4821         pbr::MessageDescriptor pb::IMessage.Descriptor {
4822           get { return Descriptor; }
4823         }
4824 
4825         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4826         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup()4827         public OptionalGroup() {
4828           OnConstruction();
4829         }
4830 
OnConstruction()4831         partial void OnConstruction();
4832 
4833         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4834         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup(OptionalGroup other)4835         public OptionalGroup(OptionalGroup other) : this() {
4836           _hasBits0 = other._hasBits0;
4837           a_ = other.a_;
4838           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4839         }
4840 
4841         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4842         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()4843         public OptionalGroup Clone() {
4844           return new OptionalGroup(this);
4845         }
4846 
4847         /// <summary>Field number for the "a" field.</summary>
4848         public const int AFieldNumber = 17;
4849         private readonly static int ADefaultValue = 0;
4850 
4851         private int a_;
4852         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4853         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4854         public int A {
4855           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
4856           set {
4857             _hasBits0 |= 1;
4858             a_ = value;
4859           }
4860         }
4861         /// <summary>Gets whether the "a" field is set</summary>
4862         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4863         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4864         public bool HasA {
4865           get { return (_hasBits0 & 1) != 0; }
4866         }
4867         /// <summary>Clears the value of the "a" field</summary>
4868         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4869         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()4870         public void ClearA() {
4871           _hasBits0 &= ~1;
4872         }
4873 
4874         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4875         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)4876         public override bool Equals(object other) {
4877           return Equals(other as OptionalGroup);
4878         }
4879 
4880         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4881         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup other)4882         public bool Equals(OptionalGroup other) {
4883           if (ReferenceEquals(other, null)) {
4884             return false;
4885           }
4886           if (ReferenceEquals(other, this)) {
4887             return true;
4888           }
4889           if (A != other.A) return false;
4890           return Equals(_unknownFields, other._unknownFields);
4891         }
4892 
4893         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4894         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()4895         public override int GetHashCode() {
4896           int hash = 1;
4897           if (HasA) hash ^= A.GetHashCode();
4898           if (_unknownFields != null) {
4899             hash ^= _unknownFields.GetHashCode();
4900           }
4901           return hash;
4902         }
4903 
4904         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4905         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()4906         public override string ToString() {
4907           return pb::JsonFormatter.ToDiagnosticString(this);
4908         }
4909 
4910         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4911         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)4912         public void WriteTo(pb::CodedOutputStream output) {
4913         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4914           output.WriteRawMessage(this);
4915         #else
4916           if (HasA) {
4917             output.WriteRawTag(136, 1);
4918             output.WriteInt32(A);
4919           }
4920           if (_unknownFields != null) {
4921             _unknownFields.WriteTo(output);
4922           }
4923         #endif
4924         }
4925 
4926         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4927         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4928         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4929         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4930           if (HasA) {
4931             output.WriteRawTag(136, 1);
4932             output.WriteInt32(A);
4933           }
4934           if (_unknownFields != null) {
4935             _unknownFields.WriteTo(ref output);
4936           }
4937         }
4938         #endif
4939 
4940         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4941         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()4942         public int CalculateSize() {
4943           int size = 0;
4944           if (HasA) {
4945             size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
4946           }
4947           if (_unknownFields != null) {
4948             size += _unknownFields.CalculateSize();
4949           }
4950           return size;
4951         }
4952 
4953         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4954         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup other)4955         public void MergeFrom(OptionalGroup other) {
4956           if (other == null) {
4957             return;
4958           }
4959           if (other.HasA) {
4960             A = other.A;
4961           }
4962           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4963         }
4964 
4965         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4966         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)4967         public void MergeFrom(pb::CodedInputStream input) {
4968         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4969           input.ReadRawMessage(this);
4970         #else
4971           uint tag;
4972           while ((tag = input.ReadTag()) != 0) {
4973             switch(tag) {
4974               case 132:
4975                 return;
4976               default:
4977                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4978                 break;
4979               case 136: {
4980                 A = input.ReadInt32();
4981                 break;
4982               }
4983             }
4984           }
4985         #endif
4986         }
4987 
4988         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4989         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4990         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4991         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4992           uint tag;
4993           while ((tag = input.ReadTag()) != 0) {
4994             switch(tag) {
4995               case 132:
4996                 return;
4997               default:
4998                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4999                 break;
5000               case 136: {
5001                 A = input.ReadInt32();
5002                 break;
5003               }
5004             }
5005           }
5006         }
5007         #endif
5008 
5009       }
5010 
5011       public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup>
5012       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5013           , pb::IBufferMessage
5014       #endif
5015       {
5016         private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
5017         private pb::UnknownFieldSet _unknownFields;
5018         private int _hasBits0;
5019         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5020         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5021         public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
5022 
5023         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5024         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5025         public static pbr::MessageDescriptor Descriptor {
5026           get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[2]; }
5027         }
5028 
5029         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5030         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5031         pbr::MessageDescriptor pb::IMessage.Descriptor {
5032           get { return Descriptor; }
5033         }
5034 
5035         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5036         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedGroup()5037         public RepeatedGroup() {
5038           OnConstruction();
5039         }
5040 
OnConstruction()5041         partial void OnConstruction();
5042 
5043         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5044         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedGroup(RepeatedGroup other)5045         public RepeatedGroup(RepeatedGroup other) : this() {
5046           _hasBits0 = other._hasBits0;
5047           a_ = other.a_;
5048           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5049         }
5050 
5051         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5052         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5053         public RepeatedGroup Clone() {
5054           return new RepeatedGroup(this);
5055         }
5056 
5057         /// <summary>Field number for the "a" field.</summary>
5058         public const int AFieldNumber = 47;
5059         private readonly static int ADefaultValue = 0;
5060 
5061         private int a_;
5062         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5063         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5064         public int A {
5065           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
5066           set {
5067             _hasBits0 |= 1;
5068             a_ = value;
5069           }
5070         }
5071         /// <summary>Gets whether the "a" field is set</summary>
5072         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5073         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5074         public bool HasA {
5075           get { return (_hasBits0 & 1) != 0; }
5076         }
5077         /// <summary>Clears the value of the "a" field</summary>
5078         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5079         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()5080         public void ClearA() {
5081           _hasBits0 &= ~1;
5082         }
5083 
5084         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5085         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5086         public override bool Equals(object other) {
5087           return Equals(other as RepeatedGroup);
5088         }
5089 
5090         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5091         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(RepeatedGroup other)5092         public bool Equals(RepeatedGroup other) {
5093           if (ReferenceEquals(other, null)) {
5094             return false;
5095           }
5096           if (ReferenceEquals(other, this)) {
5097             return true;
5098           }
5099           if (A != other.A) return false;
5100           return Equals(_unknownFields, other._unknownFields);
5101         }
5102 
5103         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5104         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5105         public override int GetHashCode() {
5106           int hash = 1;
5107           if (HasA) hash ^= A.GetHashCode();
5108           if (_unknownFields != null) {
5109             hash ^= _unknownFields.GetHashCode();
5110           }
5111           return hash;
5112         }
5113 
5114         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5115         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5116         public override string ToString() {
5117           return pb::JsonFormatter.ToDiagnosticString(this);
5118         }
5119 
5120         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5121         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5122         public void WriteTo(pb::CodedOutputStream output) {
5123         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5124           output.WriteRawMessage(this);
5125         #else
5126           if (HasA) {
5127             output.WriteRawTag(248, 2);
5128             output.WriteInt32(A);
5129           }
5130           if (_unknownFields != null) {
5131             _unknownFields.WriteTo(output);
5132           }
5133         #endif
5134         }
5135 
5136         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5137         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5138         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5139         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5140           if (HasA) {
5141             output.WriteRawTag(248, 2);
5142             output.WriteInt32(A);
5143           }
5144           if (_unknownFields != null) {
5145             _unknownFields.WriteTo(ref output);
5146           }
5147         }
5148         #endif
5149 
5150         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5151         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5152         public int CalculateSize() {
5153           int size = 0;
5154           if (HasA) {
5155             size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
5156           }
5157           if (_unknownFields != null) {
5158             size += _unknownFields.CalculateSize();
5159           }
5160           return size;
5161         }
5162 
5163         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5164         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(RepeatedGroup other)5165         public void MergeFrom(RepeatedGroup other) {
5166           if (other == null) {
5167             return;
5168           }
5169           if (other.HasA) {
5170             A = other.A;
5171           }
5172           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5173         }
5174 
5175         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5176         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5177         public void MergeFrom(pb::CodedInputStream input) {
5178         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5179           input.ReadRawMessage(this);
5180         #else
5181           uint tag;
5182           while ((tag = input.ReadTag()) != 0) {
5183             switch(tag) {
5184               case 372:
5185                 return;
5186               default:
5187                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5188                 break;
5189               case 376: {
5190                 A = input.ReadInt32();
5191                 break;
5192               }
5193             }
5194           }
5195         #endif
5196         }
5197 
5198         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5199         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5200         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5201         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5202           uint tag;
5203           while ((tag = input.ReadTag()) != 0) {
5204             switch(tag) {
5205               case 372:
5206                 return;
5207               default:
5208                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5209                 break;
5210               case 376: {
5211                 A = input.ReadInt32();
5212                 break;
5213               }
5214             }
5215           }
5216         }
5217         #endif
5218 
5219       }
5220 
5221     }
5222     #endregion
5223 
5224   }
5225 
5226   /// <summary>
5227   /// This proto includes a recursively nested message.
5228   /// </summary>
5229   public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes>
5230   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5231       , pb::IBufferMessage
5232   #endif
5233   {
5234     private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes());
5235     private pb::UnknownFieldSet _unknownFields;
5236     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5237     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5238     public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } }
5239 
5240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5241     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5242     public static pbr::MessageDescriptor Descriptor {
5243       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[1]; }
5244     }
5245 
5246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5248     pbr::MessageDescriptor pb::IMessage.Descriptor {
5249       get { return Descriptor; }
5250     }
5251 
5252     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5253     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedTestAllTypes()5254     public NestedTestAllTypes() {
5255       OnConstruction();
5256     }
5257 
OnConstruction()5258     partial void OnConstruction();
5259 
5260     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5261     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedTestAllTypes(NestedTestAllTypes other)5262     public NestedTestAllTypes(NestedTestAllTypes other) : this() {
5263       child_ = other.child_ != null ? other.child_.Clone() : null;
5264       payload_ = other.payload_ != null ? other.payload_.Clone() : null;
5265       repeatedChild_ = other.repeatedChild_.Clone();
5266       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5267     }
5268 
5269     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5270     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5271     public NestedTestAllTypes Clone() {
5272       return new NestedTestAllTypes(this);
5273     }
5274 
5275     /// <summary>Field number for the "child" field.</summary>
5276     public const int ChildFieldNumber = 1;
5277     private global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes child_;
5278     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5279     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5280     public global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes Child {
5281       get { return child_; }
5282       set {
5283         child_ = value;
5284       }
5285     }
5286 
5287     /// <summary>Field number for the "payload" field.</summary>
5288     public const int PayloadFieldNumber = 2;
5289     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes payload_;
5290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5291     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5292     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Payload {
5293       get { return payload_; }
5294       set {
5295         payload_ = value;
5296       }
5297     }
5298 
5299     /// <summary>Field number for the "repeated_child" field.</summary>
5300     public const int RepeatedChildFieldNumber = 3;
5301     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> _repeated_repeatedChild_codec
5302         = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser);
5303     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes>();
5304     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5305     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5306     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> RepeatedChild {
5307       get { return repeatedChild_; }
5308     }
5309 
5310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5311     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5312     public override bool Equals(object other) {
5313       return Equals(other as NestedTestAllTypes);
5314     }
5315 
5316     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5317     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedTestAllTypes other)5318     public bool Equals(NestedTestAllTypes other) {
5319       if (ReferenceEquals(other, null)) {
5320         return false;
5321       }
5322       if (ReferenceEquals(other, this)) {
5323         return true;
5324       }
5325       if (!object.Equals(Child, other.Child)) return false;
5326       if (!object.Equals(Payload, other.Payload)) return false;
5327       if(!repeatedChild_.Equals(other.repeatedChild_)) return false;
5328       return Equals(_unknownFields, other._unknownFields);
5329     }
5330 
5331     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5332     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5333     public override int GetHashCode() {
5334       int hash = 1;
5335       if (child_ != null) hash ^= Child.GetHashCode();
5336       if (payload_ != null) hash ^= Payload.GetHashCode();
5337       hash ^= repeatedChild_.GetHashCode();
5338       if (_unknownFields != null) {
5339         hash ^= _unknownFields.GetHashCode();
5340       }
5341       return hash;
5342     }
5343 
5344     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5345     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5346     public override string ToString() {
5347       return pb::JsonFormatter.ToDiagnosticString(this);
5348     }
5349 
5350     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5351     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5352     public void WriteTo(pb::CodedOutputStream output) {
5353     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5354       output.WriteRawMessage(this);
5355     #else
5356       if (child_ != null) {
5357         output.WriteRawTag(10);
5358         output.WriteMessage(Child);
5359       }
5360       if (payload_ != null) {
5361         output.WriteRawTag(18);
5362         output.WriteMessage(Payload);
5363       }
5364       repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec);
5365       if (_unknownFields != null) {
5366         _unknownFields.WriteTo(output);
5367       }
5368     #endif
5369     }
5370 
5371     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5373     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5374     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5375       if (child_ != null) {
5376         output.WriteRawTag(10);
5377         output.WriteMessage(Child);
5378       }
5379       if (payload_ != null) {
5380         output.WriteRawTag(18);
5381         output.WriteMessage(Payload);
5382       }
5383       repeatedChild_.WriteTo(ref output, _repeated_repeatedChild_codec);
5384       if (_unknownFields != null) {
5385         _unknownFields.WriteTo(ref output);
5386       }
5387     }
5388     #endif
5389 
5390     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5391     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5392     public int CalculateSize() {
5393       int size = 0;
5394       if (child_ != null) {
5395         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child);
5396       }
5397       if (payload_ != null) {
5398         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
5399       }
5400       size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec);
5401       if (_unknownFields != null) {
5402         size += _unknownFields.CalculateSize();
5403       }
5404       return size;
5405     }
5406 
5407     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5408     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedTestAllTypes other)5409     public void MergeFrom(NestedTestAllTypes other) {
5410       if (other == null) {
5411         return;
5412       }
5413       if (other.child_ != null) {
5414         if (child_ == null) {
5415           Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
5416         }
5417         Child.MergeFrom(other.Child);
5418       }
5419       if (other.payload_ != null) {
5420         if (payload_ == null) {
5421           Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
5422         }
5423         Payload.MergeFrom(other.Payload);
5424       }
5425       repeatedChild_.Add(other.repeatedChild_);
5426       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5427     }
5428 
5429     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5430     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5431     public void MergeFrom(pb::CodedInputStream input) {
5432     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5433       input.ReadRawMessage(this);
5434     #else
5435       uint tag;
5436       while ((tag = input.ReadTag()) != 0) {
5437         switch(tag) {
5438           default:
5439             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5440             break;
5441           case 10: {
5442             if (child_ == null) {
5443               Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
5444             }
5445             input.ReadMessage(Child);
5446             break;
5447           }
5448           case 18: {
5449             if (payload_ == null) {
5450               Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
5451             }
5452             input.ReadMessage(Payload);
5453             break;
5454           }
5455           case 26: {
5456             repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec);
5457             break;
5458           }
5459         }
5460       }
5461     #endif
5462     }
5463 
5464     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5465     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5466     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5467     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5468       uint tag;
5469       while ((tag = input.ReadTag()) != 0) {
5470         switch(tag) {
5471           default:
5472             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5473             break;
5474           case 10: {
5475             if (child_ == null) {
5476               Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
5477             }
5478             input.ReadMessage(Child);
5479             break;
5480           }
5481           case 18: {
5482             if (payload_ == null) {
5483               Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
5484             }
5485             input.ReadMessage(Payload);
5486             break;
5487           }
5488           case 26: {
5489             repeatedChild_.AddEntriesFrom(ref input, _repeated_repeatedChild_codec);
5490             break;
5491           }
5492         }
5493       }
5494     }
5495     #endif
5496 
5497   }
5498 
5499   public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields>
5500   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5501       , pb::IBufferMessage
5502   #endif
5503   {
5504     private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields());
5505     private pb::UnknownFieldSet _unknownFields;
5506     private int _hasBits0;
5507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5508     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5509     public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } }
5510 
5511     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5512     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5513     public static pbr::MessageDescriptor Descriptor {
5514       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[2]; }
5515     }
5516 
5517     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5518     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5519     pbr::MessageDescriptor pb::IMessage.Descriptor {
5520       get { return Descriptor; }
5521     }
5522 
5523     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5524     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDeprecatedFields()5525     public TestDeprecatedFields() {
5526       OnConstruction();
5527     }
5528 
OnConstruction()5529     partial void OnConstruction();
5530 
5531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDeprecatedFields(TestDeprecatedFields other)5533     public TestDeprecatedFields(TestDeprecatedFields other) : this() {
5534       _hasBits0 = other._hasBits0;
5535       deprecatedInt32_ = other.deprecatedInt32_;
5536       switch (other.OneofFieldsCase) {
5537         case OneofFieldsOneofCase.DeprecatedInt32InOneof:
5538           DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
5539           break;
5540       }
5541 
5542       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5543     }
5544 
5545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5547     public TestDeprecatedFields Clone() {
5548       return new TestDeprecatedFields(this);
5549     }
5550 
5551     /// <summary>Field number for the "deprecated_int32" field.</summary>
5552     public const int DeprecatedInt32FieldNumber = 1;
5553     private readonly static int DeprecatedInt32DefaultValue = 0;
5554 
5555     private int deprecatedInt32_;
5556     [global::System.ObsoleteAttribute]
5557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5559     public int DeprecatedInt32 {
5560       get { if ((_hasBits0 & 1) != 0) { return deprecatedInt32_; } else { return DeprecatedInt32DefaultValue; } }
5561       set {
5562         _hasBits0 |= 1;
5563         deprecatedInt32_ = value;
5564       }
5565     }
5566     /// <summary>Gets whether the "deprecated_int32" field is set</summary>
5567     [global::System.ObsoleteAttribute]
5568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5570     public bool HasDeprecatedInt32 {
5571       get { return (_hasBits0 & 1) != 0; }
5572     }
5573     /// <summary>Clears the value of the "deprecated_int32" field</summary>
5574     [global::System.ObsoleteAttribute]
5575     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5576     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecatedInt32()5577     public void ClearDeprecatedInt32() {
5578       _hasBits0 &= ~1;
5579     }
5580 
5581     /// <summary>Field number for the "deprecated_int32_in_oneof" field.</summary>
5582     public const int DeprecatedInt32InOneofFieldNumber = 2;
5583     [global::System.ObsoleteAttribute]
5584     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5585     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5586     public int DeprecatedInt32InOneof {
5587       get { return HasDeprecatedInt32InOneof ? (int) oneofFields_ : 0; }
5588       set {
5589         oneofFields_ = value;
5590         oneofFieldsCase_ = OneofFieldsOneofCase.DeprecatedInt32InOneof;
5591       }
5592     }
5593     /// <summary>Gets whether the "deprecated_int32_in_oneof" field is set</summary>
5594     [global::System.ObsoleteAttribute]
5595     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5596     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5597     public bool HasDeprecatedInt32InOneof {
5598       get { return oneofFieldsCase_ == OneofFieldsOneofCase.DeprecatedInt32InOneof; }
5599     }
5600     /// <summary> Clears the value of the oneof if it's currently set to "deprecated_int32_in_oneof" </summary>
5601     [global::System.ObsoleteAttribute]
5602     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5603     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecatedInt32InOneof()5604     public void ClearDeprecatedInt32InOneof() {
5605       if (HasDeprecatedInt32InOneof) {
5606         ClearOneofFields();
5607       }
5608     }
5609 
5610     private object oneofFields_;
5611     /// <summary>Enum of possible cases for the "oneof_fields" oneof.</summary>
5612     public enum OneofFieldsOneofCase {
5613       None = 0,
5614       DeprecatedInt32InOneof = 2,
5615     }
5616     private OneofFieldsOneofCase oneofFieldsCase_ = OneofFieldsOneofCase.None;
5617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5618     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5619     public OneofFieldsOneofCase OneofFieldsCase {
5620       get { return oneofFieldsCase_; }
5621     }
5622 
5623     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5624     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofFields()5625     public void ClearOneofFields() {
5626       oneofFieldsCase_ = OneofFieldsOneofCase.None;
5627       oneofFields_ = null;
5628     }
5629 
5630     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5631     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5632     public override bool Equals(object other) {
5633       return Equals(other as TestDeprecatedFields);
5634     }
5635 
5636     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5637     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestDeprecatedFields other)5638     public bool Equals(TestDeprecatedFields other) {
5639       if (ReferenceEquals(other, null)) {
5640         return false;
5641       }
5642       if (ReferenceEquals(other, this)) {
5643         return true;
5644       }
5645       if (DeprecatedInt32 != other.DeprecatedInt32) return false;
5646       if (DeprecatedInt32InOneof != other.DeprecatedInt32InOneof) return false;
5647       if (OneofFieldsCase != other.OneofFieldsCase) return false;
5648       return Equals(_unknownFields, other._unknownFields);
5649     }
5650 
5651     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5652     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5653     public override int GetHashCode() {
5654       int hash = 1;
5655       if (HasDeprecatedInt32) hash ^= DeprecatedInt32.GetHashCode();
5656       if (HasDeprecatedInt32InOneof) hash ^= DeprecatedInt32InOneof.GetHashCode();
5657       hash ^= (int) oneofFieldsCase_;
5658       if (_unknownFields != null) {
5659         hash ^= _unknownFields.GetHashCode();
5660       }
5661       return hash;
5662     }
5663 
5664     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5665     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5666     public override string ToString() {
5667       return pb::JsonFormatter.ToDiagnosticString(this);
5668     }
5669 
5670     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5671     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5672     public void WriteTo(pb::CodedOutputStream output) {
5673     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5674       output.WriteRawMessage(this);
5675     #else
5676       if (HasDeprecatedInt32) {
5677         output.WriteRawTag(8);
5678         output.WriteInt32(DeprecatedInt32);
5679       }
5680       if (HasDeprecatedInt32InOneof) {
5681         output.WriteRawTag(16);
5682         output.WriteInt32(DeprecatedInt32InOneof);
5683       }
5684       if (_unknownFields != null) {
5685         _unknownFields.WriteTo(output);
5686       }
5687     #endif
5688     }
5689 
5690     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5691     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5692     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5693     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5694       if (HasDeprecatedInt32) {
5695         output.WriteRawTag(8);
5696         output.WriteInt32(DeprecatedInt32);
5697       }
5698       if (HasDeprecatedInt32InOneof) {
5699         output.WriteRawTag(16);
5700         output.WriteInt32(DeprecatedInt32InOneof);
5701       }
5702       if (_unknownFields != null) {
5703         _unknownFields.WriteTo(ref output);
5704       }
5705     }
5706     #endif
5707 
5708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5710     public int CalculateSize() {
5711       int size = 0;
5712       if (HasDeprecatedInt32) {
5713         size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32);
5714       }
5715       if (HasDeprecatedInt32InOneof) {
5716         size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32InOneof);
5717       }
5718       if (_unknownFields != null) {
5719         size += _unknownFields.CalculateSize();
5720       }
5721       return size;
5722     }
5723 
5724     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5725     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestDeprecatedFields other)5726     public void MergeFrom(TestDeprecatedFields other) {
5727       if (other == null) {
5728         return;
5729       }
5730       if (other.HasDeprecatedInt32) {
5731         DeprecatedInt32 = other.DeprecatedInt32;
5732       }
5733       switch (other.OneofFieldsCase) {
5734         case OneofFieldsOneofCase.DeprecatedInt32InOneof:
5735           DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
5736           break;
5737       }
5738 
5739       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5740     }
5741 
5742     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5743     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5744     public void MergeFrom(pb::CodedInputStream input) {
5745     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5746       input.ReadRawMessage(this);
5747     #else
5748       uint tag;
5749       while ((tag = input.ReadTag()) != 0) {
5750         switch(tag) {
5751           default:
5752             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5753             break;
5754           case 8: {
5755             DeprecatedInt32 = input.ReadInt32();
5756             break;
5757           }
5758           case 16: {
5759             DeprecatedInt32InOneof = input.ReadInt32();
5760             break;
5761           }
5762         }
5763       }
5764     #endif
5765     }
5766 
5767     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5768     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5769     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5770     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5771       uint tag;
5772       while ((tag = input.ReadTag()) != 0) {
5773         switch(tag) {
5774           default:
5775             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5776             break;
5777           case 8: {
5778             DeprecatedInt32 = input.ReadInt32();
5779             break;
5780           }
5781           case 16: {
5782             DeprecatedInt32InOneof = input.ReadInt32();
5783             break;
5784           }
5785         }
5786       }
5787     }
5788     #endif
5789 
5790   }
5791 
5792   [global::System.ObsoleteAttribute]
5793   public sealed partial class TestDeprecatedMessage : pb::IMessage<TestDeprecatedMessage>
5794   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5795       , pb::IBufferMessage
5796   #endif
5797   {
5798     private static readonly pb::MessageParser<TestDeprecatedMessage> _parser = new pb::MessageParser<TestDeprecatedMessage>(() => new TestDeprecatedMessage());
5799     private pb::UnknownFieldSet _unknownFields;
5800     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5801     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5802     public static pb::MessageParser<TestDeprecatedMessage> Parser { get { return _parser; } }
5803 
5804     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5805     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5806     public static pbr::MessageDescriptor Descriptor {
5807       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[3]; }
5808     }
5809 
5810     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5811     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5812     pbr::MessageDescriptor pb::IMessage.Descriptor {
5813       get { return Descriptor; }
5814     }
5815 
5816     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5817     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDeprecatedMessage()5818     public TestDeprecatedMessage() {
5819       OnConstruction();
5820     }
5821 
OnConstruction()5822     partial void OnConstruction();
5823 
5824     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5825     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDeprecatedMessage(TestDeprecatedMessage other)5826     public TestDeprecatedMessage(TestDeprecatedMessage other) : this() {
5827       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5828     }
5829 
5830     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5831     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5832     public TestDeprecatedMessage Clone() {
5833       return new TestDeprecatedMessage(this);
5834     }
5835 
5836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5837     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5838     public override bool Equals(object other) {
5839       return Equals(other as TestDeprecatedMessage);
5840     }
5841 
5842     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5843     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestDeprecatedMessage other)5844     public bool Equals(TestDeprecatedMessage other) {
5845       if (ReferenceEquals(other, null)) {
5846         return false;
5847       }
5848       if (ReferenceEquals(other, this)) {
5849         return true;
5850       }
5851       return Equals(_unknownFields, other._unknownFields);
5852     }
5853 
5854     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5855     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5856     public override int GetHashCode() {
5857       int hash = 1;
5858       if (_unknownFields != null) {
5859         hash ^= _unknownFields.GetHashCode();
5860       }
5861       return hash;
5862     }
5863 
5864     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5865     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5866     public override string ToString() {
5867       return pb::JsonFormatter.ToDiagnosticString(this);
5868     }
5869 
5870     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5871     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5872     public void WriteTo(pb::CodedOutputStream output) {
5873     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5874       output.WriteRawMessage(this);
5875     #else
5876       if (_unknownFields != null) {
5877         _unknownFields.WriteTo(output);
5878       }
5879     #endif
5880     }
5881 
5882     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5883     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5884     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5885     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5886       if (_unknownFields != null) {
5887         _unknownFields.WriteTo(ref output);
5888       }
5889     }
5890     #endif
5891 
5892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5893     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5894     public int CalculateSize() {
5895       int size = 0;
5896       if (_unknownFields != null) {
5897         size += _unknownFields.CalculateSize();
5898       }
5899       return size;
5900     }
5901 
5902     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5903     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestDeprecatedMessage other)5904     public void MergeFrom(TestDeprecatedMessage other) {
5905       if (other == null) {
5906         return;
5907       }
5908       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5909     }
5910 
5911     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5912     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5913     public void MergeFrom(pb::CodedInputStream input) {
5914     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5915       input.ReadRawMessage(this);
5916     #else
5917       uint tag;
5918       while ((tag = input.ReadTag()) != 0) {
5919         switch(tag) {
5920           default:
5921             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5922             break;
5923         }
5924       }
5925     #endif
5926     }
5927 
5928     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5929     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5930     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5931     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5932       uint tag;
5933       while ((tag = input.ReadTag()) != 0) {
5934         switch(tag) {
5935           default:
5936             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5937             break;
5938         }
5939       }
5940     }
5941     #endif
5942 
5943   }
5944 
5945   /// <summary>
5946   /// Define these after TestAllTypes to make sure the compiler can handle
5947   /// that.
5948   /// </summary>
5949   public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage>
5950   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5951       , pb::IBufferMessage
5952   #endif
5953   {
5954     private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
5955     private pb::UnknownFieldSet _unknownFields;
5956     private int _hasBits0;
5957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5958     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5959     public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
5960 
5961     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5962     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5963     public static pbr::MessageDescriptor Descriptor {
5964       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[4]; }
5965     }
5966 
5967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5968     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5969     pbr::MessageDescriptor pb::IMessage.Descriptor {
5970       get { return Descriptor; }
5971     }
5972 
5973     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5974     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ForeignMessage()5975     public ForeignMessage() {
5976       OnConstruction();
5977     }
5978 
OnConstruction()5979     partial void OnConstruction();
5980 
5981     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5982     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ForeignMessage(ForeignMessage other)5983     public ForeignMessage(ForeignMessage other) : this() {
5984       _hasBits0 = other._hasBits0;
5985       c_ = other.c_;
5986       d_ = other.d_;
5987       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5988     }
5989 
5990     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5991     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5992     public ForeignMessage Clone() {
5993       return new ForeignMessage(this);
5994     }
5995 
5996     /// <summary>Field number for the "c" field.</summary>
5997     public const int CFieldNumber = 1;
5998     private readonly static int CDefaultValue = 0;
5999 
6000     private int c_;
6001     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6002     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6003     public int C {
6004       get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } }
6005       set {
6006         _hasBits0 |= 1;
6007         c_ = value;
6008       }
6009     }
6010     /// <summary>Gets whether the "c" field is set</summary>
6011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6013     public bool HasC {
6014       get { return (_hasBits0 & 1) != 0; }
6015     }
6016     /// <summary>Clears the value of the "c" field</summary>
6017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearC()6019     public void ClearC() {
6020       _hasBits0 &= ~1;
6021     }
6022 
6023     /// <summary>Field number for the "d" field.</summary>
6024     public const int DFieldNumber = 2;
6025     private readonly static int DDefaultValue = 0;
6026 
6027     private int d_;
6028     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6029     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6030     public int D {
6031       get { if ((_hasBits0 & 2) != 0) { return d_; } else { return DDefaultValue; } }
6032       set {
6033         _hasBits0 |= 2;
6034         d_ = value;
6035       }
6036     }
6037     /// <summary>Gets whether the "d" field is set</summary>
6038     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6039     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6040     public bool HasD {
6041       get { return (_hasBits0 & 2) != 0; }
6042     }
6043     /// <summary>Clears the value of the "d" field</summary>
6044     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6045     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearD()6046     public void ClearD() {
6047       _hasBits0 &= ~2;
6048     }
6049 
6050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6051     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6052     public override bool Equals(object other) {
6053       return Equals(other as ForeignMessage);
6054     }
6055 
6056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ForeignMessage other)6058     public bool Equals(ForeignMessage other) {
6059       if (ReferenceEquals(other, null)) {
6060         return false;
6061       }
6062       if (ReferenceEquals(other, this)) {
6063         return true;
6064       }
6065       if (C != other.C) return false;
6066       if (D != other.D) return false;
6067       return Equals(_unknownFields, other._unknownFields);
6068     }
6069 
6070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6071     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6072     public override int GetHashCode() {
6073       int hash = 1;
6074       if (HasC) hash ^= C.GetHashCode();
6075       if (HasD) hash ^= D.GetHashCode();
6076       if (_unknownFields != null) {
6077         hash ^= _unknownFields.GetHashCode();
6078       }
6079       return hash;
6080     }
6081 
6082     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6083     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6084     public override string ToString() {
6085       return pb::JsonFormatter.ToDiagnosticString(this);
6086     }
6087 
6088     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6089     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6090     public void WriteTo(pb::CodedOutputStream output) {
6091     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6092       output.WriteRawMessage(this);
6093     #else
6094       if (HasC) {
6095         output.WriteRawTag(8);
6096         output.WriteInt32(C);
6097       }
6098       if (HasD) {
6099         output.WriteRawTag(16);
6100         output.WriteInt32(D);
6101       }
6102       if (_unknownFields != null) {
6103         _unknownFields.WriteTo(output);
6104       }
6105     #endif
6106     }
6107 
6108     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6109     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6110     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6111     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6112       if (HasC) {
6113         output.WriteRawTag(8);
6114         output.WriteInt32(C);
6115       }
6116       if (HasD) {
6117         output.WriteRawTag(16);
6118         output.WriteInt32(D);
6119       }
6120       if (_unknownFields != null) {
6121         _unknownFields.WriteTo(ref output);
6122       }
6123     }
6124     #endif
6125 
6126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6127     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6128     public int CalculateSize() {
6129       int size = 0;
6130       if (HasC) {
6131         size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
6132       }
6133       if (HasD) {
6134         size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
6135       }
6136       if (_unknownFields != null) {
6137         size += _unknownFields.CalculateSize();
6138       }
6139       return size;
6140     }
6141 
6142     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6143     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ForeignMessage other)6144     public void MergeFrom(ForeignMessage other) {
6145       if (other == null) {
6146         return;
6147       }
6148       if (other.HasC) {
6149         C = other.C;
6150       }
6151       if (other.HasD) {
6152         D = other.D;
6153       }
6154       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6155     }
6156 
6157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6158     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6159     public void MergeFrom(pb::CodedInputStream input) {
6160     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6161       input.ReadRawMessage(this);
6162     #else
6163       uint tag;
6164       while ((tag = input.ReadTag()) != 0) {
6165         switch(tag) {
6166           default:
6167             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6168             break;
6169           case 8: {
6170             C = input.ReadInt32();
6171             break;
6172           }
6173           case 16: {
6174             D = input.ReadInt32();
6175             break;
6176           }
6177         }
6178       }
6179     #endif
6180     }
6181 
6182     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6183     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6184     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6185     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6186       uint tag;
6187       while ((tag = input.ReadTag()) != 0) {
6188         switch(tag) {
6189           default:
6190             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6191             break;
6192           case 8: {
6193             C = input.ReadInt32();
6194             break;
6195           }
6196           case 16: {
6197             D = input.ReadInt32();
6198             break;
6199           }
6200         }
6201       }
6202     }
6203     #endif
6204 
6205   }
6206 
6207   public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields>
6208   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6209       , pb::IBufferMessage
6210   #endif
6211   {
6212     private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields());
6213     private pb::UnknownFieldSet _unknownFields;
6214     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6215     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6216     public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } }
6217 
6218     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6219     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6220     public static pbr::MessageDescriptor Descriptor {
6221       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[5]; }
6222     }
6223 
6224     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6225     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6226     pbr::MessageDescriptor pb::IMessage.Descriptor {
6227       get { return Descriptor; }
6228     }
6229 
6230     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6231     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestReservedFields()6232     public TestReservedFields() {
6233       OnConstruction();
6234     }
6235 
OnConstruction()6236     partial void OnConstruction();
6237 
6238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6239     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestReservedFields(TestReservedFields other)6240     public TestReservedFields(TestReservedFields other) : this() {
6241       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6242     }
6243 
6244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6245     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6246     public TestReservedFields Clone() {
6247       return new TestReservedFields(this);
6248     }
6249 
6250     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6251     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6252     public override bool Equals(object other) {
6253       return Equals(other as TestReservedFields);
6254     }
6255 
6256     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6257     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestReservedFields other)6258     public bool Equals(TestReservedFields other) {
6259       if (ReferenceEquals(other, null)) {
6260         return false;
6261       }
6262       if (ReferenceEquals(other, this)) {
6263         return true;
6264       }
6265       return Equals(_unknownFields, other._unknownFields);
6266     }
6267 
6268     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6269     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6270     public override int GetHashCode() {
6271       int hash = 1;
6272       if (_unknownFields != null) {
6273         hash ^= _unknownFields.GetHashCode();
6274       }
6275       return hash;
6276     }
6277 
6278     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6279     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6280     public override string ToString() {
6281       return pb::JsonFormatter.ToDiagnosticString(this);
6282     }
6283 
6284     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6285     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6286     public void WriteTo(pb::CodedOutputStream output) {
6287     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6288       output.WriteRawMessage(this);
6289     #else
6290       if (_unknownFields != null) {
6291         _unknownFields.WriteTo(output);
6292       }
6293     #endif
6294     }
6295 
6296     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6297     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6298     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6299     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6300       if (_unknownFields != null) {
6301         _unknownFields.WriteTo(ref output);
6302       }
6303     }
6304     #endif
6305 
6306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6307     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6308     public int CalculateSize() {
6309       int size = 0;
6310       if (_unknownFields != null) {
6311         size += _unknownFields.CalculateSize();
6312       }
6313       return size;
6314     }
6315 
6316     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6317     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestReservedFields other)6318     public void MergeFrom(TestReservedFields other) {
6319       if (other == null) {
6320         return;
6321       }
6322       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6323     }
6324 
6325     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6326     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6327     public void MergeFrom(pb::CodedInputStream input) {
6328     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6329       input.ReadRawMessage(this);
6330     #else
6331       uint tag;
6332       while ((tag = input.ReadTag()) != 0) {
6333         switch(tag) {
6334           default:
6335             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6336             break;
6337         }
6338       }
6339     #endif
6340     }
6341 
6342     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6344     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6345     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6346       uint tag;
6347       while ((tag = input.ReadTag()) != 0) {
6348         switch(tag) {
6349           default:
6350             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6351             break;
6352         }
6353       }
6354     }
6355     #endif
6356 
6357   }
6358 
6359   public sealed partial class TestAllExtensions : pb::IExtendableMessage<TestAllExtensions>
6360   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6361       , pb::IBufferMessage
6362   #endif
6363   {
6364     private static readonly pb::MessageParser<TestAllExtensions> _parser = new pb::MessageParser<TestAllExtensions>(() => new TestAllExtensions());
6365     private pb::UnknownFieldSet _unknownFields;
6366     private pb::ExtensionSet<TestAllExtensions> _extensions;
6367     private pb::ExtensionSet<TestAllExtensions> _Extensions { get { return _extensions; } }
6368     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6369     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6370     public static pb::MessageParser<TestAllExtensions> Parser { get { return _parser; } }
6371 
6372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6373     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6374     public static pbr::MessageDescriptor Descriptor {
6375       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[6]; }
6376     }
6377 
6378     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6379     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6380     pbr::MessageDescriptor pb::IMessage.Descriptor {
6381       get { return Descriptor; }
6382     }
6383 
6384     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6385     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllExtensions()6386     public TestAllExtensions() {
6387       OnConstruction();
6388     }
6389 
OnConstruction()6390     partial void OnConstruction();
6391 
6392     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6393     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllExtensions(TestAllExtensions other)6394     public TestAllExtensions(TestAllExtensions other) : this() {
6395       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6396       _extensions = pb::ExtensionSet.Clone(other._extensions);
6397     }
6398 
6399     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6400     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6401     public TestAllExtensions Clone() {
6402       return new TestAllExtensions(this);
6403     }
6404 
6405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6406     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6407     public override bool Equals(object other) {
6408       return Equals(other as TestAllExtensions);
6409     }
6410 
6411     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6412     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestAllExtensions other)6413     public bool Equals(TestAllExtensions other) {
6414       if (ReferenceEquals(other, null)) {
6415         return false;
6416       }
6417       if (ReferenceEquals(other, this)) {
6418         return true;
6419       }
6420       if (!Equals(_extensions, other._extensions)) {
6421         return false;
6422       }
6423       return Equals(_unknownFields, other._unknownFields);
6424     }
6425 
6426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6427     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6428     public override int GetHashCode() {
6429       int hash = 1;
6430       if (_extensions != null) {
6431         hash ^= _extensions.GetHashCode();
6432       }
6433       if (_unknownFields != null) {
6434         hash ^= _unknownFields.GetHashCode();
6435       }
6436       return hash;
6437     }
6438 
6439     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6440     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6441     public override string ToString() {
6442       return pb::JsonFormatter.ToDiagnosticString(this);
6443     }
6444 
6445     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6446     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6447     public void WriteTo(pb::CodedOutputStream output) {
6448     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6449       output.WriteRawMessage(this);
6450     #else
6451       if (_extensions != null) {
6452         _extensions.WriteTo(output);
6453       }
6454       if (_unknownFields != null) {
6455         _unknownFields.WriteTo(output);
6456       }
6457     #endif
6458     }
6459 
6460     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6461     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6462     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6463     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6464       if (_extensions != null) {
6465         _extensions.WriteTo(ref output);
6466       }
6467       if (_unknownFields != null) {
6468         _unknownFields.WriteTo(ref output);
6469       }
6470     }
6471     #endif
6472 
6473     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6474     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6475     public int CalculateSize() {
6476       int size = 0;
6477       if (_extensions != null) {
6478         size += _extensions.CalculateSize();
6479       }
6480       if (_unknownFields != null) {
6481         size += _unknownFields.CalculateSize();
6482       }
6483       return size;
6484     }
6485 
6486     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6487     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestAllExtensions other)6488     public void MergeFrom(TestAllExtensions other) {
6489       if (other == null) {
6490         return;
6491       }
6492       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6493       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6494     }
6495 
6496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6497     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6498     public void MergeFrom(pb::CodedInputStream input) {
6499     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6500       input.ReadRawMessage(this);
6501     #else
6502       uint tag;
6503       while ((tag = input.ReadTag()) != 0) {
6504         switch(tag) {
6505           default:
6506             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6507               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6508             }
6509             break;
6510         }
6511       }
6512     #endif
6513     }
6514 
6515     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6517     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6518     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6519       uint tag;
6520       while ((tag = input.ReadTag()) != 0) {
6521         switch(tag) {
6522           default:
6523             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
6524               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6525             }
6526             break;
6527         }
6528       }
6529     }
6530     #endif
6531 
GetExtension(pb::Extension<TestAllExtensions, TValue> extension)6532     public TValue GetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
6533       return pb::ExtensionSet.Get(ref _extensions, extension);
6534     }
GetExtension(pb::RepeatedExtension<TestAllExtensions, TValue> extension)6535     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
6536       return pb::ExtensionSet.Get(ref _extensions, extension);
6537     }
GetOrInitializeExtension(pb::RepeatedExtension<TestAllExtensions, TValue> extension)6538     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
6539       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
6540     }
SetExtension(pb::Extension<TestAllExtensions, TValue> extension, TValue value)6541     public void SetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension, TValue value) {
6542       pb::ExtensionSet.Set(ref _extensions, extension, value);
6543     }
HasExtension(pb::Extension<TestAllExtensions, TValue> extension)6544     public bool HasExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
6545       return pb::ExtensionSet.Has(ref _extensions, extension);
6546     }
ClearExtension(pb::Extension<TestAllExtensions, TValue> extension)6547     public void ClearExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
6548       pb::ExtensionSet.Clear(ref _extensions, extension);
6549     }
ClearExtension(pb::RepeatedExtension<TestAllExtensions, TValue> extension)6550     public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
6551       pb::ExtensionSet.Clear(ref _extensions, extension);
6552     }
6553 
6554   }
6555 
6556   public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension>
6557   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6558       , pb::IBufferMessage
6559   #endif
6560   {
6561     private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
6562     private pb::UnknownFieldSet _unknownFields;
6563     private int _hasBits0;
6564     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6565     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6566     public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
6567 
6568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6570     public static pbr::MessageDescriptor Descriptor {
6571       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[7]; }
6572     }
6573 
6574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6576     pbr::MessageDescriptor pb::IMessage.Descriptor {
6577       get { return Descriptor; }
6578     }
6579 
6580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6581     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup_extension()6582     public OptionalGroup_extension() {
6583       OnConstruction();
6584     }
6585 
OnConstruction()6586     partial void OnConstruction();
6587 
6588     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6589     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup_extension(OptionalGroup_extension other)6590     public OptionalGroup_extension(OptionalGroup_extension other) : this() {
6591       _hasBits0 = other._hasBits0;
6592       a_ = other.a_;
6593       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6594     }
6595 
6596     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6597     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6598     public OptionalGroup_extension Clone() {
6599       return new OptionalGroup_extension(this);
6600     }
6601 
6602     /// <summary>Field number for the "a" field.</summary>
6603     public const int AFieldNumber = 17;
6604     private readonly static int ADefaultValue = 0;
6605 
6606     private int a_;
6607     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6608     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6609     public int A {
6610       get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
6611       set {
6612         _hasBits0 |= 1;
6613         a_ = value;
6614       }
6615     }
6616     /// <summary>Gets whether the "a" field is set</summary>
6617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6618     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6619     public bool HasA {
6620       get { return (_hasBits0 & 1) != 0; }
6621     }
6622     /// <summary>Clears the value of the "a" field</summary>
6623     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6624     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()6625     public void ClearA() {
6626       _hasBits0 &= ~1;
6627     }
6628 
6629     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6630     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6631     public override bool Equals(object other) {
6632       return Equals(other as OptionalGroup_extension);
6633     }
6634 
6635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6636     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup_extension other)6637     public bool Equals(OptionalGroup_extension other) {
6638       if (ReferenceEquals(other, null)) {
6639         return false;
6640       }
6641       if (ReferenceEquals(other, this)) {
6642         return true;
6643       }
6644       if (A != other.A) return false;
6645       return Equals(_unknownFields, other._unknownFields);
6646     }
6647 
6648     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6649     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6650     public override int GetHashCode() {
6651       int hash = 1;
6652       if (HasA) hash ^= A.GetHashCode();
6653       if (_unknownFields != null) {
6654         hash ^= _unknownFields.GetHashCode();
6655       }
6656       return hash;
6657     }
6658 
6659     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6660     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6661     public override string ToString() {
6662       return pb::JsonFormatter.ToDiagnosticString(this);
6663     }
6664 
6665     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6666     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6667     public void WriteTo(pb::CodedOutputStream output) {
6668     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6669       output.WriteRawMessage(this);
6670     #else
6671       if (HasA) {
6672         output.WriteRawTag(136, 1);
6673         output.WriteInt32(A);
6674       }
6675       if (_unknownFields != null) {
6676         _unknownFields.WriteTo(output);
6677       }
6678     #endif
6679     }
6680 
6681     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6682     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6683     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6684     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6685       if (HasA) {
6686         output.WriteRawTag(136, 1);
6687         output.WriteInt32(A);
6688       }
6689       if (_unknownFields != null) {
6690         _unknownFields.WriteTo(ref output);
6691       }
6692     }
6693     #endif
6694 
6695     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6696     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6697     public int CalculateSize() {
6698       int size = 0;
6699       if (HasA) {
6700         size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
6701       }
6702       if (_unknownFields != null) {
6703         size += _unknownFields.CalculateSize();
6704       }
6705       return size;
6706     }
6707 
6708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup_extension other)6710     public void MergeFrom(OptionalGroup_extension other) {
6711       if (other == null) {
6712         return;
6713       }
6714       if (other.HasA) {
6715         A = other.A;
6716       }
6717       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6718     }
6719 
6720     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6721     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6722     public void MergeFrom(pb::CodedInputStream input) {
6723     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6724       input.ReadRawMessage(this);
6725     #else
6726       uint tag;
6727       while ((tag = input.ReadTag()) != 0) {
6728         switch(tag) {
6729           case 132:
6730             return;
6731           default:
6732             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6733             break;
6734           case 136: {
6735             A = input.ReadInt32();
6736             break;
6737           }
6738         }
6739       }
6740     #endif
6741     }
6742 
6743     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6744     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6745     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6746     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6747       uint tag;
6748       while ((tag = input.ReadTag()) != 0) {
6749         switch(tag) {
6750           case 132:
6751             return;
6752           default:
6753             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6754             break;
6755           case 136: {
6756             A = input.ReadInt32();
6757             break;
6758           }
6759         }
6760       }
6761     }
6762     #endif
6763 
6764   }
6765 
6766   public sealed partial class RepeatedGroup_extension : pb::IMessage<RepeatedGroup_extension>
6767   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6768       , pb::IBufferMessage
6769   #endif
6770   {
6771     private static readonly pb::MessageParser<RepeatedGroup_extension> _parser = new pb::MessageParser<RepeatedGroup_extension>(() => new RepeatedGroup_extension());
6772     private pb::UnknownFieldSet _unknownFields;
6773     private int _hasBits0;
6774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6775     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6776     public static pb::MessageParser<RepeatedGroup_extension> Parser { get { return _parser; } }
6777 
6778     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6779     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6780     public static pbr::MessageDescriptor Descriptor {
6781       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[8]; }
6782     }
6783 
6784     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6785     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6786     pbr::MessageDescriptor pb::IMessage.Descriptor {
6787       get { return Descriptor; }
6788     }
6789 
6790     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6791     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedGroup_extension()6792     public RepeatedGroup_extension() {
6793       OnConstruction();
6794     }
6795 
OnConstruction()6796     partial void OnConstruction();
6797 
6798     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6799     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedGroup_extension(RepeatedGroup_extension other)6800     public RepeatedGroup_extension(RepeatedGroup_extension other) : this() {
6801       _hasBits0 = other._hasBits0;
6802       a_ = other.a_;
6803       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6804     }
6805 
6806     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6807     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6808     public RepeatedGroup_extension Clone() {
6809       return new RepeatedGroup_extension(this);
6810     }
6811 
6812     /// <summary>Field number for the "a" field.</summary>
6813     public const int AFieldNumber = 47;
6814     private readonly static int ADefaultValue = 0;
6815 
6816     private int a_;
6817     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6818     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6819     public int A {
6820       get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
6821       set {
6822         _hasBits0 |= 1;
6823         a_ = value;
6824       }
6825     }
6826     /// <summary>Gets whether the "a" field is set</summary>
6827     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6828     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6829     public bool HasA {
6830       get { return (_hasBits0 & 1) != 0; }
6831     }
6832     /// <summary>Clears the value of the "a" field</summary>
6833     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6834     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()6835     public void ClearA() {
6836       _hasBits0 &= ~1;
6837     }
6838 
6839     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6840     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6841     public override bool Equals(object other) {
6842       return Equals(other as RepeatedGroup_extension);
6843     }
6844 
6845     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6846     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(RepeatedGroup_extension other)6847     public bool Equals(RepeatedGroup_extension other) {
6848       if (ReferenceEquals(other, null)) {
6849         return false;
6850       }
6851       if (ReferenceEquals(other, this)) {
6852         return true;
6853       }
6854       if (A != other.A) return false;
6855       return Equals(_unknownFields, other._unknownFields);
6856     }
6857 
6858     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6859     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6860     public override int GetHashCode() {
6861       int hash = 1;
6862       if (HasA) hash ^= A.GetHashCode();
6863       if (_unknownFields != null) {
6864         hash ^= _unknownFields.GetHashCode();
6865       }
6866       return hash;
6867     }
6868 
6869     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6870     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6871     public override string ToString() {
6872       return pb::JsonFormatter.ToDiagnosticString(this);
6873     }
6874 
6875     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6876     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6877     public void WriteTo(pb::CodedOutputStream output) {
6878     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6879       output.WriteRawMessage(this);
6880     #else
6881       if (HasA) {
6882         output.WriteRawTag(248, 2);
6883         output.WriteInt32(A);
6884       }
6885       if (_unknownFields != null) {
6886         _unknownFields.WriteTo(output);
6887       }
6888     #endif
6889     }
6890 
6891     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6893     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6894     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6895       if (HasA) {
6896         output.WriteRawTag(248, 2);
6897         output.WriteInt32(A);
6898       }
6899       if (_unknownFields != null) {
6900         _unknownFields.WriteTo(ref output);
6901       }
6902     }
6903     #endif
6904 
6905     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6906     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6907     public int CalculateSize() {
6908       int size = 0;
6909       if (HasA) {
6910         size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
6911       }
6912       if (_unknownFields != null) {
6913         size += _unknownFields.CalculateSize();
6914       }
6915       return size;
6916     }
6917 
6918     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6919     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(RepeatedGroup_extension other)6920     public void MergeFrom(RepeatedGroup_extension other) {
6921       if (other == null) {
6922         return;
6923       }
6924       if (other.HasA) {
6925         A = other.A;
6926       }
6927       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6928     }
6929 
6930     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6931     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6932     public void MergeFrom(pb::CodedInputStream input) {
6933     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6934       input.ReadRawMessage(this);
6935     #else
6936       uint tag;
6937       while ((tag = input.ReadTag()) != 0) {
6938         switch(tag) {
6939           case 372:
6940             return;
6941           default:
6942             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6943             break;
6944           case 376: {
6945             A = input.ReadInt32();
6946             break;
6947           }
6948         }
6949       }
6950     #endif
6951     }
6952 
6953     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6954     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6955     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6956     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6957       uint tag;
6958       while ((tag = input.ReadTag()) != 0) {
6959         switch(tag) {
6960           case 372:
6961             return;
6962           default:
6963             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6964             break;
6965           case 376: {
6966             A = input.ReadInt32();
6967             break;
6968           }
6969         }
6970       }
6971     }
6972     #endif
6973 
6974   }
6975 
6976   public sealed partial class TestGroup : pb::IMessage<TestGroup>
6977   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6978       , pb::IBufferMessage
6979   #endif
6980   {
6981     private static readonly pb::MessageParser<TestGroup> _parser = new pb::MessageParser<TestGroup>(() => new TestGroup());
6982     private pb::UnknownFieldSet _unknownFields;
6983     private int _hasBits0;
6984     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6985     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6986     public static pb::MessageParser<TestGroup> Parser { get { return _parser; } }
6987 
6988     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6989     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6990     public static pbr::MessageDescriptor Descriptor {
6991       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[9]; }
6992     }
6993 
6994     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6995     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6996     pbr::MessageDescriptor pb::IMessage.Descriptor {
6997       get { return Descriptor; }
6998     }
6999 
7000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7001     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestGroup()7002     public TestGroup() {
7003       OnConstruction();
7004     }
7005 
OnConstruction()7006     partial void OnConstruction();
7007 
7008     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7009     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestGroup(TestGroup other)7010     public TestGroup(TestGroup other) : this() {
7011       _hasBits0 = other._hasBits0;
7012       optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
7013       optionalForeignEnum_ = other.optionalForeignEnum_;
7014       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7015     }
7016 
7017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7019     public TestGroup Clone() {
7020       return new TestGroup(this);
7021     }
7022 
7023     /// <summary>Field number for the "optionalgroup" field.</summary>
7024     public const int OptionalGroupFieldNumber = 16;
7025     private global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup optionalGroup_;
7026     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7027     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7028     public global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup OptionalGroup {
7029       get { return optionalGroup_; }
7030       set {
7031         optionalGroup_ = value;
7032       }
7033     }
7034     /// <summary>Gets whether the optionalgroup field is set</summary>
7035     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7036     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7037     public bool HasOptionalGroup {
7038       get { return optionalGroup_ != null; }
7039     }
7040     /// <summary>Clears the value of the optionalgroup field</summary>
7041     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7042     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalGroup()7043     public void ClearOptionalGroup() {
7044       optionalGroup_ = null;
7045     }
7046 
7047     /// <summary>Field number for the "optional_foreign_enum" field.</summary>
7048     public const int OptionalForeignEnumFieldNumber = 22;
7049     private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
7050 
7051     private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
7052     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7053     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7054     public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
7055       get { if ((_hasBits0 & 1) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
7056       set {
7057         _hasBits0 |= 1;
7058         optionalForeignEnum_ = value;
7059       }
7060     }
7061     /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
7062     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7063     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7064     public bool HasOptionalForeignEnum {
7065       get { return (_hasBits0 & 1) != 0; }
7066     }
7067     /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
7068     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7069     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalForeignEnum()7070     public void ClearOptionalForeignEnum() {
7071       _hasBits0 &= ~1;
7072     }
7073 
7074     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7075     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7076     public override bool Equals(object other) {
7077       return Equals(other as TestGroup);
7078     }
7079 
7080     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7081     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestGroup other)7082     public bool Equals(TestGroup other) {
7083       if (ReferenceEquals(other, null)) {
7084         return false;
7085       }
7086       if (ReferenceEquals(other, this)) {
7087         return true;
7088       }
7089       if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
7090       if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
7091       return Equals(_unknownFields, other._unknownFields);
7092     }
7093 
7094     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7095     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7096     public override int GetHashCode() {
7097       int hash = 1;
7098       if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
7099       if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
7100       if (_unknownFields != null) {
7101         hash ^= _unknownFields.GetHashCode();
7102       }
7103       return hash;
7104     }
7105 
7106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7108     public override string ToString() {
7109       return pb::JsonFormatter.ToDiagnosticString(this);
7110     }
7111 
7112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7113     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7114     public void WriteTo(pb::CodedOutputStream output) {
7115     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7116       output.WriteRawMessage(this);
7117     #else
7118       if (HasOptionalGroup) {
7119         output.WriteRawTag(131, 1);
7120         output.WriteGroup(OptionalGroup);
7121         output.WriteRawTag(132, 1);
7122       }
7123       if (HasOptionalForeignEnum) {
7124         output.WriteRawTag(176, 1);
7125         output.WriteEnum((int) OptionalForeignEnum);
7126       }
7127       if (_unknownFields != null) {
7128         _unknownFields.WriteTo(output);
7129       }
7130     #endif
7131     }
7132 
7133     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7134     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7135     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7136     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7137       if (HasOptionalGroup) {
7138         output.WriteRawTag(131, 1);
7139         output.WriteGroup(OptionalGroup);
7140         output.WriteRawTag(132, 1);
7141       }
7142       if (HasOptionalForeignEnum) {
7143         output.WriteRawTag(176, 1);
7144         output.WriteEnum((int) OptionalForeignEnum);
7145       }
7146       if (_unknownFields != null) {
7147         _unknownFields.WriteTo(ref output);
7148       }
7149     }
7150     #endif
7151 
7152     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7153     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7154     public int CalculateSize() {
7155       int size = 0;
7156       if (HasOptionalGroup) {
7157         size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
7158       }
7159       if (HasOptionalForeignEnum) {
7160         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
7161       }
7162       if (_unknownFields != null) {
7163         size += _unknownFields.CalculateSize();
7164       }
7165       return size;
7166     }
7167 
7168     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7169     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestGroup other)7170     public void MergeFrom(TestGroup other) {
7171       if (other == null) {
7172         return;
7173       }
7174       if (other.HasOptionalGroup) {
7175         if (!HasOptionalGroup) {
7176           OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
7177         }
7178         OptionalGroup.MergeFrom(other.OptionalGroup);
7179       }
7180       if (other.HasOptionalForeignEnum) {
7181         OptionalForeignEnum = other.OptionalForeignEnum;
7182       }
7183       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7184     }
7185 
7186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7187     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7188     public void MergeFrom(pb::CodedInputStream input) {
7189     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7190       input.ReadRawMessage(this);
7191     #else
7192       uint tag;
7193       while ((tag = input.ReadTag()) != 0) {
7194         switch(tag) {
7195           default:
7196             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7197             break;
7198           case 131: {
7199             if (!HasOptionalGroup) {
7200               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
7201             }
7202             input.ReadGroup(OptionalGroup);
7203             break;
7204           }
7205           case 176: {
7206             OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
7207             break;
7208           }
7209         }
7210       }
7211     #endif
7212     }
7213 
7214     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7215     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7216     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7217     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7218       uint tag;
7219       while ((tag = input.ReadTag()) != 0) {
7220         switch(tag) {
7221           default:
7222             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7223             break;
7224           case 131: {
7225             if (!HasOptionalGroup) {
7226               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
7227             }
7228             input.ReadGroup(OptionalGroup);
7229             break;
7230           }
7231           case 176: {
7232             OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
7233             break;
7234           }
7235         }
7236       }
7237     }
7238     #endif
7239 
7240     #region Nested types
7241     /// <summary>Container for nested types declared in the TestGroup message type.</summary>
7242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7243     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7244     public static partial class Types {
7245       public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
7246       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7247           , pb::IBufferMessage
7248       #endif
7249       {
7250         private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
7251         private pb::UnknownFieldSet _unknownFields;
7252         private int _hasBits0;
7253         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7254         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7255         public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
7256 
7257         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7258         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7259         public static pbr::MessageDescriptor Descriptor {
7260           get { return global::Google.Protobuf.TestProtos.Proto2.TestGroup.Descriptor.NestedTypes[0]; }
7261         }
7262 
7263         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7264         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7265         pbr::MessageDescriptor pb::IMessage.Descriptor {
7266           get { return Descriptor; }
7267         }
7268 
7269         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7270         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup()7271         public OptionalGroup() {
7272           OnConstruction();
7273         }
7274 
OnConstruction()7275         partial void OnConstruction();
7276 
7277         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7278         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup(OptionalGroup other)7279         public OptionalGroup(OptionalGroup other) : this() {
7280           _hasBits0 = other._hasBits0;
7281           a_ = other.a_;
7282           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7283         }
7284 
7285         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7286         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7287         public OptionalGroup Clone() {
7288           return new OptionalGroup(this);
7289         }
7290 
7291         /// <summary>Field number for the "a" field.</summary>
7292         public const int AFieldNumber = 17;
7293         private readonly static int ADefaultValue = 0;
7294 
7295         private int a_;
7296         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7297         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7298         public int A {
7299           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
7300           set {
7301             _hasBits0 |= 1;
7302             a_ = value;
7303           }
7304         }
7305         /// <summary>Gets whether the "a" field is set</summary>
7306         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7307         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7308         public bool HasA {
7309           get { return (_hasBits0 & 1) != 0; }
7310         }
7311         /// <summary>Clears the value of the "a" field</summary>
7312         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7313         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()7314         public void ClearA() {
7315           _hasBits0 &= ~1;
7316         }
7317 
7318         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7319         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7320         public override bool Equals(object other) {
7321           return Equals(other as OptionalGroup);
7322         }
7323 
7324         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7325         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup other)7326         public bool Equals(OptionalGroup other) {
7327           if (ReferenceEquals(other, null)) {
7328             return false;
7329           }
7330           if (ReferenceEquals(other, this)) {
7331             return true;
7332           }
7333           if (A != other.A) return false;
7334           return Equals(_unknownFields, other._unknownFields);
7335         }
7336 
7337         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7338         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7339         public override int GetHashCode() {
7340           int hash = 1;
7341           if (HasA) hash ^= A.GetHashCode();
7342           if (_unknownFields != null) {
7343             hash ^= _unknownFields.GetHashCode();
7344           }
7345           return hash;
7346         }
7347 
7348         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7349         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7350         public override string ToString() {
7351           return pb::JsonFormatter.ToDiagnosticString(this);
7352         }
7353 
7354         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7355         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7356         public void WriteTo(pb::CodedOutputStream output) {
7357         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7358           output.WriteRawMessage(this);
7359         #else
7360           if (HasA) {
7361             output.WriteRawTag(136, 1);
7362             output.WriteInt32(A);
7363           }
7364           if (_unknownFields != null) {
7365             _unknownFields.WriteTo(output);
7366           }
7367         #endif
7368         }
7369 
7370         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7371         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7372         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7373         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7374           if (HasA) {
7375             output.WriteRawTag(136, 1);
7376             output.WriteInt32(A);
7377           }
7378           if (_unknownFields != null) {
7379             _unknownFields.WriteTo(ref output);
7380           }
7381         }
7382         #endif
7383 
7384         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7385         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7386         public int CalculateSize() {
7387           int size = 0;
7388           if (HasA) {
7389             size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
7390           }
7391           if (_unknownFields != null) {
7392             size += _unknownFields.CalculateSize();
7393           }
7394           return size;
7395         }
7396 
7397         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7398         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup other)7399         public void MergeFrom(OptionalGroup other) {
7400           if (other == null) {
7401             return;
7402           }
7403           if (other.HasA) {
7404             A = other.A;
7405           }
7406           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7407         }
7408 
7409         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7410         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7411         public void MergeFrom(pb::CodedInputStream input) {
7412         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7413           input.ReadRawMessage(this);
7414         #else
7415           uint tag;
7416           while ((tag = input.ReadTag()) != 0) {
7417             switch(tag) {
7418               case 132:
7419                 return;
7420               default:
7421                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7422                 break;
7423               case 136: {
7424                 A = input.ReadInt32();
7425                 break;
7426               }
7427             }
7428           }
7429         #endif
7430         }
7431 
7432         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7433         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7434         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7435         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7436           uint tag;
7437           while ((tag = input.ReadTag()) != 0) {
7438             switch(tag) {
7439               case 132:
7440                 return;
7441               default:
7442                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7443                 break;
7444               case 136: {
7445                 A = input.ReadInt32();
7446                 break;
7447               }
7448             }
7449           }
7450         }
7451         #endif
7452 
7453       }
7454 
7455     }
7456     #endregion
7457 
7458   }
7459 
7460   public sealed partial class TestGroupExtension : pb::IExtendableMessage<TestGroupExtension>
7461   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7462       , pb::IBufferMessage
7463   #endif
7464   {
7465     private static readonly pb::MessageParser<TestGroupExtension> _parser = new pb::MessageParser<TestGroupExtension>(() => new TestGroupExtension());
7466     private pb::UnknownFieldSet _unknownFields;
7467     private pb::ExtensionSet<TestGroupExtension> _extensions;
7468     private pb::ExtensionSet<TestGroupExtension> _Extensions { get { return _extensions; } }
7469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7471     public static pb::MessageParser<TestGroupExtension> Parser { get { return _parser; } }
7472 
7473     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7474     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7475     public static pbr::MessageDescriptor Descriptor {
7476       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[10]; }
7477     }
7478 
7479     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7480     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7481     pbr::MessageDescriptor pb::IMessage.Descriptor {
7482       get { return Descriptor; }
7483     }
7484 
7485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7486     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestGroupExtension()7487     public TestGroupExtension() {
7488       OnConstruction();
7489     }
7490 
OnConstruction()7491     partial void OnConstruction();
7492 
7493     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7494     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestGroupExtension(TestGroupExtension other)7495     public TestGroupExtension(TestGroupExtension other) : this() {
7496       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7497       _extensions = pb::ExtensionSet.Clone(other._extensions);
7498     }
7499 
7500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7502     public TestGroupExtension Clone() {
7503       return new TestGroupExtension(this);
7504     }
7505 
7506     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7507     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7508     public override bool Equals(object other) {
7509       return Equals(other as TestGroupExtension);
7510     }
7511 
7512     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7513     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestGroupExtension other)7514     public bool Equals(TestGroupExtension other) {
7515       if (ReferenceEquals(other, null)) {
7516         return false;
7517       }
7518       if (ReferenceEquals(other, this)) {
7519         return true;
7520       }
7521       if (!Equals(_extensions, other._extensions)) {
7522         return false;
7523       }
7524       return Equals(_unknownFields, other._unknownFields);
7525     }
7526 
7527     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7528     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7529     public override int GetHashCode() {
7530       int hash = 1;
7531       if (_extensions != null) {
7532         hash ^= _extensions.GetHashCode();
7533       }
7534       if (_unknownFields != null) {
7535         hash ^= _unknownFields.GetHashCode();
7536       }
7537       return hash;
7538     }
7539 
7540     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7541     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7542     public override string ToString() {
7543       return pb::JsonFormatter.ToDiagnosticString(this);
7544     }
7545 
7546     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7547     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7548     public void WriteTo(pb::CodedOutputStream output) {
7549     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7550       output.WriteRawMessage(this);
7551     #else
7552       if (_extensions != null) {
7553         _extensions.WriteTo(output);
7554       }
7555       if (_unknownFields != null) {
7556         _unknownFields.WriteTo(output);
7557       }
7558     #endif
7559     }
7560 
7561     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7563     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7564     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7565       if (_extensions != null) {
7566         _extensions.WriteTo(ref output);
7567       }
7568       if (_unknownFields != null) {
7569         _unknownFields.WriteTo(ref output);
7570       }
7571     }
7572     #endif
7573 
7574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7576     public int CalculateSize() {
7577       int size = 0;
7578       if (_extensions != null) {
7579         size += _extensions.CalculateSize();
7580       }
7581       if (_unknownFields != null) {
7582         size += _unknownFields.CalculateSize();
7583       }
7584       return size;
7585     }
7586 
7587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestGroupExtension other)7589     public void MergeFrom(TestGroupExtension other) {
7590       if (other == null) {
7591         return;
7592       }
7593       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
7594       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7595     }
7596 
7597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7598     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7599     public void MergeFrom(pb::CodedInputStream input) {
7600     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7601       input.ReadRawMessage(this);
7602     #else
7603       uint tag;
7604       while ((tag = input.ReadTag()) != 0) {
7605         switch(tag) {
7606           default:
7607             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
7608               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7609             }
7610             break;
7611         }
7612       }
7613     #endif
7614     }
7615 
7616     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7618     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7619     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7620       uint tag;
7621       while ((tag = input.ReadTag()) != 0) {
7622         switch(tag) {
7623           default:
7624             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
7625               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7626             }
7627             break;
7628         }
7629       }
7630     }
7631     #endif
7632 
GetExtension(pb::Extension<TestGroupExtension, TValue> extension)7633     public TValue GetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
7634       return pb::ExtensionSet.Get(ref _extensions, extension);
7635     }
GetExtension(pb::RepeatedExtension<TestGroupExtension, TValue> extension)7636     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
7637       return pb::ExtensionSet.Get(ref _extensions, extension);
7638     }
GetOrInitializeExtension(pb::RepeatedExtension<TestGroupExtension, TValue> extension)7639     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
7640       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
7641     }
SetExtension(pb::Extension<TestGroupExtension, TValue> extension, TValue value)7642     public void SetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension, TValue value) {
7643       pb::ExtensionSet.Set(ref _extensions, extension, value);
7644     }
HasExtension(pb::Extension<TestGroupExtension, TValue> extension)7645     public bool HasExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
7646       return pb::ExtensionSet.Has(ref _extensions, extension);
7647     }
ClearExtension(pb::Extension<TestGroupExtension, TValue> extension)7648     public void ClearExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
7649       pb::ExtensionSet.Clear(ref _extensions, extension);
7650     }
ClearExtension(pb::RepeatedExtension<TestGroupExtension, TValue> extension)7651     public void ClearExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
7652       pb::ExtensionSet.Clear(ref _extensions, extension);
7653     }
7654 
7655   }
7656 
7657   public sealed partial class TestNestedExtension : pb::IMessage<TestNestedExtension>
7658   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7659       , pb::IBufferMessage
7660   #endif
7661   {
7662     private static readonly pb::MessageParser<TestNestedExtension> _parser = new pb::MessageParser<TestNestedExtension>(() => new TestNestedExtension());
7663     private pb::UnknownFieldSet _unknownFields;
7664     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7665     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7666     public static pb::MessageParser<TestNestedExtension> Parser { get { return _parser; } }
7667 
7668     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7669     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7670     public static pbr::MessageDescriptor Descriptor {
7671       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[11]; }
7672     }
7673 
7674     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7675     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7676     pbr::MessageDescriptor pb::IMessage.Descriptor {
7677       get { return Descriptor; }
7678     }
7679 
7680     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7681     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestNestedExtension()7682     public TestNestedExtension() {
7683       OnConstruction();
7684     }
7685 
OnConstruction()7686     partial void OnConstruction();
7687 
7688     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7689     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestNestedExtension(TestNestedExtension other)7690     public TestNestedExtension(TestNestedExtension other) : this() {
7691       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7692     }
7693 
7694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7695     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7696     public TestNestedExtension Clone() {
7697       return new TestNestedExtension(this);
7698     }
7699 
7700     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7701     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7702     public override bool Equals(object other) {
7703       return Equals(other as TestNestedExtension);
7704     }
7705 
7706     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7707     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestNestedExtension other)7708     public bool Equals(TestNestedExtension other) {
7709       if (ReferenceEquals(other, null)) {
7710         return false;
7711       }
7712       if (ReferenceEquals(other, this)) {
7713         return true;
7714       }
7715       return Equals(_unknownFields, other._unknownFields);
7716     }
7717 
7718     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7719     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7720     public override int GetHashCode() {
7721       int hash = 1;
7722       if (_unknownFields != null) {
7723         hash ^= _unknownFields.GetHashCode();
7724       }
7725       return hash;
7726     }
7727 
7728     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7729     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7730     public override string ToString() {
7731       return pb::JsonFormatter.ToDiagnosticString(this);
7732     }
7733 
7734     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7735     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7736     public void WriteTo(pb::CodedOutputStream output) {
7737     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7738       output.WriteRawMessage(this);
7739     #else
7740       if (_unknownFields != null) {
7741         _unknownFields.WriteTo(output);
7742       }
7743     #endif
7744     }
7745 
7746     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7747     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7748     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7749     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7750       if (_unknownFields != null) {
7751         _unknownFields.WriteTo(ref output);
7752       }
7753     }
7754     #endif
7755 
7756     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7757     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7758     public int CalculateSize() {
7759       int size = 0;
7760       if (_unknownFields != null) {
7761         size += _unknownFields.CalculateSize();
7762       }
7763       return size;
7764     }
7765 
7766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7767     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestNestedExtension other)7768     public void MergeFrom(TestNestedExtension other) {
7769       if (other == null) {
7770         return;
7771       }
7772       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7773     }
7774 
7775     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7776     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7777     public void MergeFrom(pb::CodedInputStream input) {
7778     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7779       input.ReadRawMessage(this);
7780     #else
7781       uint tag;
7782       while ((tag = input.ReadTag()) != 0) {
7783         switch(tag) {
7784           default:
7785             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7786             break;
7787         }
7788       }
7789     #endif
7790     }
7791 
7792     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7793     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7794     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7795     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7796       uint tag;
7797       while ((tag = input.ReadTag()) != 0) {
7798         switch(tag) {
7799           default:
7800             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7801             break;
7802         }
7803       }
7804     }
7805     #endif
7806 
7807     #region Nested types
7808     /// <summary>Container for nested types declared in the TestNestedExtension message type.</summary>
7809     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7810     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7811     public static partial class Types {
7812       public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension>
7813       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7814           , pb::IBufferMessage
7815       #endif
7816       {
7817         private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
7818         private pb::UnknownFieldSet _unknownFields;
7819         private int _hasBits0;
7820         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7821         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7822         public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
7823 
7824         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7825         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7826         public static pbr::MessageDescriptor Descriptor {
7827           get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Descriptor.NestedTypes[0]; }
7828         }
7829 
7830         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7831         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7832         pbr::MessageDescriptor pb::IMessage.Descriptor {
7833           get { return Descriptor; }
7834         }
7835 
7836         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7837         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup_extension()7838         public OptionalGroup_extension() {
7839           OnConstruction();
7840         }
7841 
OnConstruction()7842         partial void OnConstruction();
7843 
7844         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7845         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup_extension(OptionalGroup_extension other)7846         public OptionalGroup_extension(OptionalGroup_extension other) : this() {
7847           _hasBits0 = other._hasBits0;
7848           a_ = other.a_;
7849           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7850         }
7851 
7852         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7853         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7854         public OptionalGroup_extension Clone() {
7855           return new OptionalGroup_extension(this);
7856         }
7857 
7858         /// <summary>Field number for the "a" field.</summary>
7859         public const int AFieldNumber = 17;
7860         private readonly static int ADefaultValue = 0;
7861 
7862         private int a_;
7863         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7864         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7865         public int A {
7866           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
7867           set {
7868             _hasBits0 |= 1;
7869             a_ = value;
7870           }
7871         }
7872         /// <summary>Gets whether the "a" field is set</summary>
7873         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7874         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7875         public bool HasA {
7876           get { return (_hasBits0 & 1) != 0; }
7877         }
7878         /// <summary>Clears the value of the "a" field</summary>
7879         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7880         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()7881         public void ClearA() {
7882           _hasBits0 &= ~1;
7883         }
7884 
7885         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7886         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7887         public override bool Equals(object other) {
7888           return Equals(other as OptionalGroup_extension);
7889         }
7890 
7891         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7892         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup_extension other)7893         public bool Equals(OptionalGroup_extension other) {
7894           if (ReferenceEquals(other, null)) {
7895             return false;
7896           }
7897           if (ReferenceEquals(other, this)) {
7898             return true;
7899           }
7900           if (A != other.A) return false;
7901           return Equals(_unknownFields, other._unknownFields);
7902         }
7903 
7904         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7905         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7906         public override int GetHashCode() {
7907           int hash = 1;
7908           if (HasA) hash ^= A.GetHashCode();
7909           if (_unknownFields != null) {
7910             hash ^= _unknownFields.GetHashCode();
7911           }
7912           return hash;
7913         }
7914 
7915         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7916         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7917         public override string ToString() {
7918           return pb::JsonFormatter.ToDiagnosticString(this);
7919         }
7920 
7921         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7922         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7923         public void WriteTo(pb::CodedOutputStream output) {
7924         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7925           output.WriteRawMessage(this);
7926         #else
7927           if (HasA) {
7928             output.WriteRawTag(136, 1);
7929             output.WriteInt32(A);
7930           }
7931           if (_unknownFields != null) {
7932             _unknownFields.WriteTo(output);
7933           }
7934         #endif
7935         }
7936 
7937         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7938         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7939         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7940         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7941           if (HasA) {
7942             output.WriteRawTag(136, 1);
7943             output.WriteInt32(A);
7944           }
7945           if (_unknownFields != null) {
7946             _unknownFields.WriteTo(ref output);
7947           }
7948         }
7949         #endif
7950 
7951         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7952         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7953         public int CalculateSize() {
7954           int size = 0;
7955           if (HasA) {
7956             size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
7957           }
7958           if (_unknownFields != null) {
7959             size += _unknownFields.CalculateSize();
7960           }
7961           return size;
7962         }
7963 
7964         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7965         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup_extension other)7966         public void MergeFrom(OptionalGroup_extension other) {
7967           if (other == null) {
7968             return;
7969           }
7970           if (other.HasA) {
7971             A = other.A;
7972           }
7973           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7974         }
7975 
7976         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7977         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7978         public void MergeFrom(pb::CodedInputStream input) {
7979         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7980           input.ReadRawMessage(this);
7981         #else
7982           uint tag;
7983           while ((tag = input.ReadTag()) != 0) {
7984             switch(tag) {
7985               case 132:
7986                 return;
7987               default:
7988                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7989                 break;
7990               case 136: {
7991                 A = input.ReadInt32();
7992                 break;
7993               }
7994             }
7995           }
7996         #endif
7997         }
7998 
7999         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8000         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8001         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8002         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8003           uint tag;
8004           while ((tag = input.ReadTag()) != 0) {
8005             switch(tag) {
8006               case 132:
8007                 return;
8008               default:
8009                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8010                 break;
8011               case 136: {
8012                 A = input.ReadInt32();
8013                 break;
8014               }
8015             }
8016           }
8017         }
8018         #endif
8019 
8020       }
8021 
8022     }
8023     #endregion
8024 
8025     #region Extensions
8026     /// <summary>Container for extensions for other messages declared in the TestNestedExtension message type.</summary>
8027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8029     public static partial class Extensions {
8030       /// <summary>
8031       /// Check for bug where string extensions declared in tested scope did not
8032       /// compile.
8033       /// </summary>
8034       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> Test =
8035         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1002, pb::FieldCodec.ForString(8018, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("dGVzdA=="), 0, 4)));
8036       /// <summary>
8037       /// Used to test if generated extension name is correct when there are
8038       /// underscores.
8039       /// </summary>
8040       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> NestedStringExtension =
8041         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1003, pb::FieldCodec.ForString(8026, ""));
8042       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension> OptionalGroupExtension =
8043         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension>(16, pb::FieldCodec.ForGroup(131, 132, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension.Parser));
8044       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
8045         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(22, pb::FieldCodec.ForEnum(176, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo));
8046     }
8047     #endregion
8048 
8049   }
8050 
8051   /// <summary>
8052   /// We have separate messages for testing required fields because it's
8053   /// annoying to have to fill in required fields in TestProto in order to
8054   /// do anything with it.  Note that we don't need to test every type of
8055   /// required filed because the code output is basically identical to
8056   /// optional fields for all types.
8057   /// </summary>
8058   public sealed partial class TestRequired : pb::IMessage<TestRequired>
8059   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8060       , pb::IBufferMessage
8061   #endif
8062   {
8063     private static readonly pb::MessageParser<TestRequired> _parser = new pb::MessageParser<TestRequired>(() => new TestRequired());
8064     private pb::UnknownFieldSet _unknownFields;
8065     private int _hasBits0;
8066     private int _hasBits1;
8067     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8068     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8069     public static pb::MessageParser<TestRequired> Parser { get { return _parser; } }
8070 
8071     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8072     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8073     public static pbr::MessageDescriptor Descriptor {
8074       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[12]; }
8075     }
8076 
8077     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8078     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8079     pbr::MessageDescriptor pb::IMessage.Descriptor {
8080       get { return Descriptor; }
8081     }
8082 
8083     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8084     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequired()8085     public TestRequired() {
8086       OnConstruction();
8087     }
8088 
OnConstruction()8089     partial void OnConstruction();
8090 
8091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8092     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequired(TestRequired other)8093     public TestRequired(TestRequired other) : this() {
8094       _hasBits0 = other._hasBits0;
8095       _hasBits1 = other._hasBits1;
8096       a_ = other.a_;
8097       dummy2_ = other.dummy2_;
8098       b_ = other.b_;
8099       dummy4_ = other.dummy4_;
8100       dummy5_ = other.dummy5_;
8101       dummy6_ = other.dummy6_;
8102       dummy7_ = other.dummy7_;
8103       dummy8_ = other.dummy8_;
8104       dummy9_ = other.dummy9_;
8105       dummy10_ = other.dummy10_;
8106       dummy11_ = other.dummy11_;
8107       dummy12_ = other.dummy12_;
8108       dummy13_ = other.dummy13_;
8109       dummy14_ = other.dummy14_;
8110       dummy15_ = other.dummy15_;
8111       dummy16_ = other.dummy16_;
8112       dummy17_ = other.dummy17_;
8113       dummy18_ = other.dummy18_;
8114       dummy19_ = other.dummy19_;
8115       dummy20_ = other.dummy20_;
8116       dummy21_ = other.dummy21_;
8117       dummy22_ = other.dummy22_;
8118       dummy23_ = other.dummy23_;
8119       dummy24_ = other.dummy24_;
8120       dummy25_ = other.dummy25_;
8121       dummy26_ = other.dummy26_;
8122       dummy27_ = other.dummy27_;
8123       dummy28_ = other.dummy28_;
8124       dummy29_ = other.dummy29_;
8125       dummy30_ = other.dummy30_;
8126       dummy31_ = other.dummy31_;
8127       dummy32_ = other.dummy32_;
8128       c_ = other.c_;
8129       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8130     }
8131 
8132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8133     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()8134     public TestRequired Clone() {
8135       return new TestRequired(this);
8136     }
8137 
8138     /// <summary>Field number for the "a" field.</summary>
8139     public const int AFieldNumber = 1;
8140     private readonly static int ADefaultValue = 0;
8141 
8142     private int a_;
8143     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8144     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8145     public int A {
8146       get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
8147       set {
8148         _hasBits0 |= 1;
8149         a_ = value;
8150       }
8151     }
8152     /// <summary>Gets whether the "a" field is set</summary>
8153     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8154     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8155     public bool HasA {
8156       get { return (_hasBits0 & 1) != 0; }
8157     }
8158     /// <summary>Clears the value of the "a" field</summary>
8159     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8160     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()8161     public void ClearA() {
8162       _hasBits0 &= ~1;
8163     }
8164 
8165     /// <summary>Field number for the "dummy2" field.</summary>
8166     public const int Dummy2FieldNumber = 2;
8167     private readonly static int Dummy2DefaultValue = 0;
8168 
8169     private int dummy2_;
8170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8171     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8172     public int Dummy2 {
8173       get { if ((_hasBits0 & 2) != 0) { return dummy2_; } else { return Dummy2DefaultValue; } }
8174       set {
8175         _hasBits0 |= 2;
8176         dummy2_ = value;
8177       }
8178     }
8179     /// <summary>Gets whether the "dummy2" field is set</summary>
8180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8181     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8182     public bool HasDummy2 {
8183       get { return (_hasBits0 & 2) != 0; }
8184     }
8185     /// <summary>Clears the value of the "dummy2" field</summary>
8186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8187     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy2()8188     public void ClearDummy2() {
8189       _hasBits0 &= ~2;
8190     }
8191 
8192     /// <summary>Field number for the "b" field.</summary>
8193     public const int BFieldNumber = 3;
8194     private readonly static int BDefaultValue = 0;
8195 
8196     private int b_;
8197     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8198     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8199     public int B {
8200       get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } }
8201       set {
8202         _hasBits0 |= 4;
8203         b_ = value;
8204       }
8205     }
8206     /// <summary>Gets whether the "b" field is set</summary>
8207     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8208     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8209     public bool HasB {
8210       get { return (_hasBits0 & 4) != 0; }
8211     }
8212     /// <summary>Clears the value of the "b" field</summary>
8213     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8214     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearB()8215     public void ClearB() {
8216       _hasBits0 &= ~4;
8217     }
8218 
8219     /// <summary>Field number for the "dummy4" field.</summary>
8220     public const int Dummy4FieldNumber = 4;
8221     private readonly static int Dummy4DefaultValue = 0;
8222 
8223     private int dummy4_;
8224     /// <summary>
8225     /// Pad the field count to 32 so that we can test that IsInitialized()
8226     /// properly checks multiple elements of has_bits_.
8227     /// </summary>
8228     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8229     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8230     public int Dummy4 {
8231       get { if ((_hasBits0 & 8) != 0) { return dummy4_; } else { return Dummy4DefaultValue; } }
8232       set {
8233         _hasBits0 |= 8;
8234         dummy4_ = value;
8235       }
8236     }
8237     /// <summary>Gets whether the "dummy4" field is set</summary>
8238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8239     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8240     public bool HasDummy4 {
8241       get { return (_hasBits0 & 8) != 0; }
8242     }
8243     /// <summary>Clears the value of the "dummy4" field</summary>
8244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8245     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy4()8246     public void ClearDummy4() {
8247       _hasBits0 &= ~8;
8248     }
8249 
8250     /// <summary>Field number for the "dummy5" field.</summary>
8251     public const int Dummy5FieldNumber = 5;
8252     private readonly static int Dummy5DefaultValue = 0;
8253 
8254     private int dummy5_;
8255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8257     public int Dummy5 {
8258       get { if ((_hasBits0 & 16) != 0) { return dummy5_; } else { return Dummy5DefaultValue; } }
8259       set {
8260         _hasBits0 |= 16;
8261         dummy5_ = value;
8262       }
8263     }
8264     /// <summary>Gets whether the "dummy5" field is set</summary>
8265     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8266     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8267     public bool HasDummy5 {
8268       get { return (_hasBits0 & 16) != 0; }
8269     }
8270     /// <summary>Clears the value of the "dummy5" field</summary>
8271     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8272     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy5()8273     public void ClearDummy5() {
8274       _hasBits0 &= ~16;
8275     }
8276 
8277     /// <summary>Field number for the "dummy6" field.</summary>
8278     public const int Dummy6FieldNumber = 6;
8279     private readonly static int Dummy6DefaultValue = 0;
8280 
8281     private int dummy6_;
8282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8283     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8284     public int Dummy6 {
8285       get { if ((_hasBits0 & 32) != 0) { return dummy6_; } else { return Dummy6DefaultValue; } }
8286       set {
8287         _hasBits0 |= 32;
8288         dummy6_ = value;
8289       }
8290     }
8291     /// <summary>Gets whether the "dummy6" field is set</summary>
8292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8293     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8294     public bool HasDummy6 {
8295       get { return (_hasBits0 & 32) != 0; }
8296     }
8297     /// <summary>Clears the value of the "dummy6" field</summary>
8298     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8299     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy6()8300     public void ClearDummy6() {
8301       _hasBits0 &= ~32;
8302     }
8303 
8304     /// <summary>Field number for the "dummy7" field.</summary>
8305     public const int Dummy7FieldNumber = 7;
8306     private readonly static int Dummy7DefaultValue = 0;
8307 
8308     private int dummy7_;
8309     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8310     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8311     public int Dummy7 {
8312       get { if ((_hasBits0 & 64) != 0) { return dummy7_; } else { return Dummy7DefaultValue; } }
8313       set {
8314         _hasBits0 |= 64;
8315         dummy7_ = value;
8316       }
8317     }
8318     /// <summary>Gets whether the "dummy7" field is set</summary>
8319     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8320     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8321     public bool HasDummy7 {
8322       get { return (_hasBits0 & 64) != 0; }
8323     }
8324     /// <summary>Clears the value of the "dummy7" field</summary>
8325     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8326     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy7()8327     public void ClearDummy7() {
8328       _hasBits0 &= ~64;
8329     }
8330 
8331     /// <summary>Field number for the "dummy8" field.</summary>
8332     public const int Dummy8FieldNumber = 8;
8333     private readonly static int Dummy8DefaultValue = 0;
8334 
8335     private int dummy8_;
8336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8337     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8338     public int Dummy8 {
8339       get { if ((_hasBits0 & 128) != 0) { return dummy8_; } else { return Dummy8DefaultValue; } }
8340       set {
8341         _hasBits0 |= 128;
8342         dummy8_ = value;
8343       }
8344     }
8345     /// <summary>Gets whether the "dummy8" field is set</summary>
8346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8348     public bool HasDummy8 {
8349       get { return (_hasBits0 & 128) != 0; }
8350     }
8351     /// <summary>Clears the value of the "dummy8" field</summary>
8352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy8()8354     public void ClearDummy8() {
8355       _hasBits0 &= ~128;
8356     }
8357 
8358     /// <summary>Field number for the "dummy9" field.</summary>
8359     public const int Dummy9FieldNumber = 9;
8360     private readonly static int Dummy9DefaultValue = 0;
8361 
8362     private int dummy9_;
8363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8365     public int Dummy9 {
8366       get { if ((_hasBits0 & 256) != 0) { return dummy9_; } else { return Dummy9DefaultValue; } }
8367       set {
8368         _hasBits0 |= 256;
8369         dummy9_ = value;
8370       }
8371     }
8372     /// <summary>Gets whether the "dummy9" field is set</summary>
8373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8375     public bool HasDummy9 {
8376       get { return (_hasBits0 & 256) != 0; }
8377     }
8378     /// <summary>Clears the value of the "dummy9" field</summary>
8379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8380     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy9()8381     public void ClearDummy9() {
8382       _hasBits0 &= ~256;
8383     }
8384 
8385     /// <summary>Field number for the "dummy10" field.</summary>
8386     public const int Dummy10FieldNumber = 10;
8387     private readonly static int Dummy10DefaultValue = 0;
8388 
8389     private int dummy10_;
8390     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8391     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8392     public int Dummy10 {
8393       get { if ((_hasBits0 & 512) != 0) { return dummy10_; } else { return Dummy10DefaultValue; } }
8394       set {
8395         _hasBits0 |= 512;
8396         dummy10_ = value;
8397       }
8398     }
8399     /// <summary>Gets whether the "dummy10" field is set</summary>
8400     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8401     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8402     public bool HasDummy10 {
8403       get { return (_hasBits0 & 512) != 0; }
8404     }
8405     /// <summary>Clears the value of the "dummy10" field</summary>
8406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy10()8408     public void ClearDummy10() {
8409       _hasBits0 &= ~512;
8410     }
8411 
8412     /// <summary>Field number for the "dummy11" field.</summary>
8413     public const int Dummy11FieldNumber = 11;
8414     private readonly static int Dummy11DefaultValue = 0;
8415 
8416     private int dummy11_;
8417     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8418     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8419     public int Dummy11 {
8420       get { if ((_hasBits0 & 1024) != 0) { return dummy11_; } else { return Dummy11DefaultValue; } }
8421       set {
8422         _hasBits0 |= 1024;
8423         dummy11_ = value;
8424       }
8425     }
8426     /// <summary>Gets whether the "dummy11" field is set</summary>
8427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8428     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8429     public bool HasDummy11 {
8430       get { return (_hasBits0 & 1024) != 0; }
8431     }
8432     /// <summary>Clears the value of the "dummy11" field</summary>
8433     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8434     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy11()8435     public void ClearDummy11() {
8436       _hasBits0 &= ~1024;
8437     }
8438 
8439     /// <summary>Field number for the "dummy12" field.</summary>
8440     public const int Dummy12FieldNumber = 12;
8441     private readonly static int Dummy12DefaultValue = 0;
8442 
8443     private int dummy12_;
8444     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8445     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8446     public int Dummy12 {
8447       get { if ((_hasBits0 & 2048) != 0) { return dummy12_; } else { return Dummy12DefaultValue; } }
8448       set {
8449         _hasBits0 |= 2048;
8450         dummy12_ = value;
8451       }
8452     }
8453     /// <summary>Gets whether the "dummy12" field is set</summary>
8454     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8455     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8456     public bool HasDummy12 {
8457       get { return (_hasBits0 & 2048) != 0; }
8458     }
8459     /// <summary>Clears the value of the "dummy12" field</summary>
8460     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8461     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy12()8462     public void ClearDummy12() {
8463       _hasBits0 &= ~2048;
8464     }
8465 
8466     /// <summary>Field number for the "dummy13" field.</summary>
8467     public const int Dummy13FieldNumber = 13;
8468     private readonly static int Dummy13DefaultValue = 0;
8469 
8470     private int dummy13_;
8471     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8472     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8473     public int Dummy13 {
8474       get { if ((_hasBits0 & 4096) != 0) { return dummy13_; } else { return Dummy13DefaultValue; } }
8475       set {
8476         _hasBits0 |= 4096;
8477         dummy13_ = value;
8478       }
8479     }
8480     /// <summary>Gets whether the "dummy13" field is set</summary>
8481     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8482     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8483     public bool HasDummy13 {
8484       get { return (_hasBits0 & 4096) != 0; }
8485     }
8486     /// <summary>Clears the value of the "dummy13" field</summary>
8487     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8488     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy13()8489     public void ClearDummy13() {
8490       _hasBits0 &= ~4096;
8491     }
8492 
8493     /// <summary>Field number for the "dummy14" field.</summary>
8494     public const int Dummy14FieldNumber = 14;
8495     private readonly static int Dummy14DefaultValue = 0;
8496 
8497     private int dummy14_;
8498     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8499     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8500     public int Dummy14 {
8501       get { if ((_hasBits0 & 8192) != 0) { return dummy14_; } else { return Dummy14DefaultValue; } }
8502       set {
8503         _hasBits0 |= 8192;
8504         dummy14_ = value;
8505       }
8506     }
8507     /// <summary>Gets whether the "dummy14" field is set</summary>
8508     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8509     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8510     public bool HasDummy14 {
8511       get { return (_hasBits0 & 8192) != 0; }
8512     }
8513     /// <summary>Clears the value of the "dummy14" field</summary>
8514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8515     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy14()8516     public void ClearDummy14() {
8517       _hasBits0 &= ~8192;
8518     }
8519 
8520     /// <summary>Field number for the "dummy15" field.</summary>
8521     public const int Dummy15FieldNumber = 15;
8522     private readonly static int Dummy15DefaultValue = 0;
8523 
8524     private int dummy15_;
8525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8526     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8527     public int Dummy15 {
8528       get { if ((_hasBits0 & 16384) != 0) { return dummy15_; } else { return Dummy15DefaultValue; } }
8529       set {
8530         _hasBits0 |= 16384;
8531         dummy15_ = value;
8532       }
8533     }
8534     /// <summary>Gets whether the "dummy15" field is set</summary>
8535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8536     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8537     public bool HasDummy15 {
8538       get { return (_hasBits0 & 16384) != 0; }
8539     }
8540     /// <summary>Clears the value of the "dummy15" field</summary>
8541     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8542     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy15()8543     public void ClearDummy15() {
8544       _hasBits0 &= ~16384;
8545     }
8546 
8547     /// <summary>Field number for the "dummy16" field.</summary>
8548     public const int Dummy16FieldNumber = 16;
8549     private readonly static int Dummy16DefaultValue = 0;
8550 
8551     private int dummy16_;
8552     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8553     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8554     public int Dummy16 {
8555       get { if ((_hasBits0 & 32768) != 0) { return dummy16_; } else { return Dummy16DefaultValue; } }
8556       set {
8557         _hasBits0 |= 32768;
8558         dummy16_ = value;
8559       }
8560     }
8561     /// <summary>Gets whether the "dummy16" field is set</summary>
8562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8563     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8564     public bool HasDummy16 {
8565       get { return (_hasBits0 & 32768) != 0; }
8566     }
8567     /// <summary>Clears the value of the "dummy16" field</summary>
8568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy16()8570     public void ClearDummy16() {
8571       _hasBits0 &= ~32768;
8572     }
8573 
8574     /// <summary>Field number for the "dummy17" field.</summary>
8575     public const int Dummy17FieldNumber = 17;
8576     private readonly static int Dummy17DefaultValue = 0;
8577 
8578     private int dummy17_;
8579     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8580     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8581     public int Dummy17 {
8582       get { if ((_hasBits0 & 65536) != 0) { return dummy17_; } else { return Dummy17DefaultValue; } }
8583       set {
8584         _hasBits0 |= 65536;
8585         dummy17_ = value;
8586       }
8587     }
8588     /// <summary>Gets whether the "dummy17" field is set</summary>
8589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8590     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8591     public bool HasDummy17 {
8592       get { return (_hasBits0 & 65536) != 0; }
8593     }
8594     /// <summary>Clears the value of the "dummy17" field</summary>
8595     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8596     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy17()8597     public void ClearDummy17() {
8598       _hasBits0 &= ~65536;
8599     }
8600 
8601     /// <summary>Field number for the "dummy18" field.</summary>
8602     public const int Dummy18FieldNumber = 18;
8603     private readonly static int Dummy18DefaultValue = 0;
8604 
8605     private int dummy18_;
8606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8607     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8608     public int Dummy18 {
8609       get { if ((_hasBits0 & 131072) != 0) { return dummy18_; } else { return Dummy18DefaultValue; } }
8610       set {
8611         _hasBits0 |= 131072;
8612         dummy18_ = value;
8613       }
8614     }
8615     /// <summary>Gets whether the "dummy18" field is set</summary>
8616     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8617     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8618     public bool HasDummy18 {
8619       get { return (_hasBits0 & 131072) != 0; }
8620     }
8621     /// <summary>Clears the value of the "dummy18" field</summary>
8622     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8623     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy18()8624     public void ClearDummy18() {
8625       _hasBits0 &= ~131072;
8626     }
8627 
8628     /// <summary>Field number for the "dummy19" field.</summary>
8629     public const int Dummy19FieldNumber = 19;
8630     private readonly static int Dummy19DefaultValue = 0;
8631 
8632     private int dummy19_;
8633     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8634     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8635     public int Dummy19 {
8636       get { if ((_hasBits0 & 262144) != 0) { return dummy19_; } else { return Dummy19DefaultValue; } }
8637       set {
8638         _hasBits0 |= 262144;
8639         dummy19_ = value;
8640       }
8641     }
8642     /// <summary>Gets whether the "dummy19" field is set</summary>
8643     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8644     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8645     public bool HasDummy19 {
8646       get { return (_hasBits0 & 262144) != 0; }
8647     }
8648     /// <summary>Clears the value of the "dummy19" field</summary>
8649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy19()8651     public void ClearDummy19() {
8652       _hasBits0 &= ~262144;
8653     }
8654 
8655     /// <summary>Field number for the "dummy20" field.</summary>
8656     public const int Dummy20FieldNumber = 20;
8657     private readonly static int Dummy20DefaultValue = 0;
8658 
8659     private int dummy20_;
8660     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8661     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8662     public int Dummy20 {
8663       get { if ((_hasBits0 & 524288) != 0) { return dummy20_; } else { return Dummy20DefaultValue; } }
8664       set {
8665         _hasBits0 |= 524288;
8666         dummy20_ = value;
8667       }
8668     }
8669     /// <summary>Gets whether the "dummy20" field is set</summary>
8670     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8671     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8672     public bool HasDummy20 {
8673       get { return (_hasBits0 & 524288) != 0; }
8674     }
8675     /// <summary>Clears the value of the "dummy20" field</summary>
8676     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8677     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy20()8678     public void ClearDummy20() {
8679       _hasBits0 &= ~524288;
8680     }
8681 
8682     /// <summary>Field number for the "dummy21" field.</summary>
8683     public const int Dummy21FieldNumber = 21;
8684     private readonly static int Dummy21DefaultValue = 0;
8685 
8686     private int dummy21_;
8687     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8688     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8689     public int Dummy21 {
8690       get { if ((_hasBits0 & 1048576) != 0) { return dummy21_; } else { return Dummy21DefaultValue; } }
8691       set {
8692         _hasBits0 |= 1048576;
8693         dummy21_ = value;
8694       }
8695     }
8696     /// <summary>Gets whether the "dummy21" field is set</summary>
8697     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8698     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8699     public bool HasDummy21 {
8700       get { return (_hasBits0 & 1048576) != 0; }
8701     }
8702     /// <summary>Clears the value of the "dummy21" field</summary>
8703     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8704     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy21()8705     public void ClearDummy21() {
8706       _hasBits0 &= ~1048576;
8707     }
8708 
8709     /// <summary>Field number for the "dummy22" field.</summary>
8710     public const int Dummy22FieldNumber = 22;
8711     private readonly static int Dummy22DefaultValue = 0;
8712 
8713     private int dummy22_;
8714     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8715     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8716     public int Dummy22 {
8717       get { if ((_hasBits0 & 2097152) != 0) { return dummy22_; } else { return Dummy22DefaultValue; } }
8718       set {
8719         _hasBits0 |= 2097152;
8720         dummy22_ = value;
8721       }
8722     }
8723     /// <summary>Gets whether the "dummy22" field is set</summary>
8724     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8725     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8726     public bool HasDummy22 {
8727       get { return (_hasBits0 & 2097152) != 0; }
8728     }
8729     /// <summary>Clears the value of the "dummy22" field</summary>
8730     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8731     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy22()8732     public void ClearDummy22() {
8733       _hasBits0 &= ~2097152;
8734     }
8735 
8736     /// <summary>Field number for the "dummy23" field.</summary>
8737     public const int Dummy23FieldNumber = 23;
8738     private readonly static int Dummy23DefaultValue = 0;
8739 
8740     private int dummy23_;
8741     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8742     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8743     public int Dummy23 {
8744       get { if ((_hasBits0 & 4194304) != 0) { return dummy23_; } else { return Dummy23DefaultValue; } }
8745       set {
8746         _hasBits0 |= 4194304;
8747         dummy23_ = value;
8748       }
8749     }
8750     /// <summary>Gets whether the "dummy23" field is set</summary>
8751     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8752     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8753     public bool HasDummy23 {
8754       get { return (_hasBits0 & 4194304) != 0; }
8755     }
8756     /// <summary>Clears the value of the "dummy23" field</summary>
8757     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8758     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy23()8759     public void ClearDummy23() {
8760       _hasBits0 &= ~4194304;
8761     }
8762 
8763     /// <summary>Field number for the "dummy24" field.</summary>
8764     public const int Dummy24FieldNumber = 24;
8765     private readonly static int Dummy24DefaultValue = 0;
8766 
8767     private int dummy24_;
8768     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8769     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8770     public int Dummy24 {
8771       get { if ((_hasBits0 & 8388608) != 0) { return dummy24_; } else { return Dummy24DefaultValue; } }
8772       set {
8773         _hasBits0 |= 8388608;
8774         dummy24_ = value;
8775       }
8776     }
8777     /// <summary>Gets whether the "dummy24" field is set</summary>
8778     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8779     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8780     public bool HasDummy24 {
8781       get { return (_hasBits0 & 8388608) != 0; }
8782     }
8783     /// <summary>Clears the value of the "dummy24" field</summary>
8784     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8785     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy24()8786     public void ClearDummy24() {
8787       _hasBits0 &= ~8388608;
8788     }
8789 
8790     /// <summary>Field number for the "dummy25" field.</summary>
8791     public const int Dummy25FieldNumber = 25;
8792     private readonly static int Dummy25DefaultValue = 0;
8793 
8794     private int dummy25_;
8795     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8796     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8797     public int Dummy25 {
8798       get { if ((_hasBits0 & 16777216) != 0) { return dummy25_; } else { return Dummy25DefaultValue; } }
8799       set {
8800         _hasBits0 |= 16777216;
8801         dummy25_ = value;
8802       }
8803     }
8804     /// <summary>Gets whether the "dummy25" field is set</summary>
8805     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8806     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8807     public bool HasDummy25 {
8808       get { return (_hasBits0 & 16777216) != 0; }
8809     }
8810     /// <summary>Clears the value of the "dummy25" field</summary>
8811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8812     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy25()8813     public void ClearDummy25() {
8814       _hasBits0 &= ~16777216;
8815     }
8816 
8817     /// <summary>Field number for the "dummy26" field.</summary>
8818     public const int Dummy26FieldNumber = 26;
8819     private readonly static int Dummy26DefaultValue = 0;
8820 
8821     private int dummy26_;
8822     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8823     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8824     public int Dummy26 {
8825       get { if ((_hasBits0 & 33554432) != 0) { return dummy26_; } else { return Dummy26DefaultValue; } }
8826       set {
8827         _hasBits0 |= 33554432;
8828         dummy26_ = value;
8829       }
8830     }
8831     /// <summary>Gets whether the "dummy26" field is set</summary>
8832     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8833     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8834     public bool HasDummy26 {
8835       get { return (_hasBits0 & 33554432) != 0; }
8836     }
8837     /// <summary>Clears the value of the "dummy26" field</summary>
8838     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8839     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy26()8840     public void ClearDummy26() {
8841       _hasBits0 &= ~33554432;
8842     }
8843 
8844     /// <summary>Field number for the "dummy27" field.</summary>
8845     public const int Dummy27FieldNumber = 27;
8846     private readonly static int Dummy27DefaultValue = 0;
8847 
8848     private int dummy27_;
8849     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8850     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8851     public int Dummy27 {
8852       get { if ((_hasBits0 & 67108864) != 0) { return dummy27_; } else { return Dummy27DefaultValue; } }
8853       set {
8854         _hasBits0 |= 67108864;
8855         dummy27_ = value;
8856       }
8857     }
8858     /// <summary>Gets whether the "dummy27" field is set</summary>
8859     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8860     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8861     public bool HasDummy27 {
8862       get { return (_hasBits0 & 67108864) != 0; }
8863     }
8864     /// <summary>Clears the value of the "dummy27" field</summary>
8865     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8866     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy27()8867     public void ClearDummy27() {
8868       _hasBits0 &= ~67108864;
8869     }
8870 
8871     /// <summary>Field number for the "dummy28" field.</summary>
8872     public const int Dummy28FieldNumber = 28;
8873     private readonly static int Dummy28DefaultValue = 0;
8874 
8875     private int dummy28_;
8876     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8877     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8878     public int Dummy28 {
8879       get { if ((_hasBits0 & 134217728) != 0) { return dummy28_; } else { return Dummy28DefaultValue; } }
8880       set {
8881         _hasBits0 |= 134217728;
8882         dummy28_ = value;
8883       }
8884     }
8885     /// <summary>Gets whether the "dummy28" field is set</summary>
8886     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8887     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8888     public bool HasDummy28 {
8889       get { return (_hasBits0 & 134217728) != 0; }
8890     }
8891     /// <summary>Clears the value of the "dummy28" field</summary>
8892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8893     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy28()8894     public void ClearDummy28() {
8895       _hasBits0 &= ~134217728;
8896     }
8897 
8898     /// <summary>Field number for the "dummy29" field.</summary>
8899     public const int Dummy29FieldNumber = 29;
8900     private readonly static int Dummy29DefaultValue = 0;
8901 
8902     private int dummy29_;
8903     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8904     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8905     public int Dummy29 {
8906       get { if ((_hasBits0 & 268435456) != 0) { return dummy29_; } else { return Dummy29DefaultValue; } }
8907       set {
8908         _hasBits0 |= 268435456;
8909         dummy29_ = value;
8910       }
8911     }
8912     /// <summary>Gets whether the "dummy29" field is set</summary>
8913     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8914     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8915     public bool HasDummy29 {
8916       get { return (_hasBits0 & 268435456) != 0; }
8917     }
8918     /// <summary>Clears the value of the "dummy29" field</summary>
8919     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8920     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy29()8921     public void ClearDummy29() {
8922       _hasBits0 &= ~268435456;
8923     }
8924 
8925     /// <summary>Field number for the "dummy30" field.</summary>
8926     public const int Dummy30FieldNumber = 30;
8927     private readonly static int Dummy30DefaultValue = 0;
8928 
8929     private int dummy30_;
8930     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8931     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8932     public int Dummy30 {
8933       get { if ((_hasBits0 & 536870912) != 0) { return dummy30_; } else { return Dummy30DefaultValue; } }
8934       set {
8935         _hasBits0 |= 536870912;
8936         dummy30_ = value;
8937       }
8938     }
8939     /// <summary>Gets whether the "dummy30" field is set</summary>
8940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8941     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8942     public bool HasDummy30 {
8943       get { return (_hasBits0 & 536870912) != 0; }
8944     }
8945     /// <summary>Clears the value of the "dummy30" field</summary>
8946     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8947     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy30()8948     public void ClearDummy30() {
8949       _hasBits0 &= ~536870912;
8950     }
8951 
8952     /// <summary>Field number for the "dummy31" field.</summary>
8953     public const int Dummy31FieldNumber = 31;
8954     private readonly static int Dummy31DefaultValue = 0;
8955 
8956     private int dummy31_;
8957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8958     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8959     public int Dummy31 {
8960       get { if ((_hasBits0 & 1073741824) != 0) { return dummy31_; } else { return Dummy31DefaultValue; } }
8961       set {
8962         _hasBits0 |= 1073741824;
8963         dummy31_ = value;
8964       }
8965     }
8966     /// <summary>Gets whether the "dummy31" field is set</summary>
8967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8968     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8969     public bool HasDummy31 {
8970       get { return (_hasBits0 & 1073741824) != 0; }
8971     }
8972     /// <summary>Clears the value of the "dummy31" field</summary>
8973     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8974     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy31()8975     public void ClearDummy31() {
8976       _hasBits0 &= ~1073741824;
8977     }
8978 
8979     /// <summary>Field number for the "dummy32" field.</summary>
8980     public const int Dummy32FieldNumber = 32;
8981     private readonly static int Dummy32DefaultValue = 0;
8982 
8983     private int dummy32_;
8984     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8985     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8986     public int Dummy32 {
8987       get { if ((_hasBits0 & -2147483648) != 0) { return dummy32_; } else { return Dummy32DefaultValue; } }
8988       set {
8989         _hasBits0 |= -2147483648;
8990         dummy32_ = value;
8991       }
8992     }
8993     /// <summary>Gets whether the "dummy32" field is set</summary>
8994     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8995     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8996     public bool HasDummy32 {
8997       get { return (_hasBits0 & -2147483648) != 0; }
8998     }
8999     /// <summary>Clears the value of the "dummy32" field</summary>
9000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9001     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy32()9002     public void ClearDummy32() {
9003       _hasBits0 &= ~-2147483648;
9004     }
9005 
9006     /// <summary>Field number for the "c" field.</summary>
9007     public const int CFieldNumber = 33;
9008     private readonly static int CDefaultValue = 0;
9009 
9010     private int c_;
9011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9013     public int C {
9014       get { if ((_hasBits1 & 1) != 0) { return c_; } else { return CDefaultValue; } }
9015       set {
9016         _hasBits1 |= 1;
9017         c_ = value;
9018       }
9019     }
9020     /// <summary>Gets whether the "c" field is set</summary>
9021     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9022     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9023     public bool HasC {
9024       get { return (_hasBits1 & 1) != 0; }
9025     }
9026     /// <summary>Clears the value of the "c" field</summary>
9027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearC()9029     public void ClearC() {
9030       _hasBits1 &= ~1;
9031     }
9032 
9033     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9034     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)9035     public override bool Equals(object other) {
9036       return Equals(other as TestRequired);
9037     }
9038 
9039     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9040     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestRequired other)9041     public bool Equals(TestRequired other) {
9042       if (ReferenceEquals(other, null)) {
9043         return false;
9044       }
9045       if (ReferenceEquals(other, this)) {
9046         return true;
9047       }
9048       if (A != other.A) return false;
9049       if (Dummy2 != other.Dummy2) return false;
9050       if (B != other.B) return false;
9051       if (Dummy4 != other.Dummy4) return false;
9052       if (Dummy5 != other.Dummy5) return false;
9053       if (Dummy6 != other.Dummy6) return false;
9054       if (Dummy7 != other.Dummy7) return false;
9055       if (Dummy8 != other.Dummy8) return false;
9056       if (Dummy9 != other.Dummy9) return false;
9057       if (Dummy10 != other.Dummy10) return false;
9058       if (Dummy11 != other.Dummy11) return false;
9059       if (Dummy12 != other.Dummy12) return false;
9060       if (Dummy13 != other.Dummy13) return false;
9061       if (Dummy14 != other.Dummy14) return false;
9062       if (Dummy15 != other.Dummy15) return false;
9063       if (Dummy16 != other.Dummy16) return false;
9064       if (Dummy17 != other.Dummy17) return false;
9065       if (Dummy18 != other.Dummy18) return false;
9066       if (Dummy19 != other.Dummy19) return false;
9067       if (Dummy20 != other.Dummy20) return false;
9068       if (Dummy21 != other.Dummy21) return false;
9069       if (Dummy22 != other.Dummy22) return false;
9070       if (Dummy23 != other.Dummy23) return false;
9071       if (Dummy24 != other.Dummy24) return false;
9072       if (Dummy25 != other.Dummy25) return false;
9073       if (Dummy26 != other.Dummy26) return false;
9074       if (Dummy27 != other.Dummy27) return false;
9075       if (Dummy28 != other.Dummy28) return false;
9076       if (Dummy29 != other.Dummy29) return false;
9077       if (Dummy30 != other.Dummy30) return false;
9078       if (Dummy31 != other.Dummy31) return false;
9079       if (Dummy32 != other.Dummy32) return false;
9080       if (C != other.C) return false;
9081       return Equals(_unknownFields, other._unknownFields);
9082     }
9083 
9084     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9085     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()9086     public override int GetHashCode() {
9087       int hash = 1;
9088       if (HasA) hash ^= A.GetHashCode();
9089       if (HasDummy2) hash ^= Dummy2.GetHashCode();
9090       if (HasB) hash ^= B.GetHashCode();
9091       if (HasDummy4) hash ^= Dummy4.GetHashCode();
9092       if (HasDummy5) hash ^= Dummy5.GetHashCode();
9093       if (HasDummy6) hash ^= Dummy6.GetHashCode();
9094       if (HasDummy7) hash ^= Dummy7.GetHashCode();
9095       if (HasDummy8) hash ^= Dummy8.GetHashCode();
9096       if (HasDummy9) hash ^= Dummy9.GetHashCode();
9097       if (HasDummy10) hash ^= Dummy10.GetHashCode();
9098       if (HasDummy11) hash ^= Dummy11.GetHashCode();
9099       if (HasDummy12) hash ^= Dummy12.GetHashCode();
9100       if (HasDummy13) hash ^= Dummy13.GetHashCode();
9101       if (HasDummy14) hash ^= Dummy14.GetHashCode();
9102       if (HasDummy15) hash ^= Dummy15.GetHashCode();
9103       if (HasDummy16) hash ^= Dummy16.GetHashCode();
9104       if (HasDummy17) hash ^= Dummy17.GetHashCode();
9105       if (HasDummy18) hash ^= Dummy18.GetHashCode();
9106       if (HasDummy19) hash ^= Dummy19.GetHashCode();
9107       if (HasDummy20) hash ^= Dummy20.GetHashCode();
9108       if (HasDummy21) hash ^= Dummy21.GetHashCode();
9109       if (HasDummy22) hash ^= Dummy22.GetHashCode();
9110       if (HasDummy23) hash ^= Dummy23.GetHashCode();
9111       if (HasDummy24) hash ^= Dummy24.GetHashCode();
9112       if (HasDummy25) hash ^= Dummy25.GetHashCode();
9113       if (HasDummy26) hash ^= Dummy26.GetHashCode();
9114       if (HasDummy27) hash ^= Dummy27.GetHashCode();
9115       if (HasDummy28) hash ^= Dummy28.GetHashCode();
9116       if (HasDummy29) hash ^= Dummy29.GetHashCode();
9117       if (HasDummy30) hash ^= Dummy30.GetHashCode();
9118       if (HasDummy31) hash ^= Dummy31.GetHashCode();
9119       if (HasDummy32) hash ^= Dummy32.GetHashCode();
9120       if (HasC) hash ^= C.GetHashCode();
9121       if (_unknownFields != null) {
9122         hash ^= _unknownFields.GetHashCode();
9123       }
9124       return hash;
9125     }
9126 
9127     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9128     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()9129     public override string ToString() {
9130       return pb::JsonFormatter.ToDiagnosticString(this);
9131     }
9132 
9133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9134     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)9135     public void WriteTo(pb::CodedOutputStream output) {
9136     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9137       output.WriteRawMessage(this);
9138     #else
9139       if (HasA) {
9140         output.WriteRawTag(8);
9141         output.WriteInt32(A);
9142       }
9143       if (HasDummy2) {
9144         output.WriteRawTag(16);
9145         output.WriteInt32(Dummy2);
9146       }
9147       if (HasB) {
9148         output.WriteRawTag(24);
9149         output.WriteInt32(B);
9150       }
9151       if (HasDummy4) {
9152         output.WriteRawTag(32);
9153         output.WriteInt32(Dummy4);
9154       }
9155       if (HasDummy5) {
9156         output.WriteRawTag(40);
9157         output.WriteInt32(Dummy5);
9158       }
9159       if (HasDummy6) {
9160         output.WriteRawTag(48);
9161         output.WriteInt32(Dummy6);
9162       }
9163       if (HasDummy7) {
9164         output.WriteRawTag(56);
9165         output.WriteInt32(Dummy7);
9166       }
9167       if (HasDummy8) {
9168         output.WriteRawTag(64);
9169         output.WriteInt32(Dummy8);
9170       }
9171       if (HasDummy9) {
9172         output.WriteRawTag(72);
9173         output.WriteInt32(Dummy9);
9174       }
9175       if (HasDummy10) {
9176         output.WriteRawTag(80);
9177         output.WriteInt32(Dummy10);
9178       }
9179       if (HasDummy11) {
9180         output.WriteRawTag(88);
9181         output.WriteInt32(Dummy11);
9182       }
9183       if (HasDummy12) {
9184         output.WriteRawTag(96);
9185         output.WriteInt32(Dummy12);
9186       }
9187       if (HasDummy13) {
9188         output.WriteRawTag(104);
9189         output.WriteInt32(Dummy13);
9190       }
9191       if (HasDummy14) {
9192         output.WriteRawTag(112);
9193         output.WriteInt32(Dummy14);
9194       }
9195       if (HasDummy15) {
9196         output.WriteRawTag(120);
9197         output.WriteInt32(Dummy15);
9198       }
9199       if (HasDummy16) {
9200         output.WriteRawTag(128, 1);
9201         output.WriteInt32(Dummy16);
9202       }
9203       if (HasDummy17) {
9204         output.WriteRawTag(136, 1);
9205         output.WriteInt32(Dummy17);
9206       }
9207       if (HasDummy18) {
9208         output.WriteRawTag(144, 1);
9209         output.WriteInt32(Dummy18);
9210       }
9211       if (HasDummy19) {
9212         output.WriteRawTag(152, 1);
9213         output.WriteInt32(Dummy19);
9214       }
9215       if (HasDummy20) {
9216         output.WriteRawTag(160, 1);
9217         output.WriteInt32(Dummy20);
9218       }
9219       if (HasDummy21) {
9220         output.WriteRawTag(168, 1);
9221         output.WriteInt32(Dummy21);
9222       }
9223       if (HasDummy22) {
9224         output.WriteRawTag(176, 1);
9225         output.WriteInt32(Dummy22);
9226       }
9227       if (HasDummy23) {
9228         output.WriteRawTag(184, 1);
9229         output.WriteInt32(Dummy23);
9230       }
9231       if (HasDummy24) {
9232         output.WriteRawTag(192, 1);
9233         output.WriteInt32(Dummy24);
9234       }
9235       if (HasDummy25) {
9236         output.WriteRawTag(200, 1);
9237         output.WriteInt32(Dummy25);
9238       }
9239       if (HasDummy26) {
9240         output.WriteRawTag(208, 1);
9241         output.WriteInt32(Dummy26);
9242       }
9243       if (HasDummy27) {
9244         output.WriteRawTag(216, 1);
9245         output.WriteInt32(Dummy27);
9246       }
9247       if (HasDummy28) {
9248         output.WriteRawTag(224, 1);
9249         output.WriteInt32(Dummy28);
9250       }
9251       if (HasDummy29) {
9252         output.WriteRawTag(232, 1);
9253         output.WriteInt32(Dummy29);
9254       }
9255       if (HasDummy30) {
9256         output.WriteRawTag(240, 1);
9257         output.WriteInt32(Dummy30);
9258       }
9259       if (HasDummy31) {
9260         output.WriteRawTag(248, 1);
9261         output.WriteInt32(Dummy31);
9262       }
9263       if (HasDummy32) {
9264         output.WriteRawTag(128, 2);
9265         output.WriteInt32(Dummy32);
9266       }
9267       if (HasC) {
9268         output.WriteRawTag(136, 2);
9269         output.WriteInt32(C);
9270       }
9271       if (_unknownFields != null) {
9272         _unknownFields.WriteTo(output);
9273       }
9274     #endif
9275     }
9276 
9277     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9278     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9279     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9280     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9281       if (HasA) {
9282         output.WriteRawTag(8);
9283         output.WriteInt32(A);
9284       }
9285       if (HasDummy2) {
9286         output.WriteRawTag(16);
9287         output.WriteInt32(Dummy2);
9288       }
9289       if (HasB) {
9290         output.WriteRawTag(24);
9291         output.WriteInt32(B);
9292       }
9293       if (HasDummy4) {
9294         output.WriteRawTag(32);
9295         output.WriteInt32(Dummy4);
9296       }
9297       if (HasDummy5) {
9298         output.WriteRawTag(40);
9299         output.WriteInt32(Dummy5);
9300       }
9301       if (HasDummy6) {
9302         output.WriteRawTag(48);
9303         output.WriteInt32(Dummy6);
9304       }
9305       if (HasDummy7) {
9306         output.WriteRawTag(56);
9307         output.WriteInt32(Dummy7);
9308       }
9309       if (HasDummy8) {
9310         output.WriteRawTag(64);
9311         output.WriteInt32(Dummy8);
9312       }
9313       if (HasDummy9) {
9314         output.WriteRawTag(72);
9315         output.WriteInt32(Dummy9);
9316       }
9317       if (HasDummy10) {
9318         output.WriteRawTag(80);
9319         output.WriteInt32(Dummy10);
9320       }
9321       if (HasDummy11) {
9322         output.WriteRawTag(88);
9323         output.WriteInt32(Dummy11);
9324       }
9325       if (HasDummy12) {
9326         output.WriteRawTag(96);
9327         output.WriteInt32(Dummy12);
9328       }
9329       if (HasDummy13) {
9330         output.WriteRawTag(104);
9331         output.WriteInt32(Dummy13);
9332       }
9333       if (HasDummy14) {
9334         output.WriteRawTag(112);
9335         output.WriteInt32(Dummy14);
9336       }
9337       if (HasDummy15) {
9338         output.WriteRawTag(120);
9339         output.WriteInt32(Dummy15);
9340       }
9341       if (HasDummy16) {
9342         output.WriteRawTag(128, 1);
9343         output.WriteInt32(Dummy16);
9344       }
9345       if (HasDummy17) {
9346         output.WriteRawTag(136, 1);
9347         output.WriteInt32(Dummy17);
9348       }
9349       if (HasDummy18) {
9350         output.WriteRawTag(144, 1);
9351         output.WriteInt32(Dummy18);
9352       }
9353       if (HasDummy19) {
9354         output.WriteRawTag(152, 1);
9355         output.WriteInt32(Dummy19);
9356       }
9357       if (HasDummy20) {
9358         output.WriteRawTag(160, 1);
9359         output.WriteInt32(Dummy20);
9360       }
9361       if (HasDummy21) {
9362         output.WriteRawTag(168, 1);
9363         output.WriteInt32(Dummy21);
9364       }
9365       if (HasDummy22) {
9366         output.WriteRawTag(176, 1);
9367         output.WriteInt32(Dummy22);
9368       }
9369       if (HasDummy23) {
9370         output.WriteRawTag(184, 1);
9371         output.WriteInt32(Dummy23);
9372       }
9373       if (HasDummy24) {
9374         output.WriteRawTag(192, 1);
9375         output.WriteInt32(Dummy24);
9376       }
9377       if (HasDummy25) {
9378         output.WriteRawTag(200, 1);
9379         output.WriteInt32(Dummy25);
9380       }
9381       if (HasDummy26) {
9382         output.WriteRawTag(208, 1);
9383         output.WriteInt32(Dummy26);
9384       }
9385       if (HasDummy27) {
9386         output.WriteRawTag(216, 1);
9387         output.WriteInt32(Dummy27);
9388       }
9389       if (HasDummy28) {
9390         output.WriteRawTag(224, 1);
9391         output.WriteInt32(Dummy28);
9392       }
9393       if (HasDummy29) {
9394         output.WriteRawTag(232, 1);
9395         output.WriteInt32(Dummy29);
9396       }
9397       if (HasDummy30) {
9398         output.WriteRawTag(240, 1);
9399         output.WriteInt32(Dummy30);
9400       }
9401       if (HasDummy31) {
9402         output.WriteRawTag(248, 1);
9403         output.WriteInt32(Dummy31);
9404       }
9405       if (HasDummy32) {
9406         output.WriteRawTag(128, 2);
9407         output.WriteInt32(Dummy32);
9408       }
9409       if (HasC) {
9410         output.WriteRawTag(136, 2);
9411         output.WriteInt32(C);
9412       }
9413       if (_unknownFields != null) {
9414         _unknownFields.WriteTo(ref output);
9415       }
9416     }
9417     #endif
9418 
9419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9420     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()9421     public int CalculateSize() {
9422       int size = 0;
9423       if (HasA) {
9424         size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
9425       }
9426       if (HasDummy2) {
9427         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy2);
9428       }
9429       if (HasB) {
9430         size += 1 + pb::CodedOutputStream.ComputeInt32Size(B);
9431       }
9432       if (HasDummy4) {
9433         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy4);
9434       }
9435       if (HasDummy5) {
9436         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy5);
9437       }
9438       if (HasDummy6) {
9439         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy6);
9440       }
9441       if (HasDummy7) {
9442         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy7);
9443       }
9444       if (HasDummy8) {
9445         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy8);
9446       }
9447       if (HasDummy9) {
9448         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy9);
9449       }
9450       if (HasDummy10) {
9451         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy10);
9452       }
9453       if (HasDummy11) {
9454         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy11);
9455       }
9456       if (HasDummy12) {
9457         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy12);
9458       }
9459       if (HasDummy13) {
9460         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy13);
9461       }
9462       if (HasDummy14) {
9463         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy14);
9464       }
9465       if (HasDummy15) {
9466         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy15);
9467       }
9468       if (HasDummy16) {
9469         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy16);
9470       }
9471       if (HasDummy17) {
9472         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy17);
9473       }
9474       if (HasDummy18) {
9475         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy18);
9476       }
9477       if (HasDummy19) {
9478         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy19);
9479       }
9480       if (HasDummy20) {
9481         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy20);
9482       }
9483       if (HasDummy21) {
9484         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy21);
9485       }
9486       if (HasDummy22) {
9487         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy22);
9488       }
9489       if (HasDummy23) {
9490         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy23);
9491       }
9492       if (HasDummy24) {
9493         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy24);
9494       }
9495       if (HasDummy25) {
9496         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy25);
9497       }
9498       if (HasDummy26) {
9499         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy26);
9500       }
9501       if (HasDummy27) {
9502         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy27);
9503       }
9504       if (HasDummy28) {
9505         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy28);
9506       }
9507       if (HasDummy29) {
9508         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy29);
9509       }
9510       if (HasDummy30) {
9511         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy30);
9512       }
9513       if (HasDummy31) {
9514         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy31);
9515       }
9516       if (HasDummy32) {
9517         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy32);
9518       }
9519       if (HasC) {
9520         size += 2 + pb::CodedOutputStream.ComputeInt32Size(C);
9521       }
9522       if (_unknownFields != null) {
9523         size += _unknownFields.CalculateSize();
9524       }
9525       return size;
9526     }
9527 
9528     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9529     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestRequired other)9530     public void MergeFrom(TestRequired other) {
9531       if (other == null) {
9532         return;
9533       }
9534       if (other.HasA) {
9535         A = other.A;
9536       }
9537       if (other.HasDummy2) {
9538         Dummy2 = other.Dummy2;
9539       }
9540       if (other.HasB) {
9541         B = other.B;
9542       }
9543       if (other.HasDummy4) {
9544         Dummy4 = other.Dummy4;
9545       }
9546       if (other.HasDummy5) {
9547         Dummy5 = other.Dummy5;
9548       }
9549       if (other.HasDummy6) {
9550         Dummy6 = other.Dummy6;
9551       }
9552       if (other.HasDummy7) {
9553         Dummy7 = other.Dummy7;
9554       }
9555       if (other.HasDummy8) {
9556         Dummy8 = other.Dummy8;
9557       }
9558       if (other.HasDummy9) {
9559         Dummy9 = other.Dummy9;
9560       }
9561       if (other.HasDummy10) {
9562         Dummy10 = other.Dummy10;
9563       }
9564       if (other.HasDummy11) {
9565         Dummy11 = other.Dummy11;
9566       }
9567       if (other.HasDummy12) {
9568         Dummy12 = other.Dummy12;
9569       }
9570       if (other.HasDummy13) {
9571         Dummy13 = other.Dummy13;
9572       }
9573       if (other.HasDummy14) {
9574         Dummy14 = other.Dummy14;
9575       }
9576       if (other.HasDummy15) {
9577         Dummy15 = other.Dummy15;
9578       }
9579       if (other.HasDummy16) {
9580         Dummy16 = other.Dummy16;
9581       }
9582       if (other.HasDummy17) {
9583         Dummy17 = other.Dummy17;
9584       }
9585       if (other.HasDummy18) {
9586         Dummy18 = other.Dummy18;
9587       }
9588       if (other.HasDummy19) {
9589         Dummy19 = other.Dummy19;
9590       }
9591       if (other.HasDummy20) {
9592         Dummy20 = other.Dummy20;
9593       }
9594       if (other.HasDummy21) {
9595         Dummy21 = other.Dummy21;
9596       }
9597       if (other.HasDummy22) {
9598         Dummy22 = other.Dummy22;
9599       }
9600       if (other.HasDummy23) {
9601         Dummy23 = other.Dummy23;
9602       }
9603       if (other.HasDummy24) {
9604         Dummy24 = other.Dummy24;
9605       }
9606       if (other.HasDummy25) {
9607         Dummy25 = other.Dummy25;
9608       }
9609       if (other.HasDummy26) {
9610         Dummy26 = other.Dummy26;
9611       }
9612       if (other.HasDummy27) {
9613         Dummy27 = other.Dummy27;
9614       }
9615       if (other.HasDummy28) {
9616         Dummy28 = other.Dummy28;
9617       }
9618       if (other.HasDummy29) {
9619         Dummy29 = other.Dummy29;
9620       }
9621       if (other.HasDummy30) {
9622         Dummy30 = other.Dummy30;
9623       }
9624       if (other.HasDummy31) {
9625         Dummy31 = other.Dummy31;
9626       }
9627       if (other.HasDummy32) {
9628         Dummy32 = other.Dummy32;
9629       }
9630       if (other.HasC) {
9631         C = other.C;
9632       }
9633       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9634     }
9635 
9636     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9637     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)9638     public void MergeFrom(pb::CodedInputStream input) {
9639     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9640       input.ReadRawMessage(this);
9641     #else
9642       uint tag;
9643       while ((tag = input.ReadTag()) != 0) {
9644         switch(tag) {
9645           default:
9646             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9647             break;
9648           case 8: {
9649             A = input.ReadInt32();
9650             break;
9651           }
9652           case 16: {
9653             Dummy2 = input.ReadInt32();
9654             break;
9655           }
9656           case 24: {
9657             B = input.ReadInt32();
9658             break;
9659           }
9660           case 32: {
9661             Dummy4 = input.ReadInt32();
9662             break;
9663           }
9664           case 40: {
9665             Dummy5 = input.ReadInt32();
9666             break;
9667           }
9668           case 48: {
9669             Dummy6 = input.ReadInt32();
9670             break;
9671           }
9672           case 56: {
9673             Dummy7 = input.ReadInt32();
9674             break;
9675           }
9676           case 64: {
9677             Dummy8 = input.ReadInt32();
9678             break;
9679           }
9680           case 72: {
9681             Dummy9 = input.ReadInt32();
9682             break;
9683           }
9684           case 80: {
9685             Dummy10 = input.ReadInt32();
9686             break;
9687           }
9688           case 88: {
9689             Dummy11 = input.ReadInt32();
9690             break;
9691           }
9692           case 96: {
9693             Dummy12 = input.ReadInt32();
9694             break;
9695           }
9696           case 104: {
9697             Dummy13 = input.ReadInt32();
9698             break;
9699           }
9700           case 112: {
9701             Dummy14 = input.ReadInt32();
9702             break;
9703           }
9704           case 120: {
9705             Dummy15 = input.ReadInt32();
9706             break;
9707           }
9708           case 128: {
9709             Dummy16 = input.ReadInt32();
9710             break;
9711           }
9712           case 136: {
9713             Dummy17 = input.ReadInt32();
9714             break;
9715           }
9716           case 144: {
9717             Dummy18 = input.ReadInt32();
9718             break;
9719           }
9720           case 152: {
9721             Dummy19 = input.ReadInt32();
9722             break;
9723           }
9724           case 160: {
9725             Dummy20 = input.ReadInt32();
9726             break;
9727           }
9728           case 168: {
9729             Dummy21 = input.ReadInt32();
9730             break;
9731           }
9732           case 176: {
9733             Dummy22 = input.ReadInt32();
9734             break;
9735           }
9736           case 184: {
9737             Dummy23 = input.ReadInt32();
9738             break;
9739           }
9740           case 192: {
9741             Dummy24 = input.ReadInt32();
9742             break;
9743           }
9744           case 200: {
9745             Dummy25 = input.ReadInt32();
9746             break;
9747           }
9748           case 208: {
9749             Dummy26 = input.ReadInt32();
9750             break;
9751           }
9752           case 216: {
9753             Dummy27 = input.ReadInt32();
9754             break;
9755           }
9756           case 224: {
9757             Dummy28 = input.ReadInt32();
9758             break;
9759           }
9760           case 232: {
9761             Dummy29 = input.ReadInt32();
9762             break;
9763           }
9764           case 240: {
9765             Dummy30 = input.ReadInt32();
9766             break;
9767           }
9768           case 248: {
9769             Dummy31 = input.ReadInt32();
9770             break;
9771           }
9772           case 256: {
9773             Dummy32 = input.ReadInt32();
9774             break;
9775           }
9776           case 264: {
9777             C = input.ReadInt32();
9778             break;
9779           }
9780         }
9781       }
9782     #endif
9783     }
9784 
9785     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9786     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9787     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9788     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
9789       uint tag;
9790       while ((tag = input.ReadTag()) != 0) {
9791         switch(tag) {
9792           default:
9793             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
9794             break;
9795           case 8: {
9796             A = input.ReadInt32();
9797             break;
9798           }
9799           case 16: {
9800             Dummy2 = input.ReadInt32();
9801             break;
9802           }
9803           case 24: {
9804             B = input.ReadInt32();
9805             break;
9806           }
9807           case 32: {
9808             Dummy4 = input.ReadInt32();
9809             break;
9810           }
9811           case 40: {
9812             Dummy5 = input.ReadInt32();
9813             break;
9814           }
9815           case 48: {
9816             Dummy6 = input.ReadInt32();
9817             break;
9818           }
9819           case 56: {
9820             Dummy7 = input.ReadInt32();
9821             break;
9822           }
9823           case 64: {
9824             Dummy8 = input.ReadInt32();
9825             break;
9826           }
9827           case 72: {
9828             Dummy9 = input.ReadInt32();
9829             break;
9830           }
9831           case 80: {
9832             Dummy10 = input.ReadInt32();
9833             break;
9834           }
9835           case 88: {
9836             Dummy11 = input.ReadInt32();
9837             break;
9838           }
9839           case 96: {
9840             Dummy12 = input.ReadInt32();
9841             break;
9842           }
9843           case 104: {
9844             Dummy13 = input.ReadInt32();
9845             break;
9846           }
9847           case 112: {
9848             Dummy14 = input.ReadInt32();
9849             break;
9850           }
9851           case 120: {
9852             Dummy15 = input.ReadInt32();
9853             break;
9854           }
9855           case 128: {
9856             Dummy16 = input.ReadInt32();
9857             break;
9858           }
9859           case 136: {
9860             Dummy17 = input.ReadInt32();
9861             break;
9862           }
9863           case 144: {
9864             Dummy18 = input.ReadInt32();
9865             break;
9866           }
9867           case 152: {
9868             Dummy19 = input.ReadInt32();
9869             break;
9870           }
9871           case 160: {
9872             Dummy20 = input.ReadInt32();
9873             break;
9874           }
9875           case 168: {
9876             Dummy21 = input.ReadInt32();
9877             break;
9878           }
9879           case 176: {
9880             Dummy22 = input.ReadInt32();
9881             break;
9882           }
9883           case 184: {
9884             Dummy23 = input.ReadInt32();
9885             break;
9886           }
9887           case 192: {
9888             Dummy24 = input.ReadInt32();
9889             break;
9890           }
9891           case 200: {
9892             Dummy25 = input.ReadInt32();
9893             break;
9894           }
9895           case 208: {
9896             Dummy26 = input.ReadInt32();
9897             break;
9898           }
9899           case 216: {
9900             Dummy27 = input.ReadInt32();
9901             break;
9902           }
9903           case 224: {
9904             Dummy28 = input.ReadInt32();
9905             break;
9906           }
9907           case 232: {
9908             Dummy29 = input.ReadInt32();
9909             break;
9910           }
9911           case 240: {
9912             Dummy30 = input.ReadInt32();
9913             break;
9914           }
9915           case 248: {
9916             Dummy31 = input.ReadInt32();
9917             break;
9918           }
9919           case 256: {
9920             Dummy32 = input.ReadInt32();
9921             break;
9922           }
9923           case 264: {
9924             C = input.ReadInt32();
9925             break;
9926           }
9927         }
9928       }
9929     }
9930     #endif
9931 
9932     #region Extensions
9933     /// <summary>Container for extensions for other messages declared in the TestRequired message type.</summary>
9934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9935     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9936     public static partial class Extensions {
9937       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Single =
9938         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired>(1000, pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser));
9939       public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Multi =
9940         new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired>(1001, pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser));
9941     }
9942     #endregion
9943 
9944   }
9945 
9946   public sealed partial class TestRequiredForeign : pb::IMessage<TestRequiredForeign>
9947   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9948       , pb::IBufferMessage
9949   #endif
9950   {
9951     private static readonly pb::MessageParser<TestRequiredForeign> _parser = new pb::MessageParser<TestRequiredForeign>(() => new TestRequiredForeign());
9952     private pb::UnknownFieldSet _unknownFields;
9953     private int _hasBits0;
9954     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9955     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9956     public static pb::MessageParser<TestRequiredForeign> Parser { get { return _parser; } }
9957 
9958     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9959     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9960     public static pbr::MessageDescriptor Descriptor {
9961       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[13]; }
9962     }
9963 
9964     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9965     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9966     pbr::MessageDescriptor pb::IMessage.Descriptor {
9967       get { return Descriptor; }
9968     }
9969 
9970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9971     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredForeign()9972     public TestRequiredForeign() {
9973       OnConstruction();
9974     }
9975 
OnConstruction()9976     partial void OnConstruction();
9977 
9978     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9979     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredForeign(TestRequiredForeign other)9980     public TestRequiredForeign(TestRequiredForeign other) : this() {
9981       _hasBits0 = other._hasBits0;
9982       optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
9983       repeatedMessage_ = other.repeatedMessage_.Clone();
9984       dummy_ = other.dummy_;
9985       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9986     }
9987 
9988     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9989     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()9990     public TestRequiredForeign Clone() {
9991       return new TestRequiredForeign(this);
9992     }
9993 
9994     /// <summary>Field number for the "optional_message" field.</summary>
9995     public const int OptionalMessageFieldNumber = 1;
9996     private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
9997     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9998     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9999     public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
10000       get { return optionalMessage_; }
10001       set {
10002         optionalMessage_ = value;
10003       }
10004     }
10005 
10006     /// <summary>Field number for the "repeated_message" field.</summary>
10007     public const int RepeatedMessageFieldNumber = 2;
10008     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
10009         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
10010     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
10011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10013     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
10014       get { return repeatedMessage_; }
10015     }
10016 
10017     /// <summary>Field number for the "dummy" field.</summary>
10018     public const int DummyFieldNumber = 3;
10019     private readonly static int DummyDefaultValue = 0;
10020 
10021     private int dummy_;
10022     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10023     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10024     public int Dummy {
10025       get { if ((_hasBits0 & 1) != 0) { return dummy_; } else { return DummyDefaultValue; } }
10026       set {
10027         _hasBits0 |= 1;
10028         dummy_ = value;
10029       }
10030     }
10031     /// <summary>Gets whether the "dummy" field is set</summary>
10032     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10033     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10034     public bool HasDummy {
10035       get { return (_hasBits0 & 1) != 0; }
10036     }
10037     /// <summary>Clears the value of the "dummy" field</summary>
10038     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10039     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDummy()10040     public void ClearDummy() {
10041       _hasBits0 &= ~1;
10042     }
10043 
10044     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10045     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10046     public override bool Equals(object other) {
10047       return Equals(other as TestRequiredForeign);
10048     }
10049 
10050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10051     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestRequiredForeign other)10052     public bool Equals(TestRequiredForeign other) {
10053       if (ReferenceEquals(other, null)) {
10054         return false;
10055       }
10056       if (ReferenceEquals(other, this)) {
10057         return true;
10058       }
10059       if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
10060       if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
10061       if (Dummy != other.Dummy) return false;
10062       return Equals(_unknownFields, other._unknownFields);
10063     }
10064 
10065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10066     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10067     public override int GetHashCode() {
10068       int hash = 1;
10069       if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
10070       hash ^= repeatedMessage_.GetHashCode();
10071       if (HasDummy) hash ^= Dummy.GetHashCode();
10072       if (_unknownFields != null) {
10073         hash ^= _unknownFields.GetHashCode();
10074       }
10075       return hash;
10076     }
10077 
10078     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10079     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10080     public override string ToString() {
10081       return pb::JsonFormatter.ToDiagnosticString(this);
10082     }
10083 
10084     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10085     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10086     public void WriteTo(pb::CodedOutputStream output) {
10087     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10088       output.WriteRawMessage(this);
10089     #else
10090       if (optionalMessage_ != null) {
10091         output.WriteRawTag(10);
10092         output.WriteMessage(OptionalMessage);
10093       }
10094       repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
10095       if (HasDummy) {
10096         output.WriteRawTag(24);
10097         output.WriteInt32(Dummy);
10098       }
10099       if (_unknownFields != null) {
10100         _unknownFields.WriteTo(output);
10101       }
10102     #endif
10103     }
10104 
10105     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10108     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10109       if (optionalMessage_ != null) {
10110         output.WriteRawTag(10);
10111         output.WriteMessage(OptionalMessage);
10112       }
10113       repeatedMessage_.WriteTo(ref output, _repeated_repeatedMessage_codec);
10114       if (HasDummy) {
10115         output.WriteRawTag(24);
10116         output.WriteInt32(Dummy);
10117       }
10118       if (_unknownFields != null) {
10119         _unknownFields.WriteTo(ref output);
10120       }
10121     }
10122     #endif
10123 
10124     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10125     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10126     public int CalculateSize() {
10127       int size = 0;
10128       if (optionalMessage_ != null) {
10129         size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
10130       }
10131       size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
10132       if (HasDummy) {
10133         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy);
10134       }
10135       if (_unknownFields != null) {
10136         size += _unknownFields.CalculateSize();
10137       }
10138       return size;
10139     }
10140 
10141     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10142     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestRequiredForeign other)10143     public void MergeFrom(TestRequiredForeign other) {
10144       if (other == null) {
10145         return;
10146       }
10147       if (other.optionalMessage_ != null) {
10148         if (optionalMessage_ == null) {
10149           OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10150         }
10151         OptionalMessage.MergeFrom(other.OptionalMessage);
10152       }
10153       repeatedMessage_.Add(other.repeatedMessage_);
10154       if (other.HasDummy) {
10155         Dummy = other.Dummy;
10156       }
10157       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10158     }
10159 
10160     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10161     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)10162     public void MergeFrom(pb::CodedInputStream input) {
10163     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10164       input.ReadRawMessage(this);
10165     #else
10166       uint tag;
10167       while ((tag = input.ReadTag()) != 0) {
10168         switch(tag) {
10169           default:
10170             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10171             break;
10172           case 10: {
10173             if (optionalMessage_ == null) {
10174               OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10175             }
10176             input.ReadMessage(OptionalMessage);
10177             break;
10178           }
10179           case 18: {
10180             repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
10181             break;
10182           }
10183           case 24: {
10184             Dummy = input.ReadInt32();
10185             break;
10186           }
10187         }
10188       }
10189     #endif
10190     }
10191 
10192     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10193     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10194     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10195     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
10196       uint tag;
10197       while ((tag = input.ReadTag()) != 0) {
10198         switch(tag) {
10199           default:
10200             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
10201             break;
10202           case 10: {
10203             if (optionalMessage_ == null) {
10204               OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10205             }
10206             input.ReadMessage(OptionalMessage);
10207             break;
10208           }
10209           case 18: {
10210             repeatedMessage_.AddEntriesFrom(ref input, _repeated_repeatedMessage_codec);
10211             break;
10212           }
10213           case 24: {
10214             Dummy = input.ReadInt32();
10215             break;
10216           }
10217         }
10218       }
10219     }
10220     #endif
10221 
10222   }
10223 
10224   public sealed partial class TestRequiredMessage : pb::IMessage<TestRequiredMessage>
10225   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10226       , pb::IBufferMessage
10227   #endif
10228   {
10229     private static readonly pb::MessageParser<TestRequiredMessage> _parser = new pb::MessageParser<TestRequiredMessage>(() => new TestRequiredMessage());
10230     private pb::UnknownFieldSet _unknownFields;
10231     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10232     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10233     public static pb::MessageParser<TestRequiredMessage> Parser { get { return _parser; } }
10234 
10235     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10236     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10237     public static pbr::MessageDescriptor Descriptor {
10238       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[14]; }
10239     }
10240 
10241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10242     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10243     pbr::MessageDescriptor pb::IMessage.Descriptor {
10244       get { return Descriptor; }
10245     }
10246 
10247     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10248     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredMessage()10249     public TestRequiredMessage() {
10250       OnConstruction();
10251     }
10252 
OnConstruction()10253     partial void OnConstruction();
10254 
10255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredMessage(TestRequiredMessage other)10257     public TestRequiredMessage(TestRequiredMessage other) : this() {
10258       optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
10259       repeatedMessage_ = other.repeatedMessage_.Clone();
10260       requiredMessage_ = other.requiredMessage_ != null ? other.requiredMessage_.Clone() : null;
10261       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10262     }
10263 
10264     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10265     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()10266     public TestRequiredMessage Clone() {
10267       return new TestRequiredMessage(this);
10268     }
10269 
10270     /// <summary>Field number for the "optional_message" field.</summary>
10271     public const int OptionalMessageFieldNumber = 1;
10272     private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
10273     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10274     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10275     public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
10276       get { return optionalMessage_; }
10277       set {
10278         optionalMessage_ = value;
10279       }
10280     }
10281 
10282     /// <summary>Field number for the "repeated_message" field.</summary>
10283     public const int RepeatedMessageFieldNumber = 2;
10284     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
10285         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
10286     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
10287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10288     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10289     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
10290       get { return repeatedMessage_; }
10291     }
10292 
10293     /// <summary>Field number for the "required_message" field.</summary>
10294     public const int RequiredMessageFieldNumber = 3;
10295     private global::Google.Protobuf.TestProtos.Proto2.TestRequired requiredMessage_;
10296     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10297     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10298     public global::Google.Protobuf.TestProtos.Proto2.TestRequired RequiredMessage {
10299       get { return requiredMessage_; }
10300       set {
10301         requiredMessage_ = value;
10302       }
10303     }
10304 
10305     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10306     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10307     public override bool Equals(object other) {
10308       return Equals(other as TestRequiredMessage);
10309     }
10310 
10311     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10312     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestRequiredMessage other)10313     public bool Equals(TestRequiredMessage other) {
10314       if (ReferenceEquals(other, null)) {
10315         return false;
10316       }
10317       if (ReferenceEquals(other, this)) {
10318         return true;
10319       }
10320       if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
10321       if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
10322       if (!object.Equals(RequiredMessage, other.RequiredMessage)) return false;
10323       return Equals(_unknownFields, other._unknownFields);
10324     }
10325 
10326     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10327     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10328     public override int GetHashCode() {
10329       int hash = 1;
10330       if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
10331       hash ^= repeatedMessage_.GetHashCode();
10332       if (requiredMessage_ != null) hash ^= RequiredMessage.GetHashCode();
10333       if (_unknownFields != null) {
10334         hash ^= _unknownFields.GetHashCode();
10335       }
10336       return hash;
10337     }
10338 
10339     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10340     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10341     public override string ToString() {
10342       return pb::JsonFormatter.ToDiagnosticString(this);
10343     }
10344 
10345     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10346     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10347     public void WriteTo(pb::CodedOutputStream output) {
10348     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10349       output.WriteRawMessage(this);
10350     #else
10351       if (optionalMessage_ != null) {
10352         output.WriteRawTag(10);
10353         output.WriteMessage(OptionalMessage);
10354       }
10355       repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
10356       if (requiredMessage_ != null) {
10357         output.WriteRawTag(26);
10358         output.WriteMessage(RequiredMessage);
10359       }
10360       if (_unknownFields != null) {
10361         _unknownFields.WriteTo(output);
10362       }
10363     #endif
10364     }
10365 
10366     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10368     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10369     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10370       if (optionalMessage_ != null) {
10371         output.WriteRawTag(10);
10372         output.WriteMessage(OptionalMessage);
10373       }
10374       repeatedMessage_.WriteTo(ref output, _repeated_repeatedMessage_codec);
10375       if (requiredMessage_ != null) {
10376         output.WriteRawTag(26);
10377         output.WriteMessage(RequiredMessage);
10378       }
10379       if (_unknownFields != null) {
10380         _unknownFields.WriteTo(ref output);
10381       }
10382     }
10383     #endif
10384 
10385     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10386     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10387     public int CalculateSize() {
10388       int size = 0;
10389       if (optionalMessage_ != null) {
10390         size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
10391       }
10392       size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
10393       if (requiredMessage_ != null) {
10394         size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredMessage);
10395       }
10396       if (_unknownFields != null) {
10397         size += _unknownFields.CalculateSize();
10398       }
10399       return size;
10400     }
10401 
10402     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10403     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestRequiredMessage other)10404     public void MergeFrom(TestRequiredMessage other) {
10405       if (other == null) {
10406         return;
10407       }
10408       if (other.optionalMessage_ != null) {
10409         if (optionalMessage_ == null) {
10410           OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10411         }
10412         OptionalMessage.MergeFrom(other.OptionalMessage);
10413       }
10414       repeatedMessage_.Add(other.repeatedMessage_);
10415       if (other.requiredMessage_ != null) {
10416         if (requiredMessage_ == null) {
10417           RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10418         }
10419         RequiredMessage.MergeFrom(other.RequiredMessage);
10420       }
10421       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10422     }
10423 
10424     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10425     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)10426     public void MergeFrom(pb::CodedInputStream input) {
10427     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10428       input.ReadRawMessage(this);
10429     #else
10430       uint tag;
10431       while ((tag = input.ReadTag()) != 0) {
10432         switch(tag) {
10433           default:
10434             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10435             break;
10436           case 10: {
10437             if (optionalMessage_ == null) {
10438               OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10439             }
10440             input.ReadMessage(OptionalMessage);
10441             break;
10442           }
10443           case 18: {
10444             repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
10445             break;
10446           }
10447           case 26: {
10448             if (requiredMessage_ == null) {
10449               RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10450             }
10451             input.ReadMessage(RequiredMessage);
10452             break;
10453           }
10454         }
10455       }
10456     #endif
10457     }
10458 
10459     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10460     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10461     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10462     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
10463       uint tag;
10464       while ((tag = input.ReadTag()) != 0) {
10465         switch(tag) {
10466           default:
10467             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
10468             break;
10469           case 10: {
10470             if (optionalMessage_ == null) {
10471               OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10472             }
10473             input.ReadMessage(OptionalMessage);
10474             break;
10475           }
10476           case 18: {
10477             repeatedMessage_.AddEntriesFrom(ref input, _repeated_repeatedMessage_codec);
10478             break;
10479           }
10480           case 26: {
10481             if (requiredMessage_ == null) {
10482               RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10483             }
10484             input.ReadMessage(RequiredMessage);
10485             break;
10486           }
10487         }
10488       }
10489     }
10490     #endif
10491 
10492   }
10493 
10494   /// <summary>
10495   /// Test that we can use NestedMessage from outside TestAllTypes.
10496   /// </summary>
10497   public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested>
10498   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10499       , pb::IBufferMessage
10500   #endif
10501   {
10502     private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested());
10503     private pb::UnknownFieldSet _unknownFields;
10504     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10505     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10506     public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } }
10507 
10508     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10509     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10510     public static pbr::MessageDescriptor Descriptor {
10511       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[15]; }
10512     }
10513 
10514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10515     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10516     pbr::MessageDescriptor pb::IMessage.Descriptor {
10517       get { return Descriptor; }
10518     }
10519 
10520     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10521     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestForeignNested()10522     public TestForeignNested() {
10523       OnConstruction();
10524     }
10525 
OnConstruction()10526     partial void OnConstruction();
10527 
10528     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10529     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestForeignNested(TestForeignNested other)10530     public TestForeignNested(TestForeignNested other) : this() {
10531       foreignNested_ = other.foreignNested_ != null ? other.foreignNested_.Clone() : null;
10532       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10533     }
10534 
10535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10536     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()10537     public TestForeignNested Clone() {
10538       return new TestForeignNested(this);
10539     }
10540 
10541     /// <summary>Field number for the "foreign_nested" field.</summary>
10542     public const int ForeignNestedFieldNumber = 1;
10543     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage foreignNested_;
10544     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10545     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10546     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage ForeignNested {
10547       get { return foreignNested_; }
10548       set {
10549         foreignNested_ = value;
10550       }
10551     }
10552 
10553     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10554     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10555     public override bool Equals(object other) {
10556       return Equals(other as TestForeignNested);
10557     }
10558 
10559     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10560     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestForeignNested other)10561     public bool Equals(TestForeignNested other) {
10562       if (ReferenceEquals(other, null)) {
10563         return false;
10564       }
10565       if (ReferenceEquals(other, this)) {
10566         return true;
10567       }
10568       if (!object.Equals(ForeignNested, other.ForeignNested)) return false;
10569       return Equals(_unknownFields, other._unknownFields);
10570     }
10571 
10572     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10573     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10574     public override int GetHashCode() {
10575       int hash = 1;
10576       if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
10577       if (_unknownFields != null) {
10578         hash ^= _unknownFields.GetHashCode();
10579       }
10580       return hash;
10581     }
10582 
10583     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10584     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10585     public override string ToString() {
10586       return pb::JsonFormatter.ToDiagnosticString(this);
10587     }
10588 
10589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10590     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10591     public void WriteTo(pb::CodedOutputStream output) {
10592     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10593       output.WriteRawMessage(this);
10594     #else
10595       if (foreignNested_ != null) {
10596         output.WriteRawTag(10);
10597         output.WriteMessage(ForeignNested);
10598       }
10599       if (_unknownFields != null) {
10600         _unknownFields.WriteTo(output);
10601       }
10602     #endif
10603     }
10604 
10605     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10607     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10608     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10609       if (foreignNested_ != null) {
10610         output.WriteRawTag(10);
10611         output.WriteMessage(ForeignNested);
10612       }
10613       if (_unknownFields != null) {
10614         _unknownFields.WriteTo(ref output);
10615       }
10616     }
10617     #endif
10618 
10619     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10620     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10621     public int CalculateSize() {
10622       int size = 0;
10623       if (foreignNested_ != null) {
10624         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested);
10625       }
10626       if (_unknownFields != null) {
10627         size += _unknownFields.CalculateSize();
10628       }
10629       return size;
10630     }
10631 
10632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10633     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestForeignNested other)10634     public void MergeFrom(TestForeignNested other) {
10635       if (other == null) {
10636         return;
10637       }
10638       if (other.foreignNested_ != null) {
10639         if (foreignNested_ == null) {
10640           ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
10641         }
10642         ForeignNested.MergeFrom(other.ForeignNested);
10643       }
10644       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10645     }
10646 
10647     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10648     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)10649     public void MergeFrom(pb::CodedInputStream input) {
10650     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10651       input.ReadRawMessage(this);
10652     #else
10653       uint tag;
10654       while ((tag = input.ReadTag()) != 0) {
10655         switch(tag) {
10656           default:
10657             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10658             break;
10659           case 10: {
10660             if (foreignNested_ == null) {
10661               ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
10662             }
10663             input.ReadMessage(ForeignNested);
10664             break;
10665           }
10666         }
10667       }
10668     #endif
10669     }
10670 
10671     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10673     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10674     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
10675       uint tag;
10676       while ((tag = input.ReadTag()) != 0) {
10677         switch(tag) {
10678           default:
10679             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
10680             break;
10681           case 10: {
10682             if (foreignNested_ == null) {
10683               ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
10684             }
10685             input.ReadMessage(ForeignNested);
10686             break;
10687           }
10688         }
10689       }
10690     }
10691     #endif
10692 
10693   }
10694 
10695   /// <summary>
10696   /// TestEmptyMessage is used to test unknown field support.
10697   /// </summary>
10698   public sealed partial class TestEmptyMessage : pb::IMessage<TestEmptyMessage>
10699   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10700       , pb::IBufferMessage
10701   #endif
10702   {
10703     private static readonly pb::MessageParser<TestEmptyMessage> _parser = new pb::MessageParser<TestEmptyMessage>(() => new TestEmptyMessage());
10704     private pb::UnknownFieldSet _unknownFields;
10705     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10706     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10707     public static pb::MessageParser<TestEmptyMessage> Parser { get { return _parser; } }
10708 
10709     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10710     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10711     public static pbr::MessageDescriptor Descriptor {
10712       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[16]; }
10713     }
10714 
10715     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10716     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10717     pbr::MessageDescriptor pb::IMessage.Descriptor {
10718       get { return Descriptor; }
10719     }
10720 
10721     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10722     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestEmptyMessage()10723     public TestEmptyMessage() {
10724       OnConstruction();
10725     }
10726 
OnConstruction()10727     partial void OnConstruction();
10728 
10729     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10730     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestEmptyMessage(TestEmptyMessage other)10731     public TestEmptyMessage(TestEmptyMessage other) : this() {
10732       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10733     }
10734 
10735     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10736     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()10737     public TestEmptyMessage Clone() {
10738       return new TestEmptyMessage(this);
10739     }
10740 
10741     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10742     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10743     public override bool Equals(object other) {
10744       return Equals(other as TestEmptyMessage);
10745     }
10746 
10747     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10748     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestEmptyMessage other)10749     public bool Equals(TestEmptyMessage other) {
10750       if (ReferenceEquals(other, null)) {
10751         return false;
10752       }
10753       if (ReferenceEquals(other, this)) {
10754         return true;
10755       }
10756       return Equals(_unknownFields, other._unknownFields);
10757     }
10758 
10759     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10760     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10761     public override int GetHashCode() {
10762       int hash = 1;
10763       if (_unknownFields != null) {
10764         hash ^= _unknownFields.GetHashCode();
10765       }
10766       return hash;
10767     }
10768 
10769     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10770     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10771     public override string ToString() {
10772       return pb::JsonFormatter.ToDiagnosticString(this);
10773     }
10774 
10775     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10776     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10777     public void WriteTo(pb::CodedOutputStream output) {
10778     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10779       output.WriteRawMessage(this);
10780     #else
10781       if (_unknownFields != null) {
10782         _unknownFields.WriteTo(output);
10783       }
10784     #endif
10785     }
10786 
10787     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10788     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10789     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10790     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10791       if (_unknownFields != null) {
10792         _unknownFields.WriteTo(ref output);
10793       }
10794     }
10795     #endif
10796 
10797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10799     public int CalculateSize() {
10800       int size = 0;
10801       if (_unknownFields != null) {
10802         size += _unknownFields.CalculateSize();
10803       }
10804       return size;
10805     }
10806 
10807     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10808     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestEmptyMessage other)10809     public void MergeFrom(TestEmptyMessage other) {
10810       if (other == null) {
10811         return;
10812       }
10813       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10814     }
10815 
10816     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10817     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)10818     public void MergeFrom(pb::CodedInputStream input) {
10819     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10820       input.ReadRawMessage(this);
10821     #else
10822       uint tag;
10823       while ((tag = input.ReadTag()) != 0) {
10824         switch(tag) {
10825           default:
10826             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10827             break;
10828         }
10829       }
10830     #endif
10831     }
10832 
10833     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10834     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10835     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10836     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
10837       uint tag;
10838       while ((tag = input.ReadTag()) != 0) {
10839         switch(tag) {
10840           default:
10841             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
10842             break;
10843         }
10844       }
10845     }
10846     #endif
10847 
10848   }
10849 
10850   /// <summary>
10851   /// Like above, but declare all field numbers as potential extensions.  No
10852   /// actual extensions should ever be defined for this type.
10853   /// </summary>
10854   public sealed partial class TestEmptyMessageWithExtensions : pb::IExtendableMessage<TestEmptyMessageWithExtensions>
10855   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10856       , pb::IBufferMessage
10857   #endif
10858   {
10859     private static readonly pb::MessageParser<TestEmptyMessageWithExtensions> _parser = new pb::MessageParser<TestEmptyMessageWithExtensions>(() => new TestEmptyMessageWithExtensions());
10860     private pb::UnknownFieldSet _unknownFields;
10861     private pb::ExtensionSet<TestEmptyMessageWithExtensions> _extensions;
10862     private pb::ExtensionSet<TestEmptyMessageWithExtensions> _Extensions { get { return _extensions; } }
10863     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10864     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10865     public static pb::MessageParser<TestEmptyMessageWithExtensions> Parser { get { return _parser; } }
10866 
10867     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10868     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10869     public static pbr::MessageDescriptor Descriptor {
10870       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[17]; }
10871     }
10872 
10873     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10874     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10875     pbr::MessageDescriptor pb::IMessage.Descriptor {
10876       get { return Descriptor; }
10877     }
10878 
10879     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10880     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestEmptyMessageWithExtensions()10881     public TestEmptyMessageWithExtensions() {
10882       OnConstruction();
10883     }
10884 
OnConstruction()10885     partial void OnConstruction();
10886 
10887     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10888     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions other)10889     public TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions other) : this() {
10890       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10891       _extensions = pb::ExtensionSet.Clone(other._extensions);
10892     }
10893 
10894     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10895     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()10896     public TestEmptyMessageWithExtensions Clone() {
10897       return new TestEmptyMessageWithExtensions(this);
10898     }
10899 
10900     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10901     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10902     public override bool Equals(object other) {
10903       return Equals(other as TestEmptyMessageWithExtensions);
10904     }
10905 
10906     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10907     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestEmptyMessageWithExtensions other)10908     public bool Equals(TestEmptyMessageWithExtensions other) {
10909       if (ReferenceEquals(other, null)) {
10910         return false;
10911       }
10912       if (ReferenceEquals(other, this)) {
10913         return true;
10914       }
10915       if (!Equals(_extensions, other._extensions)) {
10916         return false;
10917       }
10918       return Equals(_unknownFields, other._unknownFields);
10919     }
10920 
10921     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10922     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10923     public override int GetHashCode() {
10924       int hash = 1;
10925       if (_extensions != null) {
10926         hash ^= _extensions.GetHashCode();
10927       }
10928       if (_unknownFields != null) {
10929         hash ^= _unknownFields.GetHashCode();
10930       }
10931       return hash;
10932     }
10933 
10934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10935     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10936     public override string ToString() {
10937       return pb::JsonFormatter.ToDiagnosticString(this);
10938     }
10939 
10940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10941     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10942     public void WriteTo(pb::CodedOutputStream output) {
10943     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10944       output.WriteRawMessage(this);
10945     #else
10946       if (_extensions != null) {
10947         _extensions.WriteTo(output);
10948       }
10949       if (_unknownFields != null) {
10950         _unknownFields.WriteTo(output);
10951       }
10952     #endif
10953     }
10954 
10955     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10956     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10957     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10958     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10959       if (_extensions != null) {
10960         _extensions.WriteTo(ref output);
10961       }
10962       if (_unknownFields != null) {
10963         _unknownFields.WriteTo(ref output);
10964       }
10965     }
10966     #endif
10967 
10968     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10969     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10970     public int CalculateSize() {
10971       int size = 0;
10972       if (_extensions != null) {
10973         size += _extensions.CalculateSize();
10974       }
10975       if (_unknownFields != null) {
10976         size += _unknownFields.CalculateSize();
10977       }
10978       return size;
10979     }
10980 
10981     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10982     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestEmptyMessageWithExtensions other)10983     public void MergeFrom(TestEmptyMessageWithExtensions other) {
10984       if (other == null) {
10985         return;
10986       }
10987       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
10988       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10989     }
10990 
10991     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10992     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)10993     public void MergeFrom(pb::CodedInputStream input) {
10994     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10995       input.ReadRawMessage(this);
10996     #else
10997       uint tag;
10998       while ((tag = input.ReadTag()) != 0) {
10999         switch(tag) {
11000           default:
11001             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
11002               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11003             }
11004             break;
11005         }
11006       }
11007     #endif
11008     }
11009 
11010     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11013     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11014       uint tag;
11015       while ((tag = input.ReadTag()) != 0) {
11016         switch(tag) {
11017           default:
11018             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
11019               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11020             }
11021             break;
11022         }
11023       }
11024     }
11025     #endif
11026 
GetExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension)11027     public TValue GetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
11028       return pb::ExtensionSet.Get(ref _extensions, extension);
11029     }
GetExtension(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension)11030     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
11031       return pb::ExtensionSet.Get(ref _extensions, extension);
11032     }
GetOrInitializeExtension(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension)11033     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
11034       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
11035     }
SetExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, TValue value)11036     public void SetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, TValue value) {
11037       pb::ExtensionSet.Set(ref _extensions, extension, value);
11038     }
HasExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension)11039     public bool HasExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
11040       return pb::ExtensionSet.Has(ref _extensions, extension);
11041     }
ClearExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension)11042     public void ClearExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
11043       pb::ExtensionSet.Clear(ref _extensions, extension);
11044     }
ClearExtension(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension)11045     public void ClearExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
11046       pb::ExtensionSet.Clear(ref _extensions, extension);
11047     }
11048 
11049   }
11050 
11051   public sealed partial class TestMultipleExtensionRanges : pb::IExtendableMessage<TestMultipleExtensionRanges>
11052   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11053       , pb::IBufferMessage
11054   #endif
11055   {
11056     private static readonly pb::MessageParser<TestMultipleExtensionRanges> _parser = new pb::MessageParser<TestMultipleExtensionRanges>(() => new TestMultipleExtensionRanges());
11057     private pb::UnknownFieldSet _unknownFields;
11058     private pb::ExtensionSet<TestMultipleExtensionRanges> _extensions;
11059     private pb::ExtensionSet<TestMultipleExtensionRanges> _Extensions { get { return _extensions; } }
11060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11061     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11062     public static pb::MessageParser<TestMultipleExtensionRanges> Parser { get { return _parser; } }
11063 
11064     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11065     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11066     public static pbr::MessageDescriptor Descriptor {
11067       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[18]; }
11068     }
11069 
11070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11071     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11072     pbr::MessageDescriptor pb::IMessage.Descriptor {
11073       get { return Descriptor; }
11074     }
11075 
11076     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11077     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMultipleExtensionRanges()11078     public TestMultipleExtensionRanges() {
11079       OnConstruction();
11080     }
11081 
OnConstruction()11082     partial void OnConstruction();
11083 
11084     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11085     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMultipleExtensionRanges(TestMultipleExtensionRanges other)11086     public TestMultipleExtensionRanges(TestMultipleExtensionRanges other) : this() {
11087       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11088       _extensions = pb::ExtensionSet.Clone(other._extensions);
11089     }
11090 
11091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11092     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11093     public TestMultipleExtensionRanges Clone() {
11094       return new TestMultipleExtensionRanges(this);
11095     }
11096 
11097     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11098     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)11099     public override bool Equals(object other) {
11100       return Equals(other as TestMultipleExtensionRanges);
11101     }
11102 
11103     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11104     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestMultipleExtensionRanges other)11105     public bool Equals(TestMultipleExtensionRanges other) {
11106       if (ReferenceEquals(other, null)) {
11107         return false;
11108       }
11109       if (ReferenceEquals(other, this)) {
11110         return true;
11111       }
11112       if (!Equals(_extensions, other._extensions)) {
11113         return false;
11114       }
11115       return Equals(_unknownFields, other._unknownFields);
11116     }
11117 
11118     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11119     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()11120     public override int GetHashCode() {
11121       int hash = 1;
11122       if (_extensions != null) {
11123         hash ^= _extensions.GetHashCode();
11124       }
11125       if (_unknownFields != null) {
11126         hash ^= _unknownFields.GetHashCode();
11127       }
11128       return hash;
11129     }
11130 
11131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11132     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11133     public override string ToString() {
11134       return pb::JsonFormatter.ToDiagnosticString(this);
11135     }
11136 
11137     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11138     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11139     public void WriteTo(pb::CodedOutputStream output) {
11140     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11141       output.WriteRawMessage(this);
11142     #else
11143       if (_extensions != null) {
11144         _extensions.WriteTo(output);
11145       }
11146       if (_unknownFields != null) {
11147         _unknownFields.WriteTo(output);
11148       }
11149     #endif
11150     }
11151 
11152     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11153     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11154     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11155     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11156       if (_extensions != null) {
11157         _extensions.WriteTo(ref output);
11158       }
11159       if (_unknownFields != null) {
11160         _unknownFields.WriteTo(ref output);
11161       }
11162     }
11163     #endif
11164 
11165     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11166     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11167     public int CalculateSize() {
11168       int size = 0;
11169       if (_extensions != null) {
11170         size += _extensions.CalculateSize();
11171       }
11172       if (_unknownFields != null) {
11173         size += _unknownFields.CalculateSize();
11174       }
11175       return size;
11176     }
11177 
11178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestMultipleExtensionRanges other)11180     public void MergeFrom(TestMultipleExtensionRanges other) {
11181       if (other == null) {
11182         return;
11183       }
11184       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
11185       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11186     }
11187 
11188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11189     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11190     public void MergeFrom(pb::CodedInputStream input) {
11191     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11192       input.ReadRawMessage(this);
11193     #else
11194       uint tag;
11195       while ((tag = input.ReadTag()) != 0) {
11196         switch(tag) {
11197           default:
11198             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
11199               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11200             }
11201             break;
11202         }
11203       }
11204     #endif
11205     }
11206 
11207     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11208     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11209     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11210     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11211       uint tag;
11212       while ((tag = input.ReadTag()) != 0) {
11213         switch(tag) {
11214           default:
11215             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
11216               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11217             }
11218             break;
11219         }
11220       }
11221     }
11222     #endif
11223 
GetExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension)11224     public TValue GetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
11225       return pb::ExtensionSet.Get(ref _extensions, extension);
11226     }
GetExtension(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension)11227     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
11228       return pb::ExtensionSet.Get(ref _extensions, extension);
11229     }
GetOrInitializeExtension(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension)11230     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
11231       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
11232     }
SetExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TValue value)11233     public void SetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TValue value) {
11234       pb::ExtensionSet.Set(ref _extensions, extension, value);
11235     }
HasExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension)11236     public bool HasExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
11237       return pb::ExtensionSet.Has(ref _extensions, extension);
11238     }
ClearExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension)11239     public void ClearExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
11240       pb::ExtensionSet.Clear(ref _extensions, extension);
11241     }
ClearExtension(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension)11242     public void ClearExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
11243       pb::ExtensionSet.Clear(ref _extensions, extension);
11244     }
11245 
11246   }
11247 
11248   /// <summary>
11249   /// Test that really large tag numbers don't break anything.
11250   /// </summary>
11251   public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber>
11252   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11253       , pb::IBufferMessage
11254   #endif
11255   {
11256     private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber());
11257     private pb::UnknownFieldSet _unknownFields;
11258     private int _hasBits0;
11259     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11260     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11261     public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } }
11262 
11263     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11264     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11265     public static pbr::MessageDescriptor Descriptor {
11266       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[19]; }
11267     }
11268 
11269     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11270     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11271     pbr::MessageDescriptor pb::IMessage.Descriptor {
11272       get { return Descriptor; }
11273     }
11274 
11275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11276     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestReallyLargeTagNumber()11277     public TestReallyLargeTagNumber() {
11278       OnConstruction();
11279     }
11280 
OnConstruction()11281     partial void OnConstruction();
11282 
11283     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11284     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestReallyLargeTagNumber(TestReallyLargeTagNumber other)11285     public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() {
11286       _hasBits0 = other._hasBits0;
11287       a_ = other.a_;
11288       bb_ = other.bb_;
11289       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11290     }
11291 
11292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11293     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11294     public TestReallyLargeTagNumber Clone() {
11295       return new TestReallyLargeTagNumber(this);
11296     }
11297 
11298     /// <summary>Field number for the "a" field.</summary>
11299     public const int AFieldNumber = 1;
11300     private readonly static int ADefaultValue = 0;
11301 
11302     private int a_;
11303     /// <summary>
11304     /// The largest possible tag number is 2^28 - 1, since the wire format uses
11305     /// three bits to communicate wire type.
11306     /// </summary>
11307     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11308     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11309     public int A {
11310       get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
11311       set {
11312         _hasBits0 |= 1;
11313         a_ = value;
11314       }
11315     }
11316     /// <summary>Gets whether the "a" field is set</summary>
11317     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11318     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11319     public bool HasA {
11320       get { return (_hasBits0 & 1) != 0; }
11321     }
11322     /// <summary>Clears the value of the "a" field</summary>
11323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11324     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()11325     public void ClearA() {
11326       _hasBits0 &= ~1;
11327     }
11328 
11329     /// <summary>Field number for the "bb" field.</summary>
11330     public const int BbFieldNumber = 268435455;
11331     private readonly static int BbDefaultValue = 0;
11332 
11333     private int bb_;
11334     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11335     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11336     public int Bb {
11337       get { if ((_hasBits0 & 2) != 0) { return bb_; } else { return BbDefaultValue; } }
11338       set {
11339         _hasBits0 |= 2;
11340         bb_ = value;
11341       }
11342     }
11343     /// <summary>Gets whether the "bb" field is set</summary>
11344     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11345     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11346     public bool HasBb {
11347       get { return (_hasBits0 & 2) != 0; }
11348     }
11349     /// <summary>Clears the value of the "bb" field</summary>
11350     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11351     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBb()11352     public void ClearBb() {
11353       _hasBits0 &= ~2;
11354     }
11355 
11356     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11357     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)11358     public override bool Equals(object other) {
11359       return Equals(other as TestReallyLargeTagNumber);
11360     }
11361 
11362     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11363     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestReallyLargeTagNumber other)11364     public bool Equals(TestReallyLargeTagNumber other) {
11365       if (ReferenceEquals(other, null)) {
11366         return false;
11367       }
11368       if (ReferenceEquals(other, this)) {
11369         return true;
11370       }
11371       if (A != other.A) return false;
11372       if (Bb != other.Bb) return false;
11373       return Equals(_unknownFields, other._unknownFields);
11374     }
11375 
11376     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11377     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()11378     public override int GetHashCode() {
11379       int hash = 1;
11380       if (HasA) hash ^= A.GetHashCode();
11381       if (HasBb) hash ^= Bb.GetHashCode();
11382       if (_unknownFields != null) {
11383         hash ^= _unknownFields.GetHashCode();
11384       }
11385       return hash;
11386     }
11387 
11388     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11389     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11390     public override string ToString() {
11391       return pb::JsonFormatter.ToDiagnosticString(this);
11392     }
11393 
11394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11395     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11396     public void WriteTo(pb::CodedOutputStream output) {
11397     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11398       output.WriteRawMessage(this);
11399     #else
11400       if (HasA) {
11401         output.WriteRawTag(8);
11402         output.WriteInt32(A);
11403       }
11404       if (HasBb) {
11405         output.WriteRawTag(248, 255, 255, 255, 7);
11406         output.WriteInt32(Bb);
11407       }
11408       if (_unknownFields != null) {
11409         _unknownFields.WriteTo(output);
11410       }
11411     #endif
11412     }
11413 
11414     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11416     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11417     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11418       if (HasA) {
11419         output.WriteRawTag(8);
11420         output.WriteInt32(A);
11421       }
11422       if (HasBb) {
11423         output.WriteRawTag(248, 255, 255, 255, 7);
11424         output.WriteInt32(Bb);
11425       }
11426       if (_unknownFields != null) {
11427         _unknownFields.WriteTo(ref output);
11428       }
11429     }
11430     #endif
11431 
11432     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11433     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11434     public int CalculateSize() {
11435       int size = 0;
11436       if (HasA) {
11437         size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
11438       }
11439       if (HasBb) {
11440         size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb);
11441       }
11442       if (_unknownFields != null) {
11443         size += _unknownFields.CalculateSize();
11444       }
11445       return size;
11446     }
11447 
11448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11449     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestReallyLargeTagNumber other)11450     public void MergeFrom(TestReallyLargeTagNumber other) {
11451       if (other == null) {
11452         return;
11453       }
11454       if (other.HasA) {
11455         A = other.A;
11456       }
11457       if (other.HasBb) {
11458         Bb = other.Bb;
11459       }
11460       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11461     }
11462 
11463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11465     public void MergeFrom(pb::CodedInputStream input) {
11466     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11467       input.ReadRawMessage(this);
11468     #else
11469       uint tag;
11470       while ((tag = input.ReadTag()) != 0) {
11471         switch(tag) {
11472           default:
11473             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11474             break;
11475           case 8: {
11476             A = input.ReadInt32();
11477             break;
11478           }
11479           case 2147483640: {
11480             Bb = input.ReadInt32();
11481             break;
11482           }
11483         }
11484       }
11485     #endif
11486     }
11487 
11488     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11490     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11491     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11492       uint tag;
11493       while ((tag = input.ReadTag()) != 0) {
11494         switch(tag) {
11495           default:
11496             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11497             break;
11498           case 8: {
11499             A = input.ReadInt32();
11500             break;
11501           }
11502           case 2147483640: {
11503             Bb = input.ReadInt32();
11504             break;
11505           }
11506         }
11507       }
11508     }
11509     #endif
11510 
11511   }
11512 
11513   public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage>
11514   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11515       , pb::IBufferMessage
11516   #endif
11517   {
11518     private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage());
11519     private pb::UnknownFieldSet _unknownFields;
11520     private int _hasBits0;
11521     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11522     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11523     public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }
11524 
11525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11526     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11527     public static pbr::MessageDescriptor Descriptor {
11528       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[20]; }
11529     }
11530 
11531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11533     pbr::MessageDescriptor pb::IMessage.Descriptor {
11534       get { return Descriptor; }
11535     }
11536 
11537     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11538     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRecursiveMessage()11539     public TestRecursiveMessage() {
11540       OnConstruction();
11541     }
11542 
OnConstruction()11543     partial void OnConstruction();
11544 
11545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRecursiveMessage(TestRecursiveMessage other)11547     public TestRecursiveMessage(TestRecursiveMessage other) : this() {
11548       _hasBits0 = other._hasBits0;
11549       a_ = other.a_ != null ? other.a_.Clone() : null;
11550       i_ = other.i_;
11551       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11552     }
11553 
11554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11555     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11556     public TestRecursiveMessage Clone() {
11557       return new TestRecursiveMessage(this);
11558     }
11559 
11560     /// <summary>Field number for the "a" field.</summary>
11561     public const int AFieldNumber = 1;
11562     private global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage a_;
11563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11564     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11565     public global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage A {
11566       get { return a_; }
11567       set {
11568         a_ = value;
11569       }
11570     }
11571 
11572     /// <summary>Field number for the "i" field.</summary>
11573     public const int IFieldNumber = 2;
11574     private readonly static int IDefaultValue = 0;
11575 
11576     private int i_;
11577     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11578     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11579     public int I {
11580       get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
11581       set {
11582         _hasBits0 |= 1;
11583         i_ = value;
11584       }
11585     }
11586     /// <summary>Gets whether the "i" field is set</summary>
11587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11589     public bool HasI {
11590       get { return (_hasBits0 & 1) != 0; }
11591     }
11592     /// <summary>Clears the value of the "i" field</summary>
11593     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11594     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearI()11595     public void ClearI() {
11596       _hasBits0 &= ~1;
11597     }
11598 
11599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)11601     public override bool Equals(object other) {
11602       return Equals(other as TestRecursiveMessage);
11603     }
11604 
11605     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11606     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestRecursiveMessage other)11607     public bool Equals(TestRecursiveMessage other) {
11608       if (ReferenceEquals(other, null)) {
11609         return false;
11610       }
11611       if (ReferenceEquals(other, this)) {
11612         return true;
11613       }
11614       if (!object.Equals(A, other.A)) return false;
11615       if (I != other.I) return false;
11616       return Equals(_unknownFields, other._unknownFields);
11617     }
11618 
11619     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11620     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()11621     public override int GetHashCode() {
11622       int hash = 1;
11623       if (a_ != null) hash ^= A.GetHashCode();
11624       if (HasI) hash ^= I.GetHashCode();
11625       if (_unknownFields != null) {
11626         hash ^= _unknownFields.GetHashCode();
11627       }
11628       return hash;
11629     }
11630 
11631     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11632     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11633     public override string ToString() {
11634       return pb::JsonFormatter.ToDiagnosticString(this);
11635     }
11636 
11637     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11638     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11639     public void WriteTo(pb::CodedOutputStream output) {
11640     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11641       output.WriteRawMessage(this);
11642     #else
11643       if (a_ != null) {
11644         output.WriteRawTag(10);
11645         output.WriteMessage(A);
11646       }
11647       if (HasI) {
11648         output.WriteRawTag(16);
11649         output.WriteInt32(I);
11650       }
11651       if (_unknownFields != null) {
11652         _unknownFields.WriteTo(output);
11653       }
11654     #endif
11655     }
11656 
11657     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11658     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11659     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11660     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11661       if (a_ != null) {
11662         output.WriteRawTag(10);
11663         output.WriteMessage(A);
11664       }
11665       if (HasI) {
11666         output.WriteRawTag(16);
11667         output.WriteInt32(I);
11668       }
11669       if (_unknownFields != null) {
11670         _unknownFields.WriteTo(ref output);
11671       }
11672     }
11673     #endif
11674 
11675     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11676     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11677     public int CalculateSize() {
11678       int size = 0;
11679       if (a_ != null) {
11680         size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
11681       }
11682       if (HasI) {
11683         size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
11684       }
11685       if (_unknownFields != null) {
11686         size += _unknownFields.CalculateSize();
11687       }
11688       return size;
11689     }
11690 
11691     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11692     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestRecursiveMessage other)11693     public void MergeFrom(TestRecursiveMessage other) {
11694       if (other == null) {
11695         return;
11696       }
11697       if (other.a_ != null) {
11698         if (a_ == null) {
11699           A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
11700         }
11701         A.MergeFrom(other.A);
11702       }
11703       if (other.HasI) {
11704         I = other.I;
11705       }
11706       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11707     }
11708 
11709     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11710     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11711     public void MergeFrom(pb::CodedInputStream input) {
11712     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11713       input.ReadRawMessage(this);
11714     #else
11715       uint tag;
11716       while ((tag = input.ReadTag()) != 0) {
11717         switch(tag) {
11718           default:
11719             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11720             break;
11721           case 10: {
11722             if (a_ == null) {
11723               A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
11724             }
11725             input.ReadMessage(A);
11726             break;
11727           }
11728           case 16: {
11729             I = input.ReadInt32();
11730             break;
11731           }
11732         }
11733       }
11734     #endif
11735     }
11736 
11737     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11738     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11739     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11740     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11741       uint tag;
11742       while ((tag = input.ReadTag()) != 0) {
11743         switch(tag) {
11744           default:
11745             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11746             break;
11747           case 10: {
11748             if (a_ == null) {
11749               A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
11750             }
11751             input.ReadMessage(A);
11752             break;
11753           }
11754           case 16: {
11755             I = input.ReadInt32();
11756             break;
11757           }
11758         }
11759       }
11760     }
11761     #endif
11762 
11763   }
11764 
11765   /// <summary>
11766   /// Test that mutual recursion works.
11767   /// </summary>
11768   public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA>
11769   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11770       , pb::IBufferMessage
11771   #endif
11772   {
11773     private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA());
11774     private pb::UnknownFieldSet _unknownFields;
11775     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11776     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11777     public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } }
11778 
11779     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11780     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11781     public static pbr::MessageDescriptor Descriptor {
11782       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[21]; }
11783     }
11784 
11785     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11786     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11787     pbr::MessageDescriptor pb::IMessage.Descriptor {
11788       get { return Descriptor; }
11789     }
11790 
11791     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11792     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMutualRecursionA()11793     public TestMutualRecursionA() {
11794       OnConstruction();
11795     }
11796 
OnConstruction()11797     partial void OnConstruction();
11798 
11799     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11800     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMutualRecursionA(TestMutualRecursionA other)11801     public TestMutualRecursionA(TestMutualRecursionA other) : this() {
11802       bb_ = other.bb_ != null ? other.bb_.Clone() : null;
11803       subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
11804       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11805     }
11806 
11807     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11808     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11809     public TestMutualRecursionA Clone() {
11810       return new TestMutualRecursionA(this);
11811     }
11812 
11813     /// <summary>Field number for the "bb" field.</summary>
11814     public const int BbFieldNumber = 1;
11815     private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB bb_;
11816     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11817     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11818     public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB Bb {
11819       get { return bb_; }
11820       set {
11821         bb_ = value;
11822       }
11823     }
11824 
11825     /// <summary>Field number for the "subgroup" field.</summary>
11826     public const int SubGroupFieldNumber = 2;
11827     private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup subGroup_;
11828     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11829     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11830     public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup SubGroup {
11831       get { return subGroup_; }
11832       set {
11833         subGroup_ = value;
11834       }
11835     }
11836     /// <summary>Gets whether the subgroup field is set</summary>
11837     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11838     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11839     public bool HasSubGroup {
11840       get { return subGroup_ != null; }
11841     }
11842     /// <summary>Clears the value of the subgroup field</summary>
11843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11844     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSubGroup()11845     public void ClearSubGroup() {
11846       subGroup_ = null;
11847     }
11848 
11849     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11850     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)11851     public override bool Equals(object other) {
11852       return Equals(other as TestMutualRecursionA);
11853     }
11854 
11855     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11856     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestMutualRecursionA other)11857     public bool Equals(TestMutualRecursionA other) {
11858       if (ReferenceEquals(other, null)) {
11859         return false;
11860       }
11861       if (ReferenceEquals(other, this)) {
11862         return true;
11863       }
11864       if (!object.Equals(Bb, other.Bb)) return false;
11865       if (!object.Equals(SubGroup, other.SubGroup)) return false;
11866       return Equals(_unknownFields, other._unknownFields);
11867     }
11868 
11869     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11870     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()11871     public override int GetHashCode() {
11872       int hash = 1;
11873       if (bb_ != null) hash ^= Bb.GetHashCode();
11874       if (HasSubGroup) hash ^= SubGroup.GetHashCode();
11875       if (_unknownFields != null) {
11876         hash ^= _unknownFields.GetHashCode();
11877       }
11878       return hash;
11879     }
11880 
11881     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11882     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11883     public override string ToString() {
11884       return pb::JsonFormatter.ToDiagnosticString(this);
11885     }
11886 
11887     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11888     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11889     public void WriteTo(pb::CodedOutputStream output) {
11890     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11891       output.WriteRawMessage(this);
11892     #else
11893       if (bb_ != null) {
11894         output.WriteRawTag(10);
11895         output.WriteMessage(Bb);
11896       }
11897       if (HasSubGroup) {
11898         output.WriteRawTag(19);
11899         output.WriteGroup(SubGroup);
11900         output.WriteRawTag(20);
11901       }
11902       if (_unknownFields != null) {
11903         _unknownFields.WriteTo(output);
11904       }
11905     #endif
11906     }
11907 
11908     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11909     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11910     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11911     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11912       if (bb_ != null) {
11913         output.WriteRawTag(10);
11914         output.WriteMessage(Bb);
11915       }
11916       if (HasSubGroup) {
11917         output.WriteRawTag(19);
11918         output.WriteGroup(SubGroup);
11919         output.WriteRawTag(20);
11920       }
11921       if (_unknownFields != null) {
11922         _unknownFields.WriteTo(ref output);
11923       }
11924     }
11925     #endif
11926 
11927     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11928     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11929     public int CalculateSize() {
11930       int size = 0;
11931       if (bb_ != null) {
11932         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb);
11933       }
11934       if (HasSubGroup) {
11935         size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
11936       }
11937       if (_unknownFields != null) {
11938         size += _unknownFields.CalculateSize();
11939       }
11940       return size;
11941     }
11942 
11943     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11944     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestMutualRecursionA other)11945     public void MergeFrom(TestMutualRecursionA other) {
11946       if (other == null) {
11947         return;
11948       }
11949       if (other.bb_ != null) {
11950         if (bb_ == null) {
11951           Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
11952         }
11953         Bb.MergeFrom(other.Bb);
11954       }
11955       if (other.HasSubGroup) {
11956         if (!HasSubGroup) {
11957           SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
11958         }
11959         SubGroup.MergeFrom(other.SubGroup);
11960       }
11961       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11962     }
11963 
11964     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11965     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11966     public void MergeFrom(pb::CodedInputStream input) {
11967     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11968       input.ReadRawMessage(this);
11969     #else
11970       uint tag;
11971       while ((tag = input.ReadTag()) != 0) {
11972         switch(tag) {
11973           default:
11974             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11975             break;
11976           case 10: {
11977             if (bb_ == null) {
11978               Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
11979             }
11980             input.ReadMessage(Bb);
11981             break;
11982           }
11983           case 19: {
11984             if (!HasSubGroup) {
11985               SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
11986             }
11987             input.ReadGroup(SubGroup);
11988             break;
11989           }
11990         }
11991       }
11992     #endif
11993     }
11994 
11995     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11997     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11998     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11999       uint tag;
12000       while ((tag = input.ReadTag()) != 0) {
12001         switch(tag) {
12002           default:
12003             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12004             break;
12005           case 10: {
12006             if (bb_ == null) {
12007               Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12008             }
12009             input.ReadMessage(Bb);
12010             break;
12011           }
12012           case 19: {
12013             if (!HasSubGroup) {
12014               SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
12015             }
12016             input.ReadGroup(SubGroup);
12017             break;
12018           }
12019         }
12020       }
12021     }
12022     #endif
12023 
12024     #region Nested types
12025     /// <summary>Container for nested types declared in the TestMutualRecursionA message type.</summary>
12026     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12027     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12028     public static partial class Types {
12029       public sealed partial class SubMessage : pb::IMessage<SubMessage>
12030       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12031           , pb::IBufferMessage
12032       #endif
12033       {
12034         private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
12035         private pb::UnknownFieldSet _unknownFields;
12036         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12037         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12038         public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
12039 
12040         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12041         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12042         public static pbr::MessageDescriptor Descriptor {
12043           get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[0]; }
12044         }
12045 
12046         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12047         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12048         pbr::MessageDescriptor pb::IMessage.Descriptor {
12049           get { return Descriptor; }
12050         }
12051 
12052         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12053         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubMessage()12054         public SubMessage() {
12055           OnConstruction();
12056         }
12057 
OnConstruction()12058         partial void OnConstruction();
12059 
12060         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12061         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubMessage(SubMessage other)12062         public SubMessage(SubMessage other) : this() {
12063           b_ = other.b_ != null ? other.b_.Clone() : null;
12064           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12065         }
12066 
12067         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12068         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12069         public SubMessage Clone() {
12070           return new SubMessage(this);
12071         }
12072 
12073         /// <summary>Field number for the "b" field.</summary>
12074         public const int BFieldNumber = 1;
12075         private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB b_;
12076         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12077         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12078         public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB B {
12079           get { return b_; }
12080           set {
12081             b_ = value;
12082           }
12083         }
12084 
12085         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12086         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12087         public override bool Equals(object other) {
12088           return Equals(other as SubMessage);
12089         }
12090 
12091         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12092         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(SubMessage other)12093         public bool Equals(SubMessage other) {
12094           if (ReferenceEquals(other, null)) {
12095             return false;
12096           }
12097           if (ReferenceEquals(other, this)) {
12098             return true;
12099           }
12100           if (!object.Equals(B, other.B)) return false;
12101           return Equals(_unknownFields, other._unknownFields);
12102         }
12103 
12104         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12105         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12106         public override int GetHashCode() {
12107           int hash = 1;
12108           if (b_ != null) hash ^= B.GetHashCode();
12109           if (_unknownFields != null) {
12110             hash ^= _unknownFields.GetHashCode();
12111           }
12112           return hash;
12113         }
12114 
12115         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12116         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12117         public override string ToString() {
12118           return pb::JsonFormatter.ToDiagnosticString(this);
12119         }
12120 
12121         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12122         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12123         public void WriteTo(pb::CodedOutputStream output) {
12124         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12125           output.WriteRawMessage(this);
12126         #else
12127           if (b_ != null) {
12128             output.WriteRawTag(10);
12129             output.WriteMessage(B);
12130           }
12131           if (_unknownFields != null) {
12132             _unknownFields.WriteTo(output);
12133           }
12134         #endif
12135         }
12136 
12137         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12138         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12139         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12140         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12141           if (b_ != null) {
12142             output.WriteRawTag(10);
12143             output.WriteMessage(B);
12144           }
12145           if (_unknownFields != null) {
12146             _unknownFields.WriteTo(ref output);
12147           }
12148         }
12149         #endif
12150 
12151         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12152         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12153         public int CalculateSize() {
12154           int size = 0;
12155           if (b_ != null) {
12156             size += 1 + pb::CodedOutputStream.ComputeMessageSize(B);
12157           }
12158           if (_unknownFields != null) {
12159             size += _unknownFields.CalculateSize();
12160           }
12161           return size;
12162         }
12163 
12164         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12165         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(SubMessage other)12166         public void MergeFrom(SubMessage other) {
12167           if (other == null) {
12168             return;
12169           }
12170           if (other.b_ != null) {
12171             if (b_ == null) {
12172               B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12173             }
12174             B.MergeFrom(other.B);
12175           }
12176           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12177         }
12178 
12179         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12180         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12181         public void MergeFrom(pb::CodedInputStream input) {
12182         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12183           input.ReadRawMessage(this);
12184         #else
12185           uint tag;
12186           while ((tag = input.ReadTag()) != 0) {
12187             switch(tag) {
12188               default:
12189                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12190                 break;
12191               case 10: {
12192                 if (b_ == null) {
12193                   B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12194                 }
12195                 input.ReadMessage(B);
12196                 break;
12197               }
12198             }
12199           }
12200         #endif
12201         }
12202 
12203         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12204         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12205         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12206         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12207           uint tag;
12208           while ((tag = input.ReadTag()) != 0) {
12209             switch(tag) {
12210               default:
12211                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12212                 break;
12213               case 10: {
12214                 if (b_ == null) {
12215                   B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12216                 }
12217                 input.ReadMessage(B);
12218                 break;
12219               }
12220             }
12221           }
12222         }
12223         #endif
12224 
12225       }
12226 
12227       public sealed partial class SubGroup : pb::IMessage<SubGroup>
12228       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12229           , pb::IBufferMessage
12230       #endif
12231       {
12232         private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
12233         private pb::UnknownFieldSet _unknownFields;
12234         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12235         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12236         public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
12237 
12238         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12239         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12240         public static pbr::MessageDescriptor Descriptor {
12241           get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[1]; }
12242         }
12243 
12244         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12245         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12246         pbr::MessageDescriptor pb::IMessage.Descriptor {
12247           get { return Descriptor; }
12248         }
12249 
12250         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12251         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubGroup()12252         public SubGroup() {
12253           OnConstruction();
12254         }
12255 
OnConstruction()12256         partial void OnConstruction();
12257 
12258         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12259         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubGroup(SubGroup other)12260         public SubGroup(SubGroup other) : this() {
12261           subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
12262           notInThisScc_ = other.notInThisScc_ != null ? other.notInThisScc_.Clone() : null;
12263           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12264         }
12265 
12266         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12267         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12268         public SubGroup Clone() {
12269           return new SubGroup(this);
12270         }
12271 
12272         /// <summary>Field number for the "sub_message" field.</summary>
12273         public const int SubMessageFieldNumber = 3;
12274         private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage subMessage_;
12275         /// <summary>
12276         /// Needed because of bug in javatest
12277         /// </summary>
12278         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12279         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12280         public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage SubMessage {
12281           get { return subMessage_; }
12282           set {
12283             subMessage_ = value;
12284           }
12285         }
12286 
12287         /// <summary>Field number for the "not_in_this_scc" field.</summary>
12288         public const int NotInThisSccFieldNumber = 4;
12289         private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes notInThisScc_;
12290         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12291         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12292         public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes NotInThisScc {
12293           get { return notInThisScc_; }
12294           set {
12295             notInThisScc_ = value;
12296           }
12297         }
12298 
12299         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12300         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12301         public override bool Equals(object other) {
12302           return Equals(other as SubGroup);
12303         }
12304 
12305         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12306         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(SubGroup other)12307         public bool Equals(SubGroup other) {
12308           if (ReferenceEquals(other, null)) {
12309             return false;
12310           }
12311           if (ReferenceEquals(other, this)) {
12312             return true;
12313           }
12314           if (!object.Equals(SubMessage, other.SubMessage)) return false;
12315           if (!object.Equals(NotInThisScc, other.NotInThisScc)) return false;
12316           return Equals(_unknownFields, other._unknownFields);
12317         }
12318 
12319         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12320         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12321         public override int GetHashCode() {
12322           int hash = 1;
12323           if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
12324           if (notInThisScc_ != null) hash ^= NotInThisScc.GetHashCode();
12325           if (_unknownFields != null) {
12326             hash ^= _unknownFields.GetHashCode();
12327           }
12328           return hash;
12329         }
12330 
12331         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12332         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12333         public override string ToString() {
12334           return pb::JsonFormatter.ToDiagnosticString(this);
12335         }
12336 
12337         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12338         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12339         public void WriteTo(pb::CodedOutputStream output) {
12340         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12341           output.WriteRawMessage(this);
12342         #else
12343           if (subMessage_ != null) {
12344             output.WriteRawTag(26);
12345             output.WriteMessage(SubMessage);
12346           }
12347           if (notInThisScc_ != null) {
12348             output.WriteRawTag(34);
12349             output.WriteMessage(NotInThisScc);
12350           }
12351           if (_unknownFields != null) {
12352             _unknownFields.WriteTo(output);
12353           }
12354         #endif
12355         }
12356 
12357         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12358         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12359         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12360         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12361           if (subMessage_ != null) {
12362             output.WriteRawTag(26);
12363             output.WriteMessage(SubMessage);
12364           }
12365           if (notInThisScc_ != null) {
12366             output.WriteRawTag(34);
12367             output.WriteMessage(NotInThisScc);
12368           }
12369           if (_unknownFields != null) {
12370             _unknownFields.WriteTo(ref output);
12371           }
12372         }
12373         #endif
12374 
12375         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12376         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12377         public int CalculateSize() {
12378           int size = 0;
12379           if (subMessage_ != null) {
12380             size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
12381           }
12382           if (notInThisScc_ != null) {
12383             size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotInThisScc);
12384           }
12385           if (_unknownFields != null) {
12386             size += _unknownFields.CalculateSize();
12387           }
12388           return size;
12389         }
12390 
12391         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12392         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(SubGroup other)12393         public void MergeFrom(SubGroup other) {
12394           if (other == null) {
12395             return;
12396           }
12397           if (other.subMessage_ != null) {
12398             if (subMessage_ == null) {
12399               SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
12400             }
12401             SubMessage.MergeFrom(other.SubMessage);
12402           }
12403           if (other.notInThisScc_ != null) {
12404             if (notInThisScc_ == null) {
12405               NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
12406             }
12407             NotInThisScc.MergeFrom(other.NotInThisScc);
12408           }
12409           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12410         }
12411 
12412         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12413         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12414         public void MergeFrom(pb::CodedInputStream input) {
12415         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12416           input.ReadRawMessage(this);
12417         #else
12418           uint tag;
12419           while ((tag = input.ReadTag()) != 0) {
12420             switch(tag) {
12421               case 20:
12422                 return;
12423               default:
12424                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12425                 break;
12426               case 26: {
12427                 if (subMessage_ == null) {
12428                   SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
12429                 }
12430                 input.ReadMessage(SubMessage);
12431                 break;
12432               }
12433               case 34: {
12434                 if (notInThisScc_ == null) {
12435                   NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
12436                 }
12437                 input.ReadMessage(NotInThisScc);
12438                 break;
12439               }
12440             }
12441           }
12442         #endif
12443         }
12444 
12445         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12446         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12447         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12448         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12449           uint tag;
12450           while ((tag = input.ReadTag()) != 0) {
12451             switch(tag) {
12452               case 20:
12453                 return;
12454               default:
12455                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12456                 break;
12457               case 26: {
12458                 if (subMessage_ == null) {
12459                   SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
12460                 }
12461                 input.ReadMessage(SubMessage);
12462                 break;
12463               }
12464               case 34: {
12465                 if (notInThisScc_ == null) {
12466                   NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
12467                 }
12468                 input.ReadMessage(NotInThisScc);
12469                 break;
12470               }
12471             }
12472           }
12473         }
12474         #endif
12475 
12476       }
12477 
12478     }
12479     #endregion
12480 
12481   }
12482 
12483   public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB>
12484   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12485       , pb::IBufferMessage
12486   #endif
12487   {
12488     private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB());
12489     private pb::UnknownFieldSet _unknownFields;
12490     private int _hasBits0;
12491     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12492     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12493     public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } }
12494 
12495     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12496     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12497     public static pbr::MessageDescriptor Descriptor {
12498       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[22]; }
12499     }
12500 
12501     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12502     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12503     pbr::MessageDescriptor pb::IMessage.Descriptor {
12504       get { return Descriptor; }
12505     }
12506 
12507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12508     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMutualRecursionB()12509     public TestMutualRecursionB() {
12510       OnConstruction();
12511     }
12512 
OnConstruction()12513     partial void OnConstruction();
12514 
12515     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12516     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMutualRecursionB(TestMutualRecursionB other)12517     public TestMutualRecursionB(TestMutualRecursionB other) : this() {
12518       _hasBits0 = other._hasBits0;
12519       a_ = other.a_ != null ? other.a_.Clone() : null;
12520       optionalInt32_ = other.optionalInt32_;
12521       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12522     }
12523 
12524     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12525     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12526     public TestMutualRecursionB Clone() {
12527       return new TestMutualRecursionB(this);
12528     }
12529 
12530     /// <summary>Field number for the "a" field.</summary>
12531     public const int AFieldNumber = 1;
12532     private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA a_;
12533     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12534     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12535     public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA A {
12536       get { return a_; }
12537       set {
12538         a_ = value;
12539       }
12540     }
12541 
12542     /// <summary>Field number for the "optional_int32" field.</summary>
12543     public const int OptionalInt32FieldNumber = 2;
12544     private readonly static int OptionalInt32DefaultValue = 0;
12545 
12546     private int optionalInt32_;
12547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12549     public int OptionalInt32 {
12550       get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
12551       set {
12552         _hasBits0 |= 1;
12553         optionalInt32_ = value;
12554       }
12555     }
12556     /// <summary>Gets whether the "optional_int32" field is set</summary>
12557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12559     public bool HasOptionalInt32 {
12560       get { return (_hasBits0 & 1) != 0; }
12561     }
12562     /// <summary>Clears the value of the "optional_int32" field</summary>
12563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12564     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt32()12565     public void ClearOptionalInt32() {
12566       _hasBits0 &= ~1;
12567     }
12568 
12569     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12570     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12571     public override bool Equals(object other) {
12572       return Equals(other as TestMutualRecursionB);
12573     }
12574 
12575     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12576     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestMutualRecursionB other)12577     public bool Equals(TestMutualRecursionB other) {
12578       if (ReferenceEquals(other, null)) {
12579         return false;
12580       }
12581       if (ReferenceEquals(other, this)) {
12582         return true;
12583       }
12584       if (!object.Equals(A, other.A)) return false;
12585       if (OptionalInt32 != other.OptionalInt32) return false;
12586       return Equals(_unknownFields, other._unknownFields);
12587     }
12588 
12589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12590     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12591     public override int GetHashCode() {
12592       int hash = 1;
12593       if (a_ != null) hash ^= A.GetHashCode();
12594       if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
12595       if (_unknownFields != null) {
12596         hash ^= _unknownFields.GetHashCode();
12597       }
12598       return hash;
12599     }
12600 
12601     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12602     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12603     public override string ToString() {
12604       return pb::JsonFormatter.ToDiagnosticString(this);
12605     }
12606 
12607     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12608     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12609     public void WriteTo(pb::CodedOutputStream output) {
12610     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12611       output.WriteRawMessage(this);
12612     #else
12613       if (a_ != null) {
12614         output.WriteRawTag(10);
12615         output.WriteMessage(A);
12616       }
12617       if (HasOptionalInt32) {
12618         output.WriteRawTag(16);
12619         output.WriteInt32(OptionalInt32);
12620       }
12621       if (_unknownFields != null) {
12622         _unknownFields.WriteTo(output);
12623       }
12624     #endif
12625     }
12626 
12627     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12628     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12629     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12630     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12631       if (a_ != null) {
12632         output.WriteRawTag(10);
12633         output.WriteMessage(A);
12634       }
12635       if (HasOptionalInt32) {
12636         output.WriteRawTag(16);
12637         output.WriteInt32(OptionalInt32);
12638       }
12639       if (_unknownFields != null) {
12640         _unknownFields.WriteTo(ref output);
12641       }
12642     }
12643     #endif
12644 
12645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12646     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12647     public int CalculateSize() {
12648       int size = 0;
12649       if (a_ != null) {
12650         size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
12651       }
12652       if (HasOptionalInt32) {
12653         size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
12654       }
12655       if (_unknownFields != null) {
12656         size += _unknownFields.CalculateSize();
12657       }
12658       return size;
12659     }
12660 
12661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12662     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestMutualRecursionB other)12663     public void MergeFrom(TestMutualRecursionB other) {
12664       if (other == null) {
12665         return;
12666       }
12667       if (other.a_ != null) {
12668         if (a_ == null) {
12669           A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
12670         }
12671         A.MergeFrom(other.A);
12672       }
12673       if (other.HasOptionalInt32) {
12674         OptionalInt32 = other.OptionalInt32;
12675       }
12676       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12677     }
12678 
12679     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12680     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12681     public void MergeFrom(pb::CodedInputStream input) {
12682     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12683       input.ReadRawMessage(this);
12684     #else
12685       uint tag;
12686       while ((tag = input.ReadTag()) != 0) {
12687         switch(tag) {
12688           default:
12689             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12690             break;
12691           case 10: {
12692             if (a_ == null) {
12693               A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
12694             }
12695             input.ReadMessage(A);
12696             break;
12697           }
12698           case 16: {
12699             OptionalInt32 = input.ReadInt32();
12700             break;
12701           }
12702         }
12703       }
12704     #endif
12705     }
12706 
12707     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12710     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12711       uint tag;
12712       while ((tag = input.ReadTag()) != 0) {
12713         switch(tag) {
12714           default:
12715             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12716             break;
12717           case 10: {
12718             if (a_ == null) {
12719               A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
12720             }
12721             input.ReadMessage(A);
12722             break;
12723           }
12724           case 16: {
12725             OptionalInt32 = input.ReadInt32();
12726             break;
12727           }
12728         }
12729       }
12730     }
12731     #endif
12732 
12733   }
12734 
12735   public sealed partial class TestIsInitialized : pb::IMessage<TestIsInitialized>
12736   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12737       , pb::IBufferMessage
12738   #endif
12739   {
12740     private static readonly pb::MessageParser<TestIsInitialized> _parser = new pb::MessageParser<TestIsInitialized>(() => new TestIsInitialized());
12741     private pb::UnknownFieldSet _unknownFields;
12742     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12743     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12744     public static pb::MessageParser<TestIsInitialized> Parser { get { return _parser; } }
12745 
12746     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12747     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12748     public static pbr::MessageDescriptor Descriptor {
12749       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[23]; }
12750     }
12751 
12752     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12753     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12754     pbr::MessageDescriptor pb::IMessage.Descriptor {
12755       get { return Descriptor; }
12756     }
12757 
12758     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12759     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestIsInitialized()12760     public TestIsInitialized() {
12761       OnConstruction();
12762     }
12763 
OnConstruction()12764     partial void OnConstruction();
12765 
12766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12767     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestIsInitialized(TestIsInitialized other)12768     public TestIsInitialized(TestIsInitialized other) : this() {
12769       subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
12770       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12771     }
12772 
12773     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12774     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12775     public TestIsInitialized Clone() {
12776       return new TestIsInitialized(this);
12777     }
12778 
12779     /// <summary>Field number for the "sub_message" field.</summary>
12780     public const int SubMessageFieldNumber = 1;
12781     private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage subMessage_;
12782     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12783     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12784     public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage SubMessage {
12785       get { return subMessage_; }
12786       set {
12787         subMessage_ = value;
12788       }
12789     }
12790 
12791     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12792     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12793     public override bool Equals(object other) {
12794       return Equals(other as TestIsInitialized);
12795     }
12796 
12797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestIsInitialized other)12799     public bool Equals(TestIsInitialized other) {
12800       if (ReferenceEquals(other, null)) {
12801         return false;
12802       }
12803       if (ReferenceEquals(other, this)) {
12804         return true;
12805       }
12806       if (!object.Equals(SubMessage, other.SubMessage)) return false;
12807       return Equals(_unknownFields, other._unknownFields);
12808     }
12809 
12810     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12811     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12812     public override int GetHashCode() {
12813       int hash = 1;
12814       if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
12815       if (_unknownFields != null) {
12816         hash ^= _unknownFields.GetHashCode();
12817       }
12818       return hash;
12819     }
12820 
12821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12822     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12823     public override string ToString() {
12824       return pb::JsonFormatter.ToDiagnosticString(this);
12825     }
12826 
12827     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12828     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12829     public void WriteTo(pb::CodedOutputStream output) {
12830     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12831       output.WriteRawMessage(this);
12832     #else
12833       if (subMessage_ != null) {
12834         output.WriteRawTag(10);
12835         output.WriteMessage(SubMessage);
12836       }
12837       if (_unknownFields != null) {
12838         _unknownFields.WriteTo(output);
12839       }
12840     #endif
12841     }
12842 
12843     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12844     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12845     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12846     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12847       if (subMessage_ != null) {
12848         output.WriteRawTag(10);
12849         output.WriteMessage(SubMessage);
12850       }
12851       if (_unknownFields != null) {
12852         _unknownFields.WriteTo(ref output);
12853       }
12854     }
12855     #endif
12856 
12857     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12858     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12859     public int CalculateSize() {
12860       int size = 0;
12861       if (subMessage_ != null) {
12862         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
12863       }
12864       if (_unknownFields != null) {
12865         size += _unknownFields.CalculateSize();
12866       }
12867       return size;
12868     }
12869 
12870     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12871     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestIsInitialized other)12872     public void MergeFrom(TestIsInitialized other) {
12873       if (other == null) {
12874         return;
12875       }
12876       if (other.subMessage_ != null) {
12877         if (subMessage_ == null) {
12878           SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
12879         }
12880         SubMessage.MergeFrom(other.SubMessage);
12881       }
12882       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12883     }
12884 
12885     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12886     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12887     public void MergeFrom(pb::CodedInputStream input) {
12888     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12889       input.ReadRawMessage(this);
12890     #else
12891       uint tag;
12892       while ((tag = input.ReadTag()) != 0) {
12893         switch(tag) {
12894           default:
12895             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12896             break;
12897           case 10: {
12898             if (subMessage_ == null) {
12899               SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
12900             }
12901             input.ReadMessage(SubMessage);
12902             break;
12903           }
12904         }
12905       }
12906     #endif
12907     }
12908 
12909     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12910     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12911     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12912     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12913       uint tag;
12914       while ((tag = input.ReadTag()) != 0) {
12915         switch(tag) {
12916           default:
12917             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12918             break;
12919           case 10: {
12920             if (subMessage_ == null) {
12921               SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
12922             }
12923             input.ReadMessage(SubMessage);
12924             break;
12925           }
12926         }
12927       }
12928     }
12929     #endif
12930 
12931     #region Nested types
12932     /// <summary>Container for nested types declared in the TestIsInitialized message type.</summary>
12933     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12934     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12935     public static partial class Types {
12936       public sealed partial class SubMessage : pb::IMessage<SubMessage>
12937       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12938           , pb::IBufferMessage
12939       #endif
12940       {
12941         private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
12942         private pb::UnknownFieldSet _unknownFields;
12943         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12944         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12945         public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
12946 
12947         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12948         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12949         public static pbr::MessageDescriptor Descriptor {
12950           get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Descriptor.NestedTypes[0]; }
12951         }
12952 
12953         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12954         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12955         pbr::MessageDescriptor pb::IMessage.Descriptor {
12956           get { return Descriptor; }
12957         }
12958 
12959         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12960         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubMessage()12961         public SubMessage() {
12962           OnConstruction();
12963         }
12964 
OnConstruction()12965         partial void OnConstruction();
12966 
12967         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12968         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubMessage(SubMessage other)12969         public SubMessage(SubMessage other) : this() {
12970           subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
12971           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12972         }
12973 
12974         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12975         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12976         public SubMessage Clone() {
12977           return new SubMessage(this);
12978         }
12979 
12980         /// <summary>Field number for the "subgroup" field.</summary>
12981         public const int SubGroupFieldNumber = 1;
12982         private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup subGroup_;
12983         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12984         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12985         public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup SubGroup {
12986           get { return subGroup_; }
12987           set {
12988             subGroup_ = value;
12989           }
12990         }
12991         /// <summary>Gets whether the subgroup field is set</summary>
12992         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12993         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12994         public bool HasSubGroup {
12995           get { return subGroup_ != null; }
12996         }
12997         /// <summary>Clears the value of the subgroup field</summary>
12998         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12999         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSubGroup()13000         public void ClearSubGroup() {
13001           subGroup_ = null;
13002         }
13003 
13004         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13005         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13006         public override bool Equals(object other) {
13007           return Equals(other as SubMessage);
13008         }
13009 
13010         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13011         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(SubMessage other)13012         public bool Equals(SubMessage other) {
13013           if (ReferenceEquals(other, null)) {
13014             return false;
13015           }
13016           if (ReferenceEquals(other, this)) {
13017             return true;
13018           }
13019           if (!object.Equals(SubGroup, other.SubGroup)) return false;
13020           return Equals(_unknownFields, other._unknownFields);
13021         }
13022 
13023         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13024         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()13025         public override int GetHashCode() {
13026           int hash = 1;
13027           if (HasSubGroup) hash ^= SubGroup.GetHashCode();
13028           if (_unknownFields != null) {
13029             hash ^= _unknownFields.GetHashCode();
13030           }
13031           return hash;
13032         }
13033 
13034         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13035         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()13036         public override string ToString() {
13037           return pb::JsonFormatter.ToDiagnosticString(this);
13038         }
13039 
13040         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13041         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)13042         public void WriteTo(pb::CodedOutputStream output) {
13043         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13044           output.WriteRawMessage(this);
13045         #else
13046           if (HasSubGroup) {
13047             output.WriteRawTag(11);
13048             output.WriteGroup(SubGroup);
13049             output.WriteRawTag(12);
13050           }
13051           if (_unknownFields != null) {
13052             _unknownFields.WriteTo(output);
13053           }
13054         #endif
13055         }
13056 
13057         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13058         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13059         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13060         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13061           if (HasSubGroup) {
13062             output.WriteRawTag(11);
13063             output.WriteGroup(SubGroup);
13064             output.WriteRawTag(12);
13065           }
13066           if (_unknownFields != null) {
13067             _unknownFields.WriteTo(ref output);
13068           }
13069         }
13070         #endif
13071 
13072         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13073         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()13074         public int CalculateSize() {
13075           int size = 0;
13076           if (HasSubGroup) {
13077             size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
13078           }
13079           if (_unknownFields != null) {
13080             size += _unknownFields.CalculateSize();
13081           }
13082           return size;
13083         }
13084 
13085         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13086         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(SubMessage other)13087         public void MergeFrom(SubMessage other) {
13088           if (other == null) {
13089             return;
13090           }
13091           if (other.HasSubGroup) {
13092             if (!HasSubGroup) {
13093               SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
13094             }
13095             SubGroup.MergeFrom(other.SubGroup);
13096           }
13097           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13098         }
13099 
13100         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13101         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)13102         public void MergeFrom(pb::CodedInputStream input) {
13103         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13104           input.ReadRawMessage(this);
13105         #else
13106           uint tag;
13107           while ((tag = input.ReadTag()) != 0) {
13108             switch(tag) {
13109               default:
13110                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13111                 break;
13112               case 11: {
13113                 if (!HasSubGroup) {
13114                   SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
13115                 }
13116                 input.ReadGroup(SubGroup);
13117                 break;
13118               }
13119             }
13120           }
13121         #endif
13122         }
13123 
13124         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13125         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13126         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13127         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
13128           uint tag;
13129           while ((tag = input.ReadTag()) != 0) {
13130             switch(tag) {
13131               default:
13132                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
13133                 break;
13134               case 11: {
13135                 if (!HasSubGroup) {
13136                   SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
13137                 }
13138                 input.ReadGroup(SubGroup);
13139                 break;
13140               }
13141             }
13142           }
13143         }
13144         #endif
13145 
13146         #region Nested types
13147         /// <summary>Container for nested types declared in the SubMessage message type.</summary>
13148         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13149         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13150         public static partial class Types {
13151           public sealed partial class SubGroup : pb::IMessage<SubGroup>
13152           #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13153               , pb::IBufferMessage
13154           #endif
13155           {
13156             private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
13157             private pb::UnknownFieldSet _unknownFields;
13158             private int _hasBits0;
13159             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13160             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13161             public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
13162 
13163             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13164             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13165             public static pbr::MessageDescriptor Descriptor {
13166               get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Descriptor.NestedTypes[0]; }
13167             }
13168 
13169             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13170             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13171             pbr::MessageDescriptor pb::IMessage.Descriptor {
13172               get { return Descriptor; }
13173             }
13174 
13175             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13176             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubGroup()13177             public SubGroup() {
13178               OnConstruction();
13179             }
13180 
OnConstruction()13181             partial void OnConstruction();
13182 
13183             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13184             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SubGroup(SubGroup other)13185             public SubGroup(SubGroup other) : this() {
13186               _hasBits0 = other._hasBits0;
13187               i_ = other.i_;
13188               _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13189             }
13190 
13191             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13192             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13193             public SubGroup Clone() {
13194               return new SubGroup(this);
13195             }
13196 
13197             /// <summary>Field number for the "i" field.</summary>
13198             public const int IFieldNumber = 2;
13199             private readonly static int IDefaultValue = 0;
13200 
13201             private int i_;
13202             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13203             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13204             public int I {
13205               get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
13206               set {
13207                 _hasBits0 |= 1;
13208                 i_ = value;
13209               }
13210             }
13211             /// <summary>Gets whether the "i" field is set</summary>
13212             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13213             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13214             public bool HasI {
13215               get { return (_hasBits0 & 1) != 0; }
13216             }
13217             /// <summary>Clears the value of the "i" field</summary>
13218             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13219             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearI()13220             public void ClearI() {
13221               _hasBits0 &= ~1;
13222             }
13223 
13224             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13225             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13226             public override bool Equals(object other) {
13227               return Equals(other as SubGroup);
13228             }
13229 
13230             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13231             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(SubGroup other)13232             public bool Equals(SubGroup other) {
13233               if (ReferenceEquals(other, null)) {
13234                 return false;
13235               }
13236               if (ReferenceEquals(other, this)) {
13237                 return true;
13238               }
13239               if (I != other.I) return false;
13240               return Equals(_unknownFields, other._unknownFields);
13241             }
13242 
13243             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13244             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()13245             public override int GetHashCode() {
13246               int hash = 1;
13247               if (HasI) hash ^= I.GetHashCode();
13248               if (_unknownFields != null) {
13249                 hash ^= _unknownFields.GetHashCode();
13250               }
13251               return hash;
13252             }
13253 
13254             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13255             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()13256             public override string ToString() {
13257               return pb::JsonFormatter.ToDiagnosticString(this);
13258             }
13259 
13260             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13261             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)13262             public void WriteTo(pb::CodedOutputStream output) {
13263             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13264               output.WriteRawMessage(this);
13265             #else
13266               if (HasI) {
13267                 output.WriteRawTag(16);
13268                 output.WriteInt32(I);
13269               }
13270               if (_unknownFields != null) {
13271                 _unknownFields.WriteTo(output);
13272               }
13273             #endif
13274             }
13275 
13276             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13277             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13278             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13279             void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13280               if (HasI) {
13281                 output.WriteRawTag(16);
13282                 output.WriteInt32(I);
13283               }
13284               if (_unknownFields != null) {
13285                 _unknownFields.WriteTo(ref output);
13286               }
13287             }
13288             #endif
13289 
13290             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13291             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()13292             public int CalculateSize() {
13293               int size = 0;
13294               if (HasI) {
13295                 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
13296               }
13297               if (_unknownFields != null) {
13298                 size += _unknownFields.CalculateSize();
13299               }
13300               return size;
13301             }
13302 
13303             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13304             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(SubGroup other)13305             public void MergeFrom(SubGroup other) {
13306               if (other == null) {
13307                 return;
13308               }
13309               if (other.HasI) {
13310                 I = other.I;
13311               }
13312               _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13313             }
13314 
13315             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13316             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)13317             public void MergeFrom(pb::CodedInputStream input) {
13318             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13319               input.ReadRawMessage(this);
13320             #else
13321               uint tag;
13322               while ((tag = input.ReadTag()) != 0) {
13323                 switch(tag) {
13324                   case 12:
13325                     return;
13326                   default:
13327                     _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13328                     break;
13329                   case 16: {
13330                     I = input.ReadInt32();
13331                     break;
13332                   }
13333                 }
13334               }
13335             #endif
13336             }
13337 
13338             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13339             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13340             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13341             void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
13342               uint tag;
13343               while ((tag = input.ReadTag()) != 0) {
13344                 switch(tag) {
13345                   case 12:
13346                     return;
13347                   default:
13348                     _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
13349                     break;
13350                   case 16: {
13351                     I = input.ReadInt32();
13352                     break;
13353                   }
13354                 }
13355               }
13356             }
13357             #endif
13358 
13359           }
13360 
13361         }
13362         #endregion
13363 
13364       }
13365 
13366     }
13367     #endregion
13368 
13369   }
13370 
13371   /// <summary>
13372   /// Test that groups have disjoint field numbers from their siblings and
13373   /// parents.  This is NOT possible in proto1; only google.protobuf.  When attempting
13374   /// to compile with proto1, this will emit an error; so we only include it
13375   /// in protobuf_unittest_proto.
13376   /// </summary>
13377   public sealed partial class TestDupFieldNumber : pb::IMessage<TestDupFieldNumber>
13378   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13379       , pb::IBufferMessage
13380   #endif
13381   {
13382     private static readonly pb::MessageParser<TestDupFieldNumber> _parser = new pb::MessageParser<TestDupFieldNumber>(() => new TestDupFieldNumber());
13383     private pb::UnknownFieldSet _unknownFields;
13384     private int _hasBits0;
13385     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13386     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13387     public static pb::MessageParser<TestDupFieldNumber> Parser { get { return _parser; } }
13388 
13389     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13390     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13391     public static pbr::MessageDescriptor Descriptor {
13392       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[24]; }
13393     }
13394 
13395     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13396     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13397     pbr::MessageDescriptor pb::IMessage.Descriptor {
13398       get { return Descriptor; }
13399     }
13400 
13401     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13402     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDupFieldNumber()13403     public TestDupFieldNumber() {
13404       OnConstruction();
13405     }
13406 
OnConstruction()13407     partial void OnConstruction();
13408 
13409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13410     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDupFieldNumber(TestDupFieldNumber other)13411     public TestDupFieldNumber(TestDupFieldNumber other) : this() {
13412       _hasBits0 = other._hasBits0;
13413       a_ = other.a_;
13414       foo_ = other.HasFoo ? other.foo_.Clone() : null;
13415       bar_ = other.HasBar ? other.bar_.Clone() : null;
13416       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13417     }
13418 
13419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13420     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13421     public TestDupFieldNumber Clone() {
13422       return new TestDupFieldNumber(this);
13423     }
13424 
13425     /// <summary>Field number for the "a" field.</summary>
13426     public const int AFieldNumber = 1;
13427     private readonly static int ADefaultValue = 0;
13428 
13429     private int a_;
13430     /// <summary>
13431     /// NO_PROTO1
13432     /// </summary>
13433     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13434     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13435     public int A {
13436       get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
13437       set {
13438         _hasBits0 |= 1;
13439         a_ = value;
13440       }
13441     }
13442     /// <summary>Gets whether the "a" field is set</summary>
13443     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13444     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13445     public bool HasA {
13446       get { return (_hasBits0 & 1) != 0; }
13447     }
13448     /// <summary>Clears the value of the "a" field</summary>
13449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13450     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()13451     public void ClearA() {
13452       _hasBits0 &= ~1;
13453     }
13454 
13455     /// <summary>Field number for the "foo" field.</summary>
13456     public const int FooFieldNumber = 2;
13457     private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo foo_;
13458     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13459     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13460     public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo Foo {
13461       get { return foo_; }
13462       set {
13463         foo_ = value;
13464       }
13465     }
13466     /// <summary>Gets whether the foo field is set</summary>
13467     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13468     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13469     public bool HasFoo {
13470       get { return foo_ != null; }
13471     }
13472     /// <summary>Clears the value of the foo field</summary>
13473     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13474     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFoo()13475     public void ClearFoo() {
13476       foo_ = null;
13477     }
13478 
13479     /// <summary>Field number for the "bar" field.</summary>
13480     public const int BarFieldNumber = 3;
13481     private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar bar_;
13482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13483     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13484     public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar Bar {
13485       get { return bar_; }
13486       set {
13487         bar_ = value;
13488       }
13489     }
13490     /// <summary>Gets whether the bar field is set</summary>
13491     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13492     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13493     public bool HasBar {
13494       get { return bar_ != null; }
13495     }
13496     /// <summary>Clears the value of the bar field</summary>
13497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13498     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBar()13499     public void ClearBar() {
13500       bar_ = null;
13501     }
13502 
13503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13504     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13505     public override bool Equals(object other) {
13506       return Equals(other as TestDupFieldNumber);
13507     }
13508 
13509     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13510     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestDupFieldNumber other)13511     public bool Equals(TestDupFieldNumber other) {
13512       if (ReferenceEquals(other, null)) {
13513         return false;
13514       }
13515       if (ReferenceEquals(other, this)) {
13516         return true;
13517       }
13518       if (A != other.A) return false;
13519       if (!object.Equals(Foo, other.Foo)) return false;
13520       if (!object.Equals(Bar, other.Bar)) return false;
13521       return Equals(_unknownFields, other._unknownFields);
13522     }
13523 
13524     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13525     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()13526     public override int GetHashCode() {
13527       int hash = 1;
13528       if (HasA) hash ^= A.GetHashCode();
13529       if (HasFoo) hash ^= Foo.GetHashCode();
13530       if (HasBar) hash ^= Bar.GetHashCode();
13531       if (_unknownFields != null) {
13532         hash ^= _unknownFields.GetHashCode();
13533       }
13534       return hash;
13535     }
13536 
13537     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13538     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()13539     public override string ToString() {
13540       return pb::JsonFormatter.ToDiagnosticString(this);
13541     }
13542 
13543     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13544     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)13545     public void WriteTo(pb::CodedOutputStream output) {
13546     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13547       output.WriteRawMessage(this);
13548     #else
13549       if (HasA) {
13550         output.WriteRawTag(8);
13551         output.WriteInt32(A);
13552       }
13553       if (HasFoo) {
13554         output.WriteRawTag(19);
13555         output.WriteGroup(Foo);
13556         output.WriteRawTag(20);
13557       }
13558       if (HasBar) {
13559         output.WriteRawTag(27);
13560         output.WriteGroup(Bar);
13561         output.WriteRawTag(28);
13562       }
13563       if (_unknownFields != null) {
13564         _unknownFields.WriteTo(output);
13565       }
13566     #endif
13567     }
13568 
13569     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13571     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13572     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13573       if (HasA) {
13574         output.WriteRawTag(8);
13575         output.WriteInt32(A);
13576       }
13577       if (HasFoo) {
13578         output.WriteRawTag(19);
13579         output.WriteGroup(Foo);
13580         output.WriteRawTag(20);
13581       }
13582       if (HasBar) {
13583         output.WriteRawTag(27);
13584         output.WriteGroup(Bar);
13585         output.WriteRawTag(28);
13586       }
13587       if (_unknownFields != null) {
13588         _unknownFields.WriteTo(ref output);
13589       }
13590     }
13591     #endif
13592 
13593     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13594     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()13595     public int CalculateSize() {
13596       int size = 0;
13597       if (HasA) {
13598         size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
13599       }
13600       if (HasFoo) {
13601         size += 2 + pb::CodedOutputStream.ComputeGroupSize(Foo);
13602       }
13603       if (HasBar) {
13604         size += 2 + pb::CodedOutputStream.ComputeGroupSize(Bar);
13605       }
13606       if (_unknownFields != null) {
13607         size += _unknownFields.CalculateSize();
13608       }
13609       return size;
13610     }
13611 
13612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13613     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestDupFieldNumber other)13614     public void MergeFrom(TestDupFieldNumber other) {
13615       if (other == null) {
13616         return;
13617       }
13618       if (other.HasA) {
13619         A = other.A;
13620       }
13621       if (other.HasFoo) {
13622         if (!HasFoo) {
13623           Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
13624         }
13625         Foo.MergeFrom(other.Foo);
13626       }
13627       if (other.HasBar) {
13628         if (!HasBar) {
13629           Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
13630         }
13631         Bar.MergeFrom(other.Bar);
13632       }
13633       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13634     }
13635 
13636     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13637     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)13638     public void MergeFrom(pb::CodedInputStream input) {
13639     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13640       input.ReadRawMessage(this);
13641     #else
13642       uint tag;
13643       while ((tag = input.ReadTag()) != 0) {
13644         switch(tag) {
13645           default:
13646             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13647             break;
13648           case 8: {
13649             A = input.ReadInt32();
13650             break;
13651           }
13652           case 19: {
13653             if (!HasFoo) {
13654               Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
13655             }
13656             input.ReadGroup(Foo);
13657             break;
13658           }
13659           case 27: {
13660             if (!HasBar) {
13661               Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
13662             }
13663             input.ReadGroup(Bar);
13664             break;
13665           }
13666         }
13667       }
13668     #endif
13669     }
13670 
13671     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13673     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13674     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
13675       uint tag;
13676       while ((tag = input.ReadTag()) != 0) {
13677         switch(tag) {
13678           default:
13679             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
13680             break;
13681           case 8: {
13682             A = input.ReadInt32();
13683             break;
13684           }
13685           case 19: {
13686             if (!HasFoo) {
13687               Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
13688             }
13689             input.ReadGroup(Foo);
13690             break;
13691           }
13692           case 27: {
13693             if (!HasBar) {
13694               Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
13695             }
13696             input.ReadGroup(Bar);
13697             break;
13698           }
13699         }
13700       }
13701     }
13702     #endif
13703 
13704     #region Nested types
13705     /// <summary>Container for nested types declared in the TestDupFieldNumber message type.</summary>
13706     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13707     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13708     public static partial class Types {
13709       public sealed partial class Foo : pb::IMessage<Foo>
13710       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13711           , pb::IBufferMessage
13712       #endif
13713       {
13714         private static readonly pb::MessageParser<Foo> _parser = new pb::MessageParser<Foo>(() => new Foo());
13715         private pb::UnknownFieldSet _unknownFields;
13716         private int _hasBits0;
13717         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13718         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13719         public static pb::MessageParser<Foo> Parser { get { return _parser; } }
13720 
13721         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13722         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13723         public static pbr::MessageDescriptor Descriptor {
13724           get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[0]; }
13725         }
13726 
13727         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13728         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13729         pbr::MessageDescriptor pb::IMessage.Descriptor {
13730           get { return Descriptor; }
13731         }
13732 
13733         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13734         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Foo()13735         public Foo() {
13736           OnConstruction();
13737         }
13738 
OnConstruction()13739         partial void OnConstruction();
13740 
13741         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13742         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Foo(Foo other)13743         public Foo(Foo other) : this() {
13744           _hasBits0 = other._hasBits0;
13745           a_ = other.a_;
13746           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13747         }
13748 
13749         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13750         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13751         public Foo Clone() {
13752           return new Foo(this);
13753         }
13754 
13755         /// <summary>Field number for the "a" field.</summary>
13756         public const int AFieldNumber = 1;
13757         private readonly static int ADefaultValue = 0;
13758 
13759         private int a_;
13760         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13761         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13762         public int A {
13763           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
13764           set {
13765             _hasBits0 |= 1;
13766             a_ = value;
13767           }
13768         }
13769         /// <summary>Gets whether the "a" field is set</summary>
13770         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13771         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13772         public bool HasA {
13773           get { return (_hasBits0 & 1) != 0; }
13774         }
13775         /// <summary>Clears the value of the "a" field</summary>
13776         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13777         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()13778         public void ClearA() {
13779           _hasBits0 &= ~1;
13780         }
13781 
13782         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13783         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13784         public override bool Equals(object other) {
13785           return Equals(other as Foo);
13786         }
13787 
13788         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13789         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Foo other)13790         public bool Equals(Foo other) {
13791           if (ReferenceEquals(other, null)) {
13792             return false;
13793           }
13794           if (ReferenceEquals(other, this)) {
13795             return true;
13796           }
13797           if (A != other.A) return false;
13798           return Equals(_unknownFields, other._unknownFields);
13799         }
13800 
13801         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13802         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()13803         public override int GetHashCode() {
13804           int hash = 1;
13805           if (HasA) hash ^= A.GetHashCode();
13806           if (_unknownFields != null) {
13807             hash ^= _unknownFields.GetHashCode();
13808           }
13809           return hash;
13810         }
13811 
13812         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13813         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()13814         public override string ToString() {
13815           return pb::JsonFormatter.ToDiagnosticString(this);
13816         }
13817 
13818         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13819         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)13820         public void WriteTo(pb::CodedOutputStream output) {
13821         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13822           output.WriteRawMessage(this);
13823         #else
13824           if (HasA) {
13825             output.WriteRawTag(8);
13826             output.WriteInt32(A);
13827           }
13828           if (_unknownFields != null) {
13829             _unknownFields.WriteTo(output);
13830           }
13831         #endif
13832         }
13833 
13834         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13835         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13836         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13837         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13838           if (HasA) {
13839             output.WriteRawTag(8);
13840             output.WriteInt32(A);
13841           }
13842           if (_unknownFields != null) {
13843             _unknownFields.WriteTo(ref output);
13844           }
13845         }
13846         #endif
13847 
13848         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13849         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()13850         public int CalculateSize() {
13851           int size = 0;
13852           if (HasA) {
13853             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
13854           }
13855           if (_unknownFields != null) {
13856             size += _unknownFields.CalculateSize();
13857           }
13858           return size;
13859         }
13860 
13861         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13862         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Foo other)13863         public void MergeFrom(Foo other) {
13864           if (other == null) {
13865             return;
13866           }
13867           if (other.HasA) {
13868             A = other.A;
13869           }
13870           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13871         }
13872 
13873         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13874         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)13875         public void MergeFrom(pb::CodedInputStream input) {
13876         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13877           input.ReadRawMessage(this);
13878         #else
13879           uint tag;
13880           while ((tag = input.ReadTag()) != 0) {
13881             switch(tag) {
13882               case 20:
13883                 return;
13884               default:
13885                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13886                 break;
13887               case 8: {
13888                 A = input.ReadInt32();
13889                 break;
13890               }
13891             }
13892           }
13893         #endif
13894         }
13895 
13896         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13897         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13898         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13899         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
13900           uint tag;
13901           while ((tag = input.ReadTag()) != 0) {
13902             switch(tag) {
13903               case 20:
13904                 return;
13905               default:
13906                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
13907                 break;
13908               case 8: {
13909                 A = input.ReadInt32();
13910                 break;
13911               }
13912             }
13913           }
13914         }
13915         #endif
13916 
13917       }
13918 
13919       public sealed partial class Bar : pb::IMessage<Bar>
13920       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13921           , pb::IBufferMessage
13922       #endif
13923       {
13924         private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar());
13925         private pb::UnknownFieldSet _unknownFields;
13926         private int _hasBits0;
13927         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13928         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13929         public static pb::MessageParser<Bar> Parser { get { return _parser; } }
13930 
13931         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13932         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13933         public static pbr::MessageDescriptor Descriptor {
13934           get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[1]; }
13935         }
13936 
13937         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13938         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13939         pbr::MessageDescriptor pb::IMessage.Descriptor {
13940           get { return Descriptor; }
13941         }
13942 
13943         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13944         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Bar()13945         public Bar() {
13946           OnConstruction();
13947         }
13948 
OnConstruction()13949         partial void OnConstruction();
13950 
13951         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13952         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Bar(Bar other)13953         public Bar(Bar other) : this() {
13954           _hasBits0 = other._hasBits0;
13955           a_ = other.a_;
13956           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13957         }
13958 
13959         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13960         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13961         public Bar Clone() {
13962           return new Bar(this);
13963         }
13964 
13965         /// <summary>Field number for the "a" field.</summary>
13966         public const int AFieldNumber = 1;
13967         private readonly static int ADefaultValue = 0;
13968 
13969         private int a_;
13970         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13971         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13972         public int A {
13973           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
13974           set {
13975             _hasBits0 |= 1;
13976             a_ = value;
13977           }
13978         }
13979         /// <summary>Gets whether the "a" field is set</summary>
13980         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13981         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13982         public bool HasA {
13983           get { return (_hasBits0 & 1) != 0; }
13984         }
13985         /// <summary>Clears the value of the "a" field</summary>
13986         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13987         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()13988         public void ClearA() {
13989           _hasBits0 &= ~1;
13990         }
13991 
13992         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13993         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13994         public override bool Equals(object other) {
13995           return Equals(other as Bar);
13996         }
13997 
13998         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13999         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Bar other)14000         public bool Equals(Bar other) {
14001           if (ReferenceEquals(other, null)) {
14002             return false;
14003           }
14004           if (ReferenceEquals(other, this)) {
14005             return true;
14006           }
14007           if (A != other.A) return false;
14008           return Equals(_unknownFields, other._unknownFields);
14009         }
14010 
14011         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14012         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14013         public override int GetHashCode() {
14014           int hash = 1;
14015           if (HasA) hash ^= A.GetHashCode();
14016           if (_unknownFields != null) {
14017             hash ^= _unknownFields.GetHashCode();
14018           }
14019           return hash;
14020         }
14021 
14022         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14023         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14024         public override string ToString() {
14025           return pb::JsonFormatter.ToDiagnosticString(this);
14026         }
14027 
14028         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14029         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14030         public void WriteTo(pb::CodedOutputStream output) {
14031         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14032           output.WriteRawMessage(this);
14033         #else
14034           if (HasA) {
14035             output.WriteRawTag(8);
14036             output.WriteInt32(A);
14037           }
14038           if (_unknownFields != null) {
14039             _unknownFields.WriteTo(output);
14040           }
14041         #endif
14042         }
14043 
14044         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14045         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14046         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14047         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14048           if (HasA) {
14049             output.WriteRawTag(8);
14050             output.WriteInt32(A);
14051           }
14052           if (_unknownFields != null) {
14053             _unknownFields.WriteTo(ref output);
14054           }
14055         }
14056         #endif
14057 
14058         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14059         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14060         public int CalculateSize() {
14061           int size = 0;
14062           if (HasA) {
14063             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
14064           }
14065           if (_unknownFields != null) {
14066             size += _unknownFields.CalculateSize();
14067           }
14068           return size;
14069         }
14070 
14071         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14072         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Bar other)14073         public void MergeFrom(Bar other) {
14074           if (other == null) {
14075             return;
14076           }
14077           if (other.HasA) {
14078             A = other.A;
14079           }
14080           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14081         }
14082 
14083         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14084         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14085         public void MergeFrom(pb::CodedInputStream input) {
14086         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14087           input.ReadRawMessage(this);
14088         #else
14089           uint tag;
14090           while ((tag = input.ReadTag()) != 0) {
14091             switch(tag) {
14092               case 28:
14093                 return;
14094               default:
14095                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14096                 break;
14097               case 8: {
14098                 A = input.ReadInt32();
14099                 break;
14100               }
14101             }
14102           }
14103         #endif
14104         }
14105 
14106         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14107         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14108         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14109         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14110           uint tag;
14111           while ((tag = input.ReadTag()) != 0) {
14112             switch(tag) {
14113               case 28:
14114                 return;
14115               default:
14116                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14117                 break;
14118               case 8: {
14119                 A = input.ReadInt32();
14120                 break;
14121               }
14122             }
14123           }
14124         }
14125         #endif
14126 
14127       }
14128 
14129     }
14130     #endregion
14131 
14132   }
14133 
14134   /// <summary>
14135   /// Additional messages for testing lazy fields.
14136   /// </summary>
14137   public sealed partial class TestEagerMessage : pb::IMessage<TestEagerMessage>
14138   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14139       , pb::IBufferMessage
14140   #endif
14141   {
14142     private static readonly pb::MessageParser<TestEagerMessage> _parser = new pb::MessageParser<TestEagerMessage>(() => new TestEagerMessage());
14143     private pb::UnknownFieldSet _unknownFields;
14144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14145     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14146     public static pb::MessageParser<TestEagerMessage> Parser { get { return _parser; } }
14147 
14148     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14149     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14150     public static pbr::MessageDescriptor Descriptor {
14151       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[25]; }
14152     }
14153 
14154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14155     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14156     pbr::MessageDescriptor pb::IMessage.Descriptor {
14157       get { return Descriptor; }
14158     }
14159 
14160     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14161     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestEagerMessage()14162     public TestEagerMessage() {
14163       OnConstruction();
14164     }
14165 
OnConstruction()14166     partial void OnConstruction();
14167 
14168     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14169     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestEagerMessage(TestEagerMessage other)14170     public TestEagerMessage(TestEagerMessage other) : this() {
14171       subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
14172       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14173     }
14174 
14175     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14176     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()14177     public TestEagerMessage Clone() {
14178       return new TestEagerMessage(this);
14179     }
14180 
14181     /// <summary>Field number for the "sub_message" field.</summary>
14182     public const int SubMessageFieldNumber = 1;
14183     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
14184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14185     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14186     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
14187       get { return subMessage_; }
14188       set {
14189         subMessage_ = value;
14190       }
14191     }
14192 
14193     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14194     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)14195     public override bool Equals(object other) {
14196       return Equals(other as TestEagerMessage);
14197     }
14198 
14199     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14200     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestEagerMessage other)14201     public bool Equals(TestEagerMessage other) {
14202       if (ReferenceEquals(other, null)) {
14203         return false;
14204       }
14205       if (ReferenceEquals(other, this)) {
14206         return true;
14207       }
14208       if (!object.Equals(SubMessage, other.SubMessage)) return false;
14209       return Equals(_unknownFields, other._unknownFields);
14210     }
14211 
14212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14213     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14214     public override int GetHashCode() {
14215       int hash = 1;
14216       if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
14217       if (_unknownFields != null) {
14218         hash ^= _unknownFields.GetHashCode();
14219       }
14220       return hash;
14221     }
14222 
14223     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14224     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14225     public override string ToString() {
14226       return pb::JsonFormatter.ToDiagnosticString(this);
14227     }
14228 
14229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14230     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14231     public void WriteTo(pb::CodedOutputStream output) {
14232     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14233       output.WriteRawMessage(this);
14234     #else
14235       if (subMessage_ != null) {
14236         output.WriteRawTag(10);
14237         output.WriteMessage(SubMessage);
14238       }
14239       if (_unknownFields != null) {
14240         _unknownFields.WriteTo(output);
14241       }
14242     #endif
14243     }
14244 
14245     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14248     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14249       if (subMessage_ != null) {
14250         output.WriteRawTag(10);
14251         output.WriteMessage(SubMessage);
14252       }
14253       if (_unknownFields != null) {
14254         _unknownFields.WriteTo(ref output);
14255       }
14256     }
14257     #endif
14258 
14259     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14260     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14261     public int CalculateSize() {
14262       int size = 0;
14263       if (subMessage_ != null) {
14264         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
14265       }
14266       if (_unknownFields != null) {
14267         size += _unknownFields.CalculateSize();
14268       }
14269       return size;
14270     }
14271 
14272     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14273     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestEagerMessage other)14274     public void MergeFrom(TestEagerMessage other) {
14275       if (other == null) {
14276         return;
14277       }
14278       if (other.subMessage_ != null) {
14279         if (subMessage_ == null) {
14280           SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14281         }
14282         SubMessage.MergeFrom(other.SubMessage);
14283       }
14284       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14285     }
14286 
14287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14288     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14289     public void MergeFrom(pb::CodedInputStream input) {
14290     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14291       input.ReadRawMessage(this);
14292     #else
14293       uint tag;
14294       while ((tag = input.ReadTag()) != 0) {
14295         switch(tag) {
14296           default:
14297             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14298             break;
14299           case 10: {
14300             if (subMessage_ == null) {
14301               SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14302             }
14303             input.ReadMessage(SubMessage);
14304             break;
14305           }
14306         }
14307       }
14308     #endif
14309     }
14310 
14311     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14312     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14313     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14314     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14315       uint tag;
14316       while ((tag = input.ReadTag()) != 0) {
14317         switch(tag) {
14318           default:
14319             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14320             break;
14321           case 10: {
14322             if (subMessage_ == null) {
14323               SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14324             }
14325             input.ReadMessage(SubMessage);
14326             break;
14327           }
14328         }
14329       }
14330     }
14331     #endif
14332 
14333   }
14334 
14335   public sealed partial class TestLazyMessage : pb::IMessage<TestLazyMessage>
14336   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14337       , pb::IBufferMessage
14338   #endif
14339   {
14340     private static readonly pb::MessageParser<TestLazyMessage> _parser = new pb::MessageParser<TestLazyMessage>(() => new TestLazyMessage());
14341     private pb::UnknownFieldSet _unknownFields;
14342     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14343     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14344     public static pb::MessageParser<TestLazyMessage> Parser { get { return _parser; } }
14345 
14346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14348     public static pbr::MessageDescriptor Descriptor {
14349       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[26]; }
14350     }
14351 
14352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14354     pbr::MessageDescriptor pb::IMessage.Descriptor {
14355       get { return Descriptor; }
14356     }
14357 
14358     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14359     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestLazyMessage()14360     public TestLazyMessage() {
14361       OnConstruction();
14362     }
14363 
OnConstruction()14364     partial void OnConstruction();
14365 
14366     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14367     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestLazyMessage(TestLazyMessage other)14368     public TestLazyMessage(TestLazyMessage other) : this() {
14369       subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
14370       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14371     }
14372 
14373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()14375     public TestLazyMessage Clone() {
14376       return new TestLazyMessage(this);
14377     }
14378 
14379     /// <summary>Field number for the "sub_message" field.</summary>
14380     public const int SubMessageFieldNumber = 1;
14381     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
14382     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14383     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14384     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
14385       get { return subMessage_; }
14386       set {
14387         subMessage_ = value;
14388       }
14389     }
14390 
14391     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14392     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)14393     public override bool Equals(object other) {
14394       return Equals(other as TestLazyMessage);
14395     }
14396 
14397     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14398     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestLazyMessage other)14399     public bool Equals(TestLazyMessage other) {
14400       if (ReferenceEquals(other, null)) {
14401         return false;
14402       }
14403       if (ReferenceEquals(other, this)) {
14404         return true;
14405       }
14406       if (!object.Equals(SubMessage, other.SubMessage)) return false;
14407       return Equals(_unknownFields, other._unknownFields);
14408     }
14409 
14410     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14411     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14412     public override int GetHashCode() {
14413       int hash = 1;
14414       if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
14415       if (_unknownFields != null) {
14416         hash ^= _unknownFields.GetHashCode();
14417       }
14418       return hash;
14419     }
14420 
14421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14422     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14423     public override string ToString() {
14424       return pb::JsonFormatter.ToDiagnosticString(this);
14425     }
14426 
14427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14428     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14429     public void WriteTo(pb::CodedOutputStream output) {
14430     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14431       output.WriteRawMessage(this);
14432     #else
14433       if (subMessage_ != null) {
14434         output.WriteRawTag(10);
14435         output.WriteMessage(SubMessage);
14436       }
14437       if (_unknownFields != null) {
14438         _unknownFields.WriteTo(output);
14439       }
14440     #endif
14441     }
14442 
14443     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14444     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14445     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14446     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14447       if (subMessage_ != null) {
14448         output.WriteRawTag(10);
14449         output.WriteMessage(SubMessage);
14450       }
14451       if (_unknownFields != null) {
14452         _unknownFields.WriteTo(ref output);
14453       }
14454     }
14455     #endif
14456 
14457     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14458     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14459     public int CalculateSize() {
14460       int size = 0;
14461       if (subMessage_ != null) {
14462         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
14463       }
14464       if (_unknownFields != null) {
14465         size += _unknownFields.CalculateSize();
14466       }
14467       return size;
14468     }
14469 
14470     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14471     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestLazyMessage other)14472     public void MergeFrom(TestLazyMessage other) {
14473       if (other == null) {
14474         return;
14475       }
14476       if (other.subMessage_ != null) {
14477         if (subMessage_ == null) {
14478           SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14479         }
14480         SubMessage.MergeFrom(other.SubMessage);
14481       }
14482       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14483     }
14484 
14485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14486     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14487     public void MergeFrom(pb::CodedInputStream input) {
14488     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14489       input.ReadRawMessage(this);
14490     #else
14491       uint tag;
14492       while ((tag = input.ReadTag()) != 0) {
14493         switch(tag) {
14494           default:
14495             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14496             break;
14497           case 10: {
14498             if (subMessage_ == null) {
14499               SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14500             }
14501             input.ReadMessage(SubMessage);
14502             break;
14503           }
14504         }
14505       }
14506     #endif
14507     }
14508 
14509     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14510     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14511     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14512     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14513       uint tag;
14514       while ((tag = input.ReadTag()) != 0) {
14515         switch(tag) {
14516           default:
14517             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14518             break;
14519           case 10: {
14520             if (subMessage_ == null) {
14521               SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14522             }
14523             input.ReadMessage(SubMessage);
14524             break;
14525           }
14526         }
14527       }
14528     }
14529     #endif
14530 
14531   }
14532 
14533   /// <summary>
14534   /// Needed for a Python test.
14535   /// </summary>
14536   public sealed partial class TestNestedMessageHasBits : pb::IMessage<TestNestedMessageHasBits>
14537   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14538       , pb::IBufferMessage
14539   #endif
14540   {
14541     private static readonly pb::MessageParser<TestNestedMessageHasBits> _parser = new pb::MessageParser<TestNestedMessageHasBits>(() => new TestNestedMessageHasBits());
14542     private pb::UnknownFieldSet _unknownFields;
14543     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14544     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14545     public static pb::MessageParser<TestNestedMessageHasBits> Parser { get { return _parser; } }
14546 
14547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14549     public static pbr::MessageDescriptor Descriptor {
14550       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[27]; }
14551     }
14552 
14553     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14554     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14555     pbr::MessageDescriptor pb::IMessage.Descriptor {
14556       get { return Descriptor; }
14557     }
14558 
14559     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14560     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestNestedMessageHasBits()14561     public TestNestedMessageHasBits() {
14562       OnConstruction();
14563     }
14564 
OnConstruction()14565     partial void OnConstruction();
14566 
14567     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14568     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestNestedMessageHasBits(TestNestedMessageHasBits other)14569     public TestNestedMessageHasBits(TestNestedMessageHasBits other) : this() {
14570       optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
14571       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14572     }
14573 
14574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()14576     public TestNestedMessageHasBits Clone() {
14577       return new TestNestedMessageHasBits(this);
14578     }
14579 
14580     /// <summary>Field number for the "optional_nested_message" field.</summary>
14581     public const int OptionalNestedMessageFieldNumber = 1;
14582     private global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_;
14583     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14584     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14585     public global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
14586       get { return optionalNestedMessage_; }
14587       set {
14588         optionalNestedMessage_ = value;
14589       }
14590     }
14591 
14592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14593     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)14594     public override bool Equals(object other) {
14595       return Equals(other as TestNestedMessageHasBits);
14596     }
14597 
14598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestNestedMessageHasBits other)14600     public bool Equals(TestNestedMessageHasBits other) {
14601       if (ReferenceEquals(other, null)) {
14602         return false;
14603       }
14604       if (ReferenceEquals(other, this)) {
14605         return true;
14606       }
14607       if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
14608       return Equals(_unknownFields, other._unknownFields);
14609     }
14610 
14611     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14612     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14613     public override int GetHashCode() {
14614       int hash = 1;
14615       if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
14616       if (_unknownFields != null) {
14617         hash ^= _unknownFields.GetHashCode();
14618       }
14619       return hash;
14620     }
14621 
14622     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14623     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14624     public override string ToString() {
14625       return pb::JsonFormatter.ToDiagnosticString(this);
14626     }
14627 
14628     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14629     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14630     public void WriteTo(pb::CodedOutputStream output) {
14631     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14632       output.WriteRawMessage(this);
14633     #else
14634       if (optionalNestedMessage_ != null) {
14635         output.WriteRawTag(10);
14636         output.WriteMessage(OptionalNestedMessage);
14637       }
14638       if (_unknownFields != null) {
14639         _unknownFields.WriteTo(output);
14640       }
14641     #endif
14642     }
14643 
14644     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14646     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14647     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14648       if (optionalNestedMessage_ != null) {
14649         output.WriteRawTag(10);
14650         output.WriteMessage(OptionalNestedMessage);
14651       }
14652       if (_unknownFields != null) {
14653         _unknownFields.WriteTo(ref output);
14654       }
14655     }
14656     #endif
14657 
14658     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14659     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14660     public int CalculateSize() {
14661       int size = 0;
14662       if (optionalNestedMessage_ != null) {
14663         size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
14664       }
14665       if (_unknownFields != null) {
14666         size += _unknownFields.CalculateSize();
14667       }
14668       return size;
14669     }
14670 
14671     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14672     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestNestedMessageHasBits other)14673     public void MergeFrom(TestNestedMessageHasBits other) {
14674       if (other == null) {
14675         return;
14676       }
14677       if (other.optionalNestedMessage_ != null) {
14678         if (optionalNestedMessage_ == null) {
14679           OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
14680         }
14681         OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
14682       }
14683       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14684     }
14685 
14686     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14687     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14688     public void MergeFrom(pb::CodedInputStream input) {
14689     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14690       input.ReadRawMessage(this);
14691     #else
14692       uint tag;
14693       while ((tag = input.ReadTag()) != 0) {
14694         switch(tag) {
14695           default:
14696             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14697             break;
14698           case 10: {
14699             if (optionalNestedMessage_ == null) {
14700               OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
14701             }
14702             input.ReadMessage(OptionalNestedMessage);
14703             break;
14704           }
14705         }
14706       }
14707     #endif
14708     }
14709 
14710     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14711     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14712     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14713     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14714       uint tag;
14715       while ((tag = input.ReadTag()) != 0) {
14716         switch(tag) {
14717           default:
14718             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14719             break;
14720           case 10: {
14721             if (optionalNestedMessage_ == null) {
14722               OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
14723             }
14724             input.ReadMessage(OptionalNestedMessage);
14725             break;
14726           }
14727         }
14728       }
14729     }
14730     #endif
14731 
14732     #region Nested types
14733     /// <summary>Container for nested types declared in the TestNestedMessageHasBits message type.</summary>
14734     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14735     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14736     public static partial class Types {
14737       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
14738       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14739           , pb::IBufferMessage
14740       #endif
14741       {
14742         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
14743         private pb::UnknownFieldSet _unknownFields;
14744         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14745         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14746         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
14747 
14748         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14749         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14750         public static pbr::MessageDescriptor Descriptor {
14751           get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Descriptor.NestedTypes[0]; }
14752         }
14753 
14754         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14755         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14756         pbr::MessageDescriptor pb::IMessage.Descriptor {
14757           get { return Descriptor; }
14758         }
14759 
14760         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14761         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()14762         public NestedMessage() {
14763           OnConstruction();
14764         }
14765 
OnConstruction()14766         partial void OnConstruction();
14767 
14768         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14769         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)14770         public NestedMessage(NestedMessage other) : this() {
14771           nestedmessageRepeatedInt32_ = other.nestedmessageRepeatedInt32_.Clone();
14772           nestedmessageRepeatedForeignmessage_ = other.nestedmessageRepeatedForeignmessage_.Clone();
14773           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14774         }
14775 
14776         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14777         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()14778         public NestedMessage Clone() {
14779           return new NestedMessage(this);
14780         }
14781 
14782         /// <summary>Field number for the "nestedmessage_repeated_int32" field.</summary>
14783         public const int NestedmessageRepeatedInt32FieldNumber = 1;
14784         private static readonly pb::FieldCodec<int> _repeated_nestedmessageRepeatedInt32_codec
14785             = pb::FieldCodec.ForInt32(8);
14786         private readonly pbc::RepeatedField<int> nestedmessageRepeatedInt32_ = new pbc::RepeatedField<int>();
14787         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14788         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14789         public pbc::RepeatedField<int> NestedmessageRepeatedInt32 {
14790           get { return nestedmessageRepeatedInt32_; }
14791         }
14792 
14793         /// <summary>Field number for the "nestedmessage_repeated_foreignmessage" field.</summary>
14794         public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
14795         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_nestedmessageRepeatedForeignmessage_codec
14796             = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
14797         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
14798         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14799         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14800         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> NestedmessageRepeatedForeignmessage {
14801           get { return nestedmessageRepeatedForeignmessage_; }
14802         }
14803 
14804         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14805         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)14806         public override bool Equals(object other) {
14807           return Equals(other as NestedMessage);
14808         }
14809 
14810         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14811         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)14812         public bool Equals(NestedMessage other) {
14813           if (ReferenceEquals(other, null)) {
14814             return false;
14815           }
14816           if (ReferenceEquals(other, this)) {
14817             return true;
14818           }
14819           if(!nestedmessageRepeatedInt32_.Equals(other.nestedmessageRepeatedInt32_)) return false;
14820           if(!nestedmessageRepeatedForeignmessage_.Equals(other.nestedmessageRepeatedForeignmessage_)) return false;
14821           return Equals(_unknownFields, other._unknownFields);
14822         }
14823 
14824         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14825         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14826         public override int GetHashCode() {
14827           int hash = 1;
14828           hash ^= nestedmessageRepeatedInt32_.GetHashCode();
14829           hash ^= nestedmessageRepeatedForeignmessage_.GetHashCode();
14830           if (_unknownFields != null) {
14831             hash ^= _unknownFields.GetHashCode();
14832           }
14833           return hash;
14834         }
14835 
14836         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14837         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14838         public override string ToString() {
14839           return pb::JsonFormatter.ToDiagnosticString(this);
14840         }
14841 
14842         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14843         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14844         public void WriteTo(pb::CodedOutputStream output) {
14845         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14846           output.WriteRawMessage(this);
14847         #else
14848           nestedmessageRepeatedInt32_.WriteTo(output, _repeated_nestedmessageRepeatedInt32_codec);
14849           nestedmessageRepeatedForeignmessage_.WriteTo(output, _repeated_nestedmessageRepeatedForeignmessage_codec);
14850           if (_unknownFields != null) {
14851             _unknownFields.WriteTo(output);
14852           }
14853         #endif
14854         }
14855 
14856         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14857         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14858         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14859         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14860           nestedmessageRepeatedInt32_.WriteTo(ref output, _repeated_nestedmessageRepeatedInt32_codec);
14861           nestedmessageRepeatedForeignmessage_.WriteTo(ref output, _repeated_nestedmessageRepeatedForeignmessage_codec);
14862           if (_unknownFields != null) {
14863             _unknownFields.WriteTo(ref output);
14864           }
14865         }
14866         #endif
14867 
14868         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14869         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14870         public int CalculateSize() {
14871           int size = 0;
14872           size += nestedmessageRepeatedInt32_.CalculateSize(_repeated_nestedmessageRepeatedInt32_codec);
14873           size += nestedmessageRepeatedForeignmessage_.CalculateSize(_repeated_nestedmessageRepeatedForeignmessage_codec);
14874           if (_unknownFields != null) {
14875             size += _unknownFields.CalculateSize();
14876           }
14877           return size;
14878         }
14879 
14880         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14881         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)14882         public void MergeFrom(NestedMessage other) {
14883           if (other == null) {
14884             return;
14885           }
14886           nestedmessageRepeatedInt32_.Add(other.nestedmessageRepeatedInt32_);
14887           nestedmessageRepeatedForeignmessage_.Add(other.nestedmessageRepeatedForeignmessage_);
14888           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14889         }
14890 
14891         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14892         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14893         public void MergeFrom(pb::CodedInputStream input) {
14894         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14895           input.ReadRawMessage(this);
14896         #else
14897           uint tag;
14898           while ((tag = input.ReadTag()) != 0) {
14899             switch(tag) {
14900               default:
14901                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14902                 break;
14903               case 10:
14904               case 8: {
14905                 nestedmessageRepeatedInt32_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedInt32_codec);
14906                 break;
14907               }
14908               case 18: {
14909                 nestedmessageRepeatedForeignmessage_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedForeignmessage_codec);
14910                 break;
14911               }
14912             }
14913           }
14914         #endif
14915         }
14916 
14917         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14918         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14919         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14920         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14921           uint tag;
14922           while ((tag = input.ReadTag()) != 0) {
14923             switch(tag) {
14924               default:
14925                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14926                 break;
14927               case 10:
14928               case 8: {
14929                 nestedmessageRepeatedInt32_.AddEntriesFrom(ref input, _repeated_nestedmessageRepeatedInt32_codec);
14930                 break;
14931               }
14932               case 18: {
14933                 nestedmessageRepeatedForeignmessage_.AddEntriesFrom(ref input, _repeated_nestedmessageRepeatedForeignmessage_codec);
14934                 break;
14935               }
14936             }
14937           }
14938         }
14939         #endif
14940 
14941       }
14942 
14943     }
14944     #endregion
14945 
14946   }
14947 
14948   /// <summary>
14949   /// Test message with CamelCase field names.  This violates Protocol Buffer
14950   /// standard style.
14951   /// </summary>
14952   public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames>
14953   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14954       , pb::IBufferMessage
14955   #endif
14956   {
14957     private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames());
14958     private pb::UnknownFieldSet _unknownFields;
14959     private int _hasBits0;
14960     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14961     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14962     public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } }
14963 
14964     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14965     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14966     public static pbr::MessageDescriptor Descriptor {
14967       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[28]; }
14968     }
14969 
14970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14971     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14972     pbr::MessageDescriptor pb::IMessage.Descriptor {
14973       get { return Descriptor; }
14974     }
14975 
14976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14977     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestCamelCaseFieldNames()14978     public TestCamelCaseFieldNames() {
14979       OnConstruction();
14980     }
14981 
OnConstruction()14982     partial void OnConstruction();
14983 
14984     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14985     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestCamelCaseFieldNames(TestCamelCaseFieldNames other)14986     public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() {
14987       _hasBits0 = other._hasBits0;
14988       primitiveField_ = other.primitiveField_;
14989       stringField_ = other.stringField_;
14990       enumField_ = other.enumField_;
14991       messageField_ = other.messageField_ != null ? other.messageField_.Clone() : null;
14992       stringPieceField_ = other.stringPieceField_;
14993       cordField_ = other.cordField_;
14994       repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone();
14995       repeatedStringField_ = other.repeatedStringField_.Clone();
14996       repeatedEnumField_ = other.repeatedEnumField_.Clone();
14997       repeatedMessageField_ = other.repeatedMessageField_.Clone();
14998       repeatedStringPieceField_ = other.repeatedStringPieceField_.Clone();
14999       repeatedCordField_ = other.repeatedCordField_.Clone();
15000       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
15001     }
15002 
15003     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15004     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()15005     public TestCamelCaseFieldNames Clone() {
15006       return new TestCamelCaseFieldNames(this);
15007     }
15008 
15009     /// <summary>Field number for the "PrimitiveField" field.</summary>
15010     public const int PrimitiveFieldFieldNumber = 1;
15011     private readonly static int PrimitiveFieldDefaultValue = 0;
15012 
15013     private int primitiveField_;
15014     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15015     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15016     public int PrimitiveField {
15017       get { if ((_hasBits0 & 1) != 0) { return primitiveField_; } else { return PrimitiveFieldDefaultValue; } }
15018       set {
15019         _hasBits0 |= 1;
15020         primitiveField_ = value;
15021       }
15022     }
15023     /// <summary>Gets whether the "PrimitiveField" field is set</summary>
15024     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15025     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15026     public bool HasPrimitiveField {
15027       get { return (_hasBits0 & 1) != 0; }
15028     }
15029     /// <summary>Clears the value of the "PrimitiveField" field</summary>
15030     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15031     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPrimitiveField()15032     public void ClearPrimitiveField() {
15033       _hasBits0 &= ~1;
15034     }
15035 
15036     /// <summary>Field number for the "StringField" field.</summary>
15037     public const int StringFieldFieldNumber = 2;
15038     private readonly static string StringFieldDefaultValue = "";
15039 
15040     private string stringField_;
15041     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15042     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15043     public string StringField {
15044       get { return stringField_ ?? StringFieldDefaultValue; }
15045       set {
15046         stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15047       }
15048     }
15049     /// <summary>Gets whether the "StringField" field is set</summary>
15050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15051     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15052     public bool HasStringField {
15053       get { return stringField_ != null; }
15054     }
15055     /// <summary>Clears the value of the "StringField" field</summary>
15056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStringField()15058     public void ClearStringField() {
15059       stringField_ = null;
15060     }
15061 
15062     /// <summary>Field number for the "EnumField" field.</summary>
15063     public const int EnumFieldFieldNumber = 3;
15064     private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumFieldDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
15065 
15066     private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumField_;
15067     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15068     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15069     public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumField {
15070       get { if ((_hasBits0 & 2) != 0) { return enumField_; } else { return EnumFieldDefaultValue; } }
15071       set {
15072         _hasBits0 |= 2;
15073         enumField_ = value;
15074       }
15075     }
15076     /// <summary>Gets whether the "EnumField" field is set</summary>
15077     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15078     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15079     public bool HasEnumField {
15080       get { return (_hasBits0 & 2) != 0; }
15081     }
15082     /// <summary>Clears the value of the "EnumField" field</summary>
15083     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15084     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEnumField()15085     public void ClearEnumField() {
15086       _hasBits0 &= ~2;
15087     }
15088 
15089     /// <summary>Field number for the "MessageField" field.</summary>
15090     public const int MessageFieldFieldNumber = 4;
15091     private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageField_;
15092     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15093     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15094     public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageField {
15095       get { return messageField_; }
15096       set {
15097         messageField_ = value;
15098       }
15099     }
15100 
15101     /// <summary>Field number for the "StringPieceField" field.</summary>
15102     public const int StringPieceFieldFieldNumber = 5;
15103     private readonly static string StringPieceFieldDefaultValue = "";
15104 
15105     private string stringPieceField_;
15106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15108     public string StringPieceField {
15109       get { return stringPieceField_ ?? StringPieceFieldDefaultValue; }
15110       set {
15111         stringPieceField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15112       }
15113     }
15114     /// <summary>Gets whether the "StringPieceField" field is set</summary>
15115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15116     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15117     public bool HasStringPieceField {
15118       get { return stringPieceField_ != null; }
15119     }
15120     /// <summary>Clears the value of the "StringPieceField" field</summary>
15121     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15122     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStringPieceField()15123     public void ClearStringPieceField() {
15124       stringPieceField_ = null;
15125     }
15126 
15127     /// <summary>Field number for the "CordField" field.</summary>
15128     public const int CordFieldFieldNumber = 6;
15129     private readonly static string CordFieldDefaultValue = "";
15130 
15131     private string cordField_;
15132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15133     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15134     public string CordField {
15135       get { return cordField_ ?? CordFieldDefaultValue; }
15136       set {
15137         cordField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15138       }
15139     }
15140     /// <summary>Gets whether the "CordField" field is set</summary>
15141     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15142     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15143     public bool HasCordField {
15144       get { return cordField_ != null; }
15145     }
15146     /// <summary>Clears the value of the "CordField" field</summary>
15147     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15148     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearCordField()15149     public void ClearCordField() {
15150       cordField_ = null;
15151     }
15152 
15153     /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary>
15154     public const int RepeatedPrimitiveFieldFieldNumber = 7;
15155     private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec
15156         = pb::FieldCodec.ForInt32(56);
15157     private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>();
15158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15159     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15160     public pbc::RepeatedField<int> RepeatedPrimitiveField {
15161       get { return repeatedPrimitiveField_; }
15162     }
15163 
15164     /// <summary>Field number for the "RepeatedStringField" field.</summary>
15165     public const int RepeatedStringFieldFieldNumber = 8;
15166     private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec
15167         = pb::FieldCodec.ForString(66);
15168     private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>();
15169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15170     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15171     public pbc::RepeatedField<string> RepeatedStringField {
15172       get { return repeatedStringField_; }
15173     }
15174 
15175     /// <summary>Field number for the "RepeatedEnumField" field.</summary>
15176     public const int RepeatedEnumFieldFieldNumber = 9;
15177     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedEnumField_codec
15178         = pb::FieldCodec.ForEnum(72, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
15179     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
15180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15181     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15182     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedEnumField {
15183       get { return repeatedEnumField_; }
15184     }
15185 
15186     /// <summary>Field number for the "RepeatedMessageField" field.</summary>
15187     public const int RepeatedMessageFieldFieldNumber = 10;
15188     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedMessageField_codec
15189         = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
15190     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
15191     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15192     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15193     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedMessageField {
15194       get { return repeatedMessageField_; }
15195     }
15196 
15197     /// <summary>Field number for the "RepeatedStringPieceField" field.</summary>
15198     public const int RepeatedStringPieceFieldFieldNumber = 11;
15199     private static readonly pb::FieldCodec<string> _repeated_repeatedStringPieceField_codec
15200         = pb::FieldCodec.ForString(90);
15201     private readonly pbc::RepeatedField<string> repeatedStringPieceField_ = new pbc::RepeatedField<string>();
15202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15203     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15204     public pbc::RepeatedField<string> RepeatedStringPieceField {
15205       get { return repeatedStringPieceField_; }
15206     }
15207 
15208     /// <summary>Field number for the "RepeatedCordField" field.</summary>
15209     public const int RepeatedCordFieldFieldNumber = 12;
15210     private static readonly pb::FieldCodec<string> _repeated_repeatedCordField_codec
15211         = pb::FieldCodec.ForString(98);
15212     private readonly pbc::RepeatedField<string> repeatedCordField_ = new pbc::RepeatedField<string>();
15213     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15214     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15215     public pbc::RepeatedField<string> RepeatedCordField {
15216       get { return repeatedCordField_; }
15217     }
15218 
15219     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15220     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)15221     public override bool Equals(object other) {
15222       return Equals(other as TestCamelCaseFieldNames);
15223     }
15224 
15225     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15226     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestCamelCaseFieldNames other)15227     public bool Equals(TestCamelCaseFieldNames other) {
15228       if (ReferenceEquals(other, null)) {
15229         return false;
15230       }
15231       if (ReferenceEquals(other, this)) {
15232         return true;
15233       }
15234       if (PrimitiveField != other.PrimitiveField) return false;
15235       if (StringField != other.StringField) return false;
15236       if (EnumField != other.EnumField) return false;
15237       if (!object.Equals(MessageField, other.MessageField)) return false;
15238       if (StringPieceField != other.StringPieceField) return false;
15239       if (CordField != other.CordField) return false;
15240       if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false;
15241       if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
15242       if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
15243       if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false;
15244       if(!repeatedStringPieceField_.Equals(other.repeatedStringPieceField_)) return false;
15245       if(!repeatedCordField_.Equals(other.repeatedCordField_)) return false;
15246       return Equals(_unknownFields, other._unknownFields);
15247     }
15248 
15249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15250     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()15251     public override int GetHashCode() {
15252       int hash = 1;
15253       if (HasPrimitiveField) hash ^= PrimitiveField.GetHashCode();
15254       if (HasStringField) hash ^= StringField.GetHashCode();
15255       if (HasEnumField) hash ^= EnumField.GetHashCode();
15256       if (messageField_ != null) hash ^= MessageField.GetHashCode();
15257       if (HasStringPieceField) hash ^= StringPieceField.GetHashCode();
15258       if (HasCordField) hash ^= CordField.GetHashCode();
15259       hash ^= repeatedPrimitiveField_.GetHashCode();
15260       hash ^= repeatedStringField_.GetHashCode();
15261       hash ^= repeatedEnumField_.GetHashCode();
15262       hash ^= repeatedMessageField_.GetHashCode();
15263       hash ^= repeatedStringPieceField_.GetHashCode();
15264       hash ^= repeatedCordField_.GetHashCode();
15265       if (_unknownFields != null) {
15266         hash ^= _unknownFields.GetHashCode();
15267       }
15268       return hash;
15269     }
15270 
15271     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15272     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()15273     public override string ToString() {
15274       return pb::JsonFormatter.ToDiagnosticString(this);
15275     }
15276 
15277     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15278     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)15279     public void WriteTo(pb::CodedOutputStream output) {
15280     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15281       output.WriteRawMessage(this);
15282     #else
15283       if (HasPrimitiveField) {
15284         output.WriteRawTag(8);
15285         output.WriteInt32(PrimitiveField);
15286       }
15287       if (HasStringField) {
15288         output.WriteRawTag(18);
15289         output.WriteString(StringField);
15290       }
15291       if (HasEnumField) {
15292         output.WriteRawTag(24);
15293         output.WriteEnum((int) EnumField);
15294       }
15295       if (messageField_ != null) {
15296         output.WriteRawTag(34);
15297         output.WriteMessage(MessageField);
15298       }
15299       if (HasStringPieceField) {
15300         output.WriteRawTag(42);
15301         output.WriteString(StringPieceField);
15302       }
15303       if (HasCordField) {
15304         output.WriteRawTag(50);
15305         output.WriteString(CordField);
15306       }
15307       repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec);
15308       repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
15309       repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
15310       repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec);
15311       repeatedStringPieceField_.WriteTo(output, _repeated_repeatedStringPieceField_codec);
15312       repeatedCordField_.WriteTo(output, _repeated_repeatedCordField_codec);
15313       if (_unknownFields != null) {
15314         _unknownFields.WriteTo(output);
15315       }
15316     #endif
15317     }
15318 
15319     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15320     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15321     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)15322     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
15323       if (HasPrimitiveField) {
15324         output.WriteRawTag(8);
15325         output.WriteInt32(PrimitiveField);
15326       }
15327       if (HasStringField) {
15328         output.WriteRawTag(18);
15329         output.WriteString(StringField);
15330       }
15331       if (HasEnumField) {
15332         output.WriteRawTag(24);
15333         output.WriteEnum((int) EnumField);
15334       }
15335       if (messageField_ != null) {
15336         output.WriteRawTag(34);
15337         output.WriteMessage(MessageField);
15338       }
15339       if (HasStringPieceField) {
15340         output.WriteRawTag(42);
15341         output.WriteString(StringPieceField);
15342       }
15343       if (HasCordField) {
15344         output.WriteRawTag(50);
15345         output.WriteString(CordField);
15346       }
15347       repeatedPrimitiveField_.WriteTo(ref output, _repeated_repeatedPrimitiveField_codec);
15348       repeatedStringField_.WriteTo(ref output, _repeated_repeatedStringField_codec);
15349       repeatedEnumField_.WriteTo(ref output, _repeated_repeatedEnumField_codec);
15350       repeatedMessageField_.WriteTo(ref output, _repeated_repeatedMessageField_codec);
15351       repeatedStringPieceField_.WriteTo(ref output, _repeated_repeatedStringPieceField_codec);
15352       repeatedCordField_.WriteTo(ref output, _repeated_repeatedCordField_codec);
15353       if (_unknownFields != null) {
15354         _unknownFields.WriteTo(ref output);
15355       }
15356     }
15357     #endif
15358 
15359     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15360     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()15361     public int CalculateSize() {
15362       int size = 0;
15363       if (HasPrimitiveField) {
15364         size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
15365       }
15366       if (HasStringField) {
15367         size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
15368       }
15369       if (HasEnumField) {
15370         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
15371       }
15372       if (messageField_ != null) {
15373         size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
15374       }
15375       if (HasStringPieceField) {
15376         size += 1 + pb::CodedOutputStream.ComputeStringSize(StringPieceField);
15377       }
15378       if (HasCordField) {
15379         size += 1 + pb::CodedOutputStream.ComputeStringSize(CordField);
15380       }
15381       size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec);
15382       size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec);
15383       size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec);
15384       size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec);
15385       size += repeatedStringPieceField_.CalculateSize(_repeated_repeatedStringPieceField_codec);
15386       size += repeatedCordField_.CalculateSize(_repeated_repeatedCordField_codec);
15387       if (_unknownFields != null) {
15388         size += _unknownFields.CalculateSize();
15389       }
15390       return size;
15391     }
15392 
15393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15394     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestCamelCaseFieldNames other)15395     public void MergeFrom(TestCamelCaseFieldNames other) {
15396       if (other == null) {
15397         return;
15398       }
15399       if (other.HasPrimitiveField) {
15400         PrimitiveField = other.PrimitiveField;
15401       }
15402       if (other.HasStringField) {
15403         StringField = other.StringField;
15404       }
15405       if (other.HasEnumField) {
15406         EnumField = other.EnumField;
15407       }
15408       if (other.messageField_ != null) {
15409         if (messageField_ == null) {
15410           MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
15411         }
15412         MessageField.MergeFrom(other.MessageField);
15413       }
15414       if (other.HasStringPieceField) {
15415         StringPieceField = other.StringPieceField;
15416       }
15417       if (other.HasCordField) {
15418         CordField = other.CordField;
15419       }
15420       repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
15421       repeatedStringField_.Add(other.repeatedStringField_);
15422       repeatedEnumField_.Add(other.repeatedEnumField_);
15423       repeatedMessageField_.Add(other.repeatedMessageField_);
15424       repeatedStringPieceField_.Add(other.repeatedStringPieceField_);
15425       repeatedCordField_.Add(other.repeatedCordField_);
15426       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
15427     }
15428 
15429     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15430     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)15431     public void MergeFrom(pb::CodedInputStream input) {
15432     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15433       input.ReadRawMessage(this);
15434     #else
15435       uint tag;
15436       while ((tag = input.ReadTag()) != 0) {
15437         switch(tag) {
15438           default:
15439             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
15440             break;
15441           case 8: {
15442             PrimitiveField = input.ReadInt32();
15443             break;
15444           }
15445           case 18: {
15446             StringField = input.ReadString();
15447             break;
15448           }
15449           case 24: {
15450             EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
15451             break;
15452           }
15453           case 34: {
15454             if (messageField_ == null) {
15455               MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
15456             }
15457             input.ReadMessage(MessageField);
15458             break;
15459           }
15460           case 42: {
15461             StringPieceField = input.ReadString();
15462             break;
15463           }
15464           case 50: {
15465             CordField = input.ReadString();
15466             break;
15467           }
15468           case 58:
15469           case 56: {
15470             repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec);
15471             break;
15472           }
15473           case 66: {
15474             repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec);
15475             break;
15476           }
15477           case 74:
15478           case 72: {
15479             repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec);
15480             break;
15481           }
15482           case 82: {
15483             repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec);
15484             break;
15485           }
15486           case 90: {
15487             repeatedStringPieceField_.AddEntriesFrom(input, _repeated_repeatedStringPieceField_codec);
15488             break;
15489           }
15490           case 98: {
15491             repeatedCordField_.AddEntriesFrom(input, _repeated_repeatedCordField_codec);
15492             break;
15493           }
15494         }
15495       }
15496     #endif
15497     }
15498 
15499     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)15502     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
15503       uint tag;
15504       while ((tag = input.ReadTag()) != 0) {
15505         switch(tag) {
15506           default:
15507             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
15508             break;
15509           case 8: {
15510             PrimitiveField = input.ReadInt32();
15511             break;
15512           }
15513           case 18: {
15514             StringField = input.ReadString();
15515             break;
15516           }
15517           case 24: {
15518             EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
15519             break;
15520           }
15521           case 34: {
15522             if (messageField_ == null) {
15523               MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
15524             }
15525             input.ReadMessage(MessageField);
15526             break;
15527           }
15528           case 42: {
15529             StringPieceField = input.ReadString();
15530             break;
15531           }
15532           case 50: {
15533             CordField = input.ReadString();
15534             break;
15535           }
15536           case 58:
15537           case 56: {
15538             repeatedPrimitiveField_.AddEntriesFrom(ref input, _repeated_repeatedPrimitiveField_codec);
15539             break;
15540           }
15541           case 66: {
15542             repeatedStringField_.AddEntriesFrom(ref input, _repeated_repeatedStringField_codec);
15543             break;
15544           }
15545           case 74:
15546           case 72: {
15547             repeatedEnumField_.AddEntriesFrom(ref input, _repeated_repeatedEnumField_codec);
15548             break;
15549           }
15550           case 82: {
15551             repeatedMessageField_.AddEntriesFrom(ref input, _repeated_repeatedMessageField_codec);
15552             break;
15553           }
15554           case 90: {
15555             repeatedStringPieceField_.AddEntriesFrom(ref input, _repeated_repeatedStringPieceField_codec);
15556             break;
15557           }
15558           case 98: {
15559             repeatedCordField_.AddEntriesFrom(ref input, _repeated_repeatedCordField_codec);
15560             break;
15561           }
15562         }
15563       }
15564     }
15565     #endif
15566 
15567   }
15568 
15569   /// <summary>
15570   /// We list fields out of order, to ensure that we're using field number and not
15571   /// field index to determine serialization order.
15572   /// </summary>
15573   public sealed partial class TestFieldOrderings : pb::IExtendableMessage<TestFieldOrderings>
15574   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15575       , pb::IBufferMessage
15576   #endif
15577   {
15578     private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings());
15579     private pb::UnknownFieldSet _unknownFields;
15580     private pb::ExtensionSet<TestFieldOrderings> _extensions;
15581     private pb::ExtensionSet<TestFieldOrderings> _Extensions { get { return _extensions; } }
15582     private int _hasBits0;
15583     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15584     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15585     public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } }
15586 
15587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15589     public static pbr::MessageDescriptor Descriptor {
15590       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[29]; }
15591     }
15592 
15593     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15594     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15595     pbr::MessageDescriptor pb::IMessage.Descriptor {
15596       get { return Descriptor; }
15597     }
15598 
15599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestFieldOrderings()15601     public TestFieldOrderings() {
15602       OnConstruction();
15603     }
15604 
OnConstruction()15605     partial void OnConstruction();
15606 
15607     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15608     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestFieldOrderings(TestFieldOrderings other)15609     public TestFieldOrderings(TestFieldOrderings other) : this() {
15610       _hasBits0 = other._hasBits0;
15611       myString_ = other.myString_;
15612       myInt_ = other.myInt_;
15613       myFloat_ = other.myFloat_;
15614       optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
15615       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
15616       _extensions = pb::ExtensionSet.Clone(other._extensions);
15617     }
15618 
15619     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15620     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()15621     public TestFieldOrderings Clone() {
15622       return new TestFieldOrderings(this);
15623     }
15624 
15625     /// <summary>Field number for the "my_string" field.</summary>
15626     public const int MyStringFieldNumber = 11;
15627     private readonly static string MyStringDefaultValue = "";
15628 
15629     private string myString_;
15630     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15631     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15632     public string MyString {
15633       get { return myString_ ?? MyStringDefaultValue; }
15634       set {
15635         myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15636       }
15637     }
15638     /// <summary>Gets whether the "my_string" field is set</summary>
15639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15640     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15641     public bool HasMyString {
15642       get { return myString_ != null; }
15643     }
15644     /// <summary>Clears the value of the "my_string" field</summary>
15645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15646     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMyString()15647     public void ClearMyString() {
15648       myString_ = null;
15649     }
15650 
15651     /// <summary>Field number for the "my_int" field.</summary>
15652     public const int MyIntFieldNumber = 1;
15653     private readonly static long MyIntDefaultValue = 0L;
15654 
15655     private long myInt_;
15656     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15657     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15658     public long MyInt {
15659       get { if ((_hasBits0 & 1) != 0) { return myInt_; } else { return MyIntDefaultValue; } }
15660       set {
15661         _hasBits0 |= 1;
15662         myInt_ = value;
15663       }
15664     }
15665     /// <summary>Gets whether the "my_int" field is set</summary>
15666     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15667     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15668     public bool HasMyInt {
15669       get { return (_hasBits0 & 1) != 0; }
15670     }
15671     /// <summary>Clears the value of the "my_int" field</summary>
15672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15673     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMyInt()15674     public void ClearMyInt() {
15675       _hasBits0 &= ~1;
15676     }
15677 
15678     /// <summary>Field number for the "my_float" field.</summary>
15679     public const int MyFloatFieldNumber = 101;
15680     private readonly static float MyFloatDefaultValue = 0F;
15681 
15682     private float myFloat_;
15683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15684     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15685     public float MyFloat {
15686       get { if ((_hasBits0 & 2) != 0) { return myFloat_; } else { return MyFloatDefaultValue; } }
15687       set {
15688         _hasBits0 |= 2;
15689         myFloat_ = value;
15690       }
15691     }
15692     /// <summary>Gets whether the "my_float" field is set</summary>
15693     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15694     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15695     public bool HasMyFloat {
15696       get { return (_hasBits0 & 2) != 0; }
15697     }
15698     /// <summary>Clears the value of the "my_float" field</summary>
15699     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15700     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMyFloat()15701     public void ClearMyFloat() {
15702       _hasBits0 &= ~2;
15703     }
15704 
15705     /// <summary>Field number for the "optional_nested_message" field.</summary>
15706     public const int OptionalNestedMessageFieldNumber = 200;
15707     private global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage optionalNestedMessage_;
15708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15710     public global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
15711       get { return optionalNestedMessage_; }
15712       set {
15713         optionalNestedMessage_ = value;
15714       }
15715     }
15716 
15717     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15718     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)15719     public override bool Equals(object other) {
15720       return Equals(other as TestFieldOrderings);
15721     }
15722 
15723     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15724     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestFieldOrderings other)15725     public bool Equals(TestFieldOrderings other) {
15726       if (ReferenceEquals(other, null)) {
15727         return false;
15728       }
15729       if (ReferenceEquals(other, this)) {
15730         return true;
15731       }
15732       if (MyString != other.MyString) return false;
15733       if (MyInt != other.MyInt) return false;
15734       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return false;
15735       if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
15736       if (!Equals(_extensions, other._extensions)) {
15737         return false;
15738       }
15739       return Equals(_unknownFields, other._unknownFields);
15740     }
15741 
15742     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15743     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()15744     public override int GetHashCode() {
15745       int hash = 1;
15746       if (HasMyString) hash ^= MyString.GetHashCode();
15747       if (HasMyInt) hash ^= MyInt.GetHashCode();
15748       if (HasMyFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MyFloat);
15749       if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
15750       if (_extensions != null) {
15751         hash ^= _extensions.GetHashCode();
15752       }
15753       if (_unknownFields != null) {
15754         hash ^= _unknownFields.GetHashCode();
15755       }
15756       return hash;
15757     }
15758 
15759     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15760     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()15761     public override string ToString() {
15762       return pb::JsonFormatter.ToDiagnosticString(this);
15763     }
15764 
15765     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15766     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)15767     public void WriteTo(pb::CodedOutputStream output) {
15768     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15769       output.WriteRawMessage(this);
15770     #else
15771       if (HasMyInt) {
15772         output.WriteRawTag(8);
15773         output.WriteInt64(MyInt);
15774       }
15775       if (HasMyString) {
15776         output.WriteRawTag(90);
15777         output.WriteString(MyString);
15778       }
15779       if (HasMyFloat) {
15780         output.WriteRawTag(173, 6);
15781         output.WriteFloat(MyFloat);
15782       }
15783       if (optionalNestedMessage_ != null) {
15784         output.WriteRawTag(194, 12);
15785         output.WriteMessage(OptionalNestedMessage);
15786       }
15787       if (_extensions != null) {
15788         _extensions.WriteTo(output);
15789       }
15790       if (_unknownFields != null) {
15791         _unknownFields.WriteTo(output);
15792       }
15793     #endif
15794     }
15795 
15796     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)15799     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
15800       if (HasMyInt) {
15801         output.WriteRawTag(8);
15802         output.WriteInt64(MyInt);
15803       }
15804       if (HasMyString) {
15805         output.WriteRawTag(90);
15806         output.WriteString(MyString);
15807       }
15808       if (HasMyFloat) {
15809         output.WriteRawTag(173, 6);
15810         output.WriteFloat(MyFloat);
15811       }
15812       if (optionalNestedMessage_ != null) {
15813         output.WriteRawTag(194, 12);
15814         output.WriteMessage(OptionalNestedMessage);
15815       }
15816       if (_extensions != null) {
15817         _extensions.WriteTo(ref output);
15818       }
15819       if (_unknownFields != null) {
15820         _unknownFields.WriteTo(ref output);
15821       }
15822     }
15823     #endif
15824 
15825     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15826     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()15827     public int CalculateSize() {
15828       int size = 0;
15829       if (HasMyString) {
15830         size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
15831       }
15832       if (HasMyInt) {
15833         size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt);
15834       }
15835       if (HasMyFloat) {
15836         size += 2 + 4;
15837       }
15838       if (optionalNestedMessage_ != null) {
15839         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
15840       }
15841       if (_extensions != null) {
15842         size += _extensions.CalculateSize();
15843       }
15844       if (_unknownFields != null) {
15845         size += _unknownFields.CalculateSize();
15846       }
15847       return size;
15848     }
15849 
15850     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15851     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestFieldOrderings other)15852     public void MergeFrom(TestFieldOrderings other) {
15853       if (other == null) {
15854         return;
15855       }
15856       if (other.HasMyString) {
15857         MyString = other.MyString;
15858       }
15859       if (other.HasMyInt) {
15860         MyInt = other.MyInt;
15861       }
15862       if (other.HasMyFloat) {
15863         MyFloat = other.MyFloat;
15864       }
15865       if (other.optionalNestedMessage_ != null) {
15866         if (optionalNestedMessage_ == null) {
15867           OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
15868         }
15869         OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
15870       }
15871       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
15872       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
15873     }
15874 
15875     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15876     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)15877     public void MergeFrom(pb::CodedInputStream input) {
15878     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15879       input.ReadRawMessage(this);
15880     #else
15881       uint tag;
15882       while ((tag = input.ReadTag()) != 0) {
15883         switch(tag) {
15884           default:
15885             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
15886               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
15887             }
15888             break;
15889           case 8: {
15890             MyInt = input.ReadInt64();
15891             break;
15892           }
15893           case 90: {
15894             MyString = input.ReadString();
15895             break;
15896           }
15897           case 813: {
15898             MyFloat = input.ReadFloat();
15899             break;
15900           }
15901           case 1602: {
15902             if (optionalNestedMessage_ == null) {
15903               OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
15904             }
15905             input.ReadMessage(OptionalNestedMessage);
15906             break;
15907           }
15908         }
15909       }
15910     #endif
15911     }
15912 
15913     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15914     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15915     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)15916     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
15917       uint tag;
15918       while ((tag = input.ReadTag()) != 0) {
15919         switch(tag) {
15920           default:
15921             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
15922               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
15923             }
15924             break;
15925           case 8: {
15926             MyInt = input.ReadInt64();
15927             break;
15928           }
15929           case 90: {
15930             MyString = input.ReadString();
15931             break;
15932           }
15933           case 813: {
15934             MyFloat = input.ReadFloat();
15935             break;
15936           }
15937           case 1602: {
15938             if (optionalNestedMessage_ == null) {
15939               OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
15940             }
15941             input.ReadMessage(OptionalNestedMessage);
15942             break;
15943           }
15944         }
15945       }
15946     }
15947     #endif
15948 
GetExtension(pb::Extension<TestFieldOrderings, TValue> extension)15949     public TValue GetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
15950       return pb::ExtensionSet.Get(ref _extensions, extension);
15951     }
GetExtension(pb::RepeatedExtension<TestFieldOrderings, TValue> extension)15952     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
15953       return pb::ExtensionSet.Get(ref _extensions, extension);
15954     }
GetOrInitializeExtension(pb::RepeatedExtension<TestFieldOrderings, TValue> extension)15955     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
15956       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
15957     }
SetExtension(pb::Extension<TestFieldOrderings, TValue> extension, TValue value)15958     public void SetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension, TValue value) {
15959       pb::ExtensionSet.Set(ref _extensions, extension, value);
15960     }
HasExtension(pb::Extension<TestFieldOrderings, TValue> extension)15961     public bool HasExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
15962       return pb::ExtensionSet.Has(ref _extensions, extension);
15963     }
ClearExtension(pb::Extension<TestFieldOrderings, TValue> extension)15964     public void ClearExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
15965       pb::ExtensionSet.Clear(ref _extensions, extension);
15966     }
ClearExtension(pb::RepeatedExtension<TestFieldOrderings, TValue> extension)15967     public void ClearExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
15968       pb::ExtensionSet.Clear(ref _extensions, extension);
15969     }
15970 
15971     #region Nested types
15972     /// <summary>Container for nested types declared in the TestFieldOrderings message type.</summary>
15973     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15974     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15975     public static partial class Types {
15976       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
15977       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15978           , pb::IBufferMessage
15979       #endif
15980       {
15981         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
15982         private pb::UnknownFieldSet _unknownFields;
15983         private int _hasBits0;
15984         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15985         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15986         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
15987 
15988         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15989         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15990         public static pbr::MessageDescriptor Descriptor {
15991           get { return global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Descriptor.NestedTypes[0]; }
15992         }
15993 
15994         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
15995         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
15996         pbr::MessageDescriptor pb::IMessage.Descriptor {
15997           get { return Descriptor; }
15998         }
15999 
16000         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16001         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()16002         public NestedMessage() {
16003           OnConstruction();
16004         }
16005 
OnConstruction()16006         partial void OnConstruction();
16007 
16008         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16009         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)16010         public NestedMessage(NestedMessage other) : this() {
16011           _hasBits0 = other._hasBits0;
16012           oo_ = other.oo_;
16013           bb_ = other.bb_;
16014           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16015         }
16016 
16017         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16018         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()16019         public NestedMessage Clone() {
16020           return new NestedMessage(this);
16021         }
16022 
16023         /// <summary>Field number for the "oo" field.</summary>
16024         public const int OoFieldNumber = 2;
16025         private readonly static long OoDefaultValue = 0L;
16026 
16027         private long oo_;
16028         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16029         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16030         public long Oo {
16031           get { if ((_hasBits0 & 2) != 0) { return oo_; } else { return OoDefaultValue; } }
16032           set {
16033             _hasBits0 |= 2;
16034             oo_ = value;
16035           }
16036         }
16037         /// <summary>Gets whether the "oo" field is set</summary>
16038         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16039         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16040         public bool HasOo {
16041           get { return (_hasBits0 & 2) != 0; }
16042         }
16043         /// <summary>Clears the value of the "oo" field</summary>
16044         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16045         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOo()16046         public void ClearOo() {
16047           _hasBits0 &= ~2;
16048         }
16049 
16050         /// <summary>Field number for the "bb" field.</summary>
16051         public const int BbFieldNumber = 1;
16052         private readonly static int BbDefaultValue = 0;
16053 
16054         private int bb_;
16055         /// <summary>
16056         /// The field name "b" fails to compile in proto1 because it conflicts with
16057         /// a local variable named "b" in one of the generated methods.  Doh.
16058         /// This file needs to compile in proto1 to test backwards-compatibility.
16059         /// </summary>
16060         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16061         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16062         public int Bb {
16063           get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
16064           set {
16065             _hasBits0 |= 1;
16066             bb_ = value;
16067           }
16068         }
16069         /// <summary>Gets whether the "bb" field is set</summary>
16070         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16071         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16072         public bool HasBb {
16073           get { return (_hasBits0 & 1) != 0; }
16074         }
16075         /// <summary>Clears the value of the "bb" field</summary>
16076         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16077         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBb()16078         public void ClearBb() {
16079           _hasBits0 &= ~1;
16080         }
16081 
16082         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16083         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)16084         public override bool Equals(object other) {
16085           return Equals(other as NestedMessage);
16086         }
16087 
16088         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16089         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)16090         public bool Equals(NestedMessage other) {
16091           if (ReferenceEquals(other, null)) {
16092             return false;
16093           }
16094           if (ReferenceEquals(other, this)) {
16095             return true;
16096           }
16097           if (Oo != other.Oo) return false;
16098           if (Bb != other.Bb) return false;
16099           return Equals(_unknownFields, other._unknownFields);
16100         }
16101 
16102         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16103         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()16104         public override int GetHashCode() {
16105           int hash = 1;
16106           if (HasOo) hash ^= Oo.GetHashCode();
16107           if (HasBb) hash ^= Bb.GetHashCode();
16108           if (_unknownFields != null) {
16109             hash ^= _unknownFields.GetHashCode();
16110           }
16111           return hash;
16112         }
16113 
16114         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16115         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()16116         public override string ToString() {
16117           return pb::JsonFormatter.ToDiagnosticString(this);
16118         }
16119 
16120         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16121         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)16122         public void WriteTo(pb::CodedOutputStream output) {
16123         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16124           output.WriteRawMessage(this);
16125         #else
16126           if (HasBb) {
16127             output.WriteRawTag(8);
16128             output.WriteInt32(Bb);
16129           }
16130           if (HasOo) {
16131             output.WriteRawTag(16);
16132             output.WriteInt64(Oo);
16133           }
16134           if (_unknownFields != null) {
16135             _unknownFields.WriteTo(output);
16136           }
16137         #endif
16138         }
16139 
16140         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16141         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16142         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16143         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16144           if (HasBb) {
16145             output.WriteRawTag(8);
16146             output.WriteInt32(Bb);
16147           }
16148           if (HasOo) {
16149             output.WriteRawTag(16);
16150             output.WriteInt64(Oo);
16151           }
16152           if (_unknownFields != null) {
16153             _unknownFields.WriteTo(ref output);
16154           }
16155         }
16156         #endif
16157 
16158         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16159         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()16160         public int CalculateSize() {
16161           int size = 0;
16162           if (HasOo) {
16163             size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo);
16164           }
16165           if (HasBb) {
16166             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
16167           }
16168           if (_unknownFields != null) {
16169             size += _unknownFields.CalculateSize();
16170           }
16171           return size;
16172         }
16173 
16174         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16175         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)16176         public void MergeFrom(NestedMessage other) {
16177           if (other == null) {
16178             return;
16179           }
16180           if (other.HasOo) {
16181             Oo = other.Oo;
16182           }
16183           if (other.HasBb) {
16184             Bb = other.Bb;
16185           }
16186           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16187         }
16188 
16189         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16190         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)16191         public void MergeFrom(pb::CodedInputStream input) {
16192         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16193           input.ReadRawMessage(this);
16194         #else
16195           uint tag;
16196           while ((tag = input.ReadTag()) != 0) {
16197             switch(tag) {
16198               default:
16199                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16200                 break;
16201               case 8: {
16202                 Bb = input.ReadInt32();
16203                 break;
16204               }
16205               case 16: {
16206                 Oo = input.ReadInt64();
16207                 break;
16208               }
16209             }
16210           }
16211         #endif
16212         }
16213 
16214         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16215         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16216         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)16217         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
16218           uint tag;
16219           while ((tag = input.ReadTag()) != 0) {
16220             switch(tag) {
16221               default:
16222                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
16223                 break;
16224               case 8: {
16225                 Bb = input.ReadInt32();
16226                 break;
16227               }
16228               case 16: {
16229                 Oo = input.ReadInt64();
16230                 break;
16231               }
16232             }
16233           }
16234         }
16235         #endif
16236 
16237       }
16238 
16239     }
16240     #endregion
16241 
16242   }
16243 
16244   public sealed partial class TestExtensionOrderings1 : pb::IMessage<TestExtensionOrderings1>
16245   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16246       , pb::IBufferMessage
16247   #endif
16248   {
16249     private static readonly pb::MessageParser<TestExtensionOrderings1> _parser = new pb::MessageParser<TestExtensionOrderings1>(() => new TestExtensionOrderings1());
16250     private pb::UnknownFieldSet _unknownFields;
16251     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16252     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16253     public static pb::MessageParser<TestExtensionOrderings1> Parser { get { return _parser; } }
16254 
16255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16257     public static pbr::MessageDescriptor Descriptor {
16258       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[30]; }
16259     }
16260 
16261     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16262     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16263     pbr::MessageDescriptor pb::IMessage.Descriptor {
16264       get { return Descriptor; }
16265     }
16266 
16267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16268     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionOrderings1()16269     public TestExtensionOrderings1() {
16270       OnConstruction();
16271     }
16272 
OnConstruction()16273     partial void OnConstruction();
16274 
16275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16276     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionOrderings1(TestExtensionOrderings1 other)16277     public TestExtensionOrderings1(TestExtensionOrderings1 other) : this() {
16278       myString_ = other.myString_;
16279       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16280     }
16281 
16282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16283     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()16284     public TestExtensionOrderings1 Clone() {
16285       return new TestExtensionOrderings1(this);
16286     }
16287 
16288     /// <summary>Field number for the "my_string" field.</summary>
16289     public const int MyStringFieldNumber = 1;
16290     private readonly static string MyStringDefaultValue = "";
16291 
16292     private string myString_;
16293     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16294     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16295     public string MyString {
16296       get { return myString_ ?? MyStringDefaultValue; }
16297       set {
16298         myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16299       }
16300     }
16301     /// <summary>Gets whether the "my_string" field is set</summary>
16302     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16303     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16304     public bool HasMyString {
16305       get { return myString_ != null; }
16306     }
16307     /// <summary>Clears the value of the "my_string" field</summary>
16308     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16309     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMyString()16310     public void ClearMyString() {
16311       myString_ = null;
16312     }
16313 
16314     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16315     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)16316     public override bool Equals(object other) {
16317       return Equals(other as TestExtensionOrderings1);
16318     }
16319 
16320     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16321     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestExtensionOrderings1 other)16322     public bool Equals(TestExtensionOrderings1 other) {
16323       if (ReferenceEquals(other, null)) {
16324         return false;
16325       }
16326       if (ReferenceEquals(other, this)) {
16327         return true;
16328       }
16329       if (MyString != other.MyString) return false;
16330       return Equals(_unknownFields, other._unknownFields);
16331     }
16332 
16333     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16334     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()16335     public override int GetHashCode() {
16336       int hash = 1;
16337       if (HasMyString) hash ^= MyString.GetHashCode();
16338       if (_unknownFields != null) {
16339         hash ^= _unknownFields.GetHashCode();
16340       }
16341       return hash;
16342     }
16343 
16344     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16345     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()16346     public override string ToString() {
16347       return pb::JsonFormatter.ToDiagnosticString(this);
16348     }
16349 
16350     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16351     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)16352     public void WriteTo(pb::CodedOutputStream output) {
16353     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16354       output.WriteRawMessage(this);
16355     #else
16356       if (HasMyString) {
16357         output.WriteRawTag(10);
16358         output.WriteString(MyString);
16359       }
16360       if (_unknownFields != null) {
16361         _unknownFields.WriteTo(output);
16362       }
16363     #endif
16364     }
16365 
16366     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16368     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16369     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16370       if (HasMyString) {
16371         output.WriteRawTag(10);
16372         output.WriteString(MyString);
16373       }
16374       if (_unknownFields != null) {
16375         _unknownFields.WriteTo(ref output);
16376       }
16377     }
16378     #endif
16379 
16380     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16381     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()16382     public int CalculateSize() {
16383       int size = 0;
16384       if (HasMyString) {
16385         size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
16386       }
16387       if (_unknownFields != null) {
16388         size += _unknownFields.CalculateSize();
16389       }
16390       return size;
16391     }
16392 
16393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16394     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestExtensionOrderings1 other)16395     public void MergeFrom(TestExtensionOrderings1 other) {
16396       if (other == null) {
16397         return;
16398       }
16399       if (other.HasMyString) {
16400         MyString = other.MyString;
16401       }
16402       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16403     }
16404 
16405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16406     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)16407     public void MergeFrom(pb::CodedInputStream input) {
16408     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16409       input.ReadRawMessage(this);
16410     #else
16411       uint tag;
16412       while ((tag = input.ReadTag()) != 0) {
16413         switch(tag) {
16414           default:
16415             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16416             break;
16417           case 10: {
16418             MyString = input.ReadString();
16419             break;
16420           }
16421         }
16422       }
16423     #endif
16424     }
16425 
16426     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16428     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)16429     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
16430       uint tag;
16431       while ((tag = input.ReadTag()) != 0) {
16432         switch(tag) {
16433           default:
16434             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
16435             break;
16436           case 10: {
16437             MyString = input.ReadString();
16438             break;
16439           }
16440         }
16441       }
16442     }
16443     #endif
16444 
16445     #region Extensions
16446     /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings1 message type.</summary>
16447     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16448     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16449     public static partial class Extensions {
16450       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1> TestExtOrderings1 =
16451         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1>(13, pb::FieldCodec.ForMessage(106, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Parser));
16452     }
16453     #endregion
16454 
16455   }
16456 
16457   public sealed partial class TestExtensionOrderings2 : pb::IMessage<TestExtensionOrderings2>
16458   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16459       , pb::IBufferMessage
16460   #endif
16461   {
16462     private static readonly pb::MessageParser<TestExtensionOrderings2> _parser = new pb::MessageParser<TestExtensionOrderings2>(() => new TestExtensionOrderings2());
16463     private pb::UnknownFieldSet _unknownFields;
16464     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16465     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16466     public static pb::MessageParser<TestExtensionOrderings2> Parser { get { return _parser; } }
16467 
16468     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16469     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16470     public static pbr::MessageDescriptor Descriptor {
16471       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[31]; }
16472     }
16473 
16474     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16475     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16476     pbr::MessageDescriptor pb::IMessage.Descriptor {
16477       get { return Descriptor; }
16478     }
16479 
16480     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16481     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionOrderings2()16482     public TestExtensionOrderings2() {
16483       OnConstruction();
16484     }
16485 
OnConstruction()16486     partial void OnConstruction();
16487 
16488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16489     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionOrderings2(TestExtensionOrderings2 other)16490     public TestExtensionOrderings2(TestExtensionOrderings2 other) : this() {
16491       myString_ = other.myString_;
16492       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16493     }
16494 
16495     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16496     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()16497     public TestExtensionOrderings2 Clone() {
16498       return new TestExtensionOrderings2(this);
16499     }
16500 
16501     /// <summary>Field number for the "my_string" field.</summary>
16502     public const int MyStringFieldNumber = 1;
16503     private readonly static string MyStringDefaultValue = "";
16504 
16505     private string myString_;
16506     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16507     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16508     public string MyString {
16509       get { return myString_ ?? MyStringDefaultValue; }
16510       set {
16511         myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16512       }
16513     }
16514     /// <summary>Gets whether the "my_string" field is set</summary>
16515     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16516     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16517     public bool HasMyString {
16518       get { return myString_ != null; }
16519     }
16520     /// <summary>Clears the value of the "my_string" field</summary>
16521     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16522     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMyString()16523     public void ClearMyString() {
16524       myString_ = null;
16525     }
16526 
16527     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16528     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)16529     public override bool Equals(object other) {
16530       return Equals(other as TestExtensionOrderings2);
16531     }
16532 
16533     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16534     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestExtensionOrderings2 other)16535     public bool Equals(TestExtensionOrderings2 other) {
16536       if (ReferenceEquals(other, null)) {
16537         return false;
16538       }
16539       if (ReferenceEquals(other, this)) {
16540         return true;
16541       }
16542       if (MyString != other.MyString) return false;
16543       return Equals(_unknownFields, other._unknownFields);
16544     }
16545 
16546     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16547     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()16548     public override int GetHashCode() {
16549       int hash = 1;
16550       if (HasMyString) hash ^= MyString.GetHashCode();
16551       if (_unknownFields != null) {
16552         hash ^= _unknownFields.GetHashCode();
16553       }
16554       return hash;
16555     }
16556 
16557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()16559     public override string ToString() {
16560       return pb::JsonFormatter.ToDiagnosticString(this);
16561     }
16562 
16563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16564     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)16565     public void WriteTo(pb::CodedOutputStream output) {
16566     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16567       output.WriteRawMessage(this);
16568     #else
16569       if (HasMyString) {
16570         output.WriteRawTag(10);
16571         output.WriteString(MyString);
16572       }
16573       if (_unknownFields != null) {
16574         _unknownFields.WriteTo(output);
16575       }
16576     #endif
16577     }
16578 
16579     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16581     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16582     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16583       if (HasMyString) {
16584         output.WriteRawTag(10);
16585         output.WriteString(MyString);
16586       }
16587       if (_unknownFields != null) {
16588         _unknownFields.WriteTo(ref output);
16589       }
16590     }
16591     #endif
16592 
16593     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16594     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()16595     public int CalculateSize() {
16596       int size = 0;
16597       if (HasMyString) {
16598         size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
16599       }
16600       if (_unknownFields != null) {
16601         size += _unknownFields.CalculateSize();
16602       }
16603       return size;
16604     }
16605 
16606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16607     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestExtensionOrderings2 other)16608     public void MergeFrom(TestExtensionOrderings2 other) {
16609       if (other == null) {
16610         return;
16611       }
16612       if (other.HasMyString) {
16613         MyString = other.MyString;
16614       }
16615       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16616     }
16617 
16618     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16619     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)16620     public void MergeFrom(pb::CodedInputStream input) {
16621     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16622       input.ReadRawMessage(this);
16623     #else
16624       uint tag;
16625       while ((tag = input.ReadTag()) != 0) {
16626         switch(tag) {
16627           default:
16628             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16629             break;
16630           case 10: {
16631             MyString = input.ReadString();
16632             break;
16633           }
16634         }
16635       }
16636     #endif
16637     }
16638 
16639     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16640     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16641     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)16642     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
16643       uint tag;
16644       while ((tag = input.ReadTag()) != 0) {
16645         switch(tag) {
16646           default:
16647             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
16648             break;
16649           case 10: {
16650             MyString = input.ReadString();
16651             break;
16652           }
16653         }
16654       }
16655     }
16656     #endif
16657 
16658     #region Nested types
16659     /// <summary>Container for nested types declared in the TestExtensionOrderings2 message type.</summary>
16660     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16661     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16662     public static partial class Types {
16663       public sealed partial class TestExtensionOrderings3 : pb::IMessage<TestExtensionOrderings3>
16664       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16665           , pb::IBufferMessage
16666       #endif
16667       {
16668         private static readonly pb::MessageParser<TestExtensionOrderings3> _parser = new pb::MessageParser<TestExtensionOrderings3>(() => new TestExtensionOrderings3());
16669         private pb::UnknownFieldSet _unknownFields;
16670         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16671         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16672         public static pb::MessageParser<TestExtensionOrderings3> Parser { get { return _parser; } }
16673 
16674         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16675         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16676         public static pbr::MessageDescriptor Descriptor {
16677           get { return global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Descriptor.NestedTypes[0]; }
16678         }
16679 
16680         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16681         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16682         pbr::MessageDescriptor pb::IMessage.Descriptor {
16683           get { return Descriptor; }
16684         }
16685 
16686         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16687         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionOrderings3()16688         public TestExtensionOrderings3() {
16689           OnConstruction();
16690         }
16691 
OnConstruction()16692         partial void OnConstruction();
16693 
16694         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16695         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionOrderings3(TestExtensionOrderings3 other)16696         public TestExtensionOrderings3(TestExtensionOrderings3 other) : this() {
16697           myString_ = other.myString_;
16698           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16699         }
16700 
16701         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16702         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()16703         public TestExtensionOrderings3 Clone() {
16704           return new TestExtensionOrderings3(this);
16705         }
16706 
16707         /// <summary>Field number for the "my_string" field.</summary>
16708         public const int MyStringFieldNumber = 1;
16709         private readonly static string MyStringDefaultValue = "";
16710 
16711         private string myString_;
16712         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16713         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16714         public string MyString {
16715           get { return myString_ ?? MyStringDefaultValue; }
16716           set {
16717             myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16718           }
16719         }
16720         /// <summary>Gets whether the "my_string" field is set</summary>
16721         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16722         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16723         public bool HasMyString {
16724           get { return myString_ != null; }
16725         }
16726         /// <summary>Clears the value of the "my_string" field</summary>
16727         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16728         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMyString()16729         public void ClearMyString() {
16730           myString_ = null;
16731         }
16732 
16733         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16734         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)16735         public override bool Equals(object other) {
16736           return Equals(other as TestExtensionOrderings3);
16737         }
16738 
16739         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16740         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestExtensionOrderings3 other)16741         public bool Equals(TestExtensionOrderings3 other) {
16742           if (ReferenceEquals(other, null)) {
16743             return false;
16744           }
16745           if (ReferenceEquals(other, this)) {
16746             return true;
16747           }
16748           if (MyString != other.MyString) return false;
16749           return Equals(_unknownFields, other._unknownFields);
16750         }
16751 
16752         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16753         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()16754         public override int GetHashCode() {
16755           int hash = 1;
16756           if (HasMyString) hash ^= MyString.GetHashCode();
16757           if (_unknownFields != null) {
16758             hash ^= _unknownFields.GetHashCode();
16759           }
16760           return hash;
16761         }
16762 
16763         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16764         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()16765         public override string ToString() {
16766           return pb::JsonFormatter.ToDiagnosticString(this);
16767         }
16768 
16769         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16770         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)16771         public void WriteTo(pb::CodedOutputStream output) {
16772         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16773           output.WriteRawMessage(this);
16774         #else
16775           if (HasMyString) {
16776             output.WriteRawTag(10);
16777             output.WriteString(MyString);
16778           }
16779           if (_unknownFields != null) {
16780             _unknownFields.WriteTo(output);
16781           }
16782         #endif
16783         }
16784 
16785         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16786         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16787         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16788         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16789           if (HasMyString) {
16790             output.WriteRawTag(10);
16791             output.WriteString(MyString);
16792           }
16793           if (_unknownFields != null) {
16794             _unknownFields.WriteTo(ref output);
16795           }
16796         }
16797         #endif
16798 
16799         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16800         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()16801         public int CalculateSize() {
16802           int size = 0;
16803           if (HasMyString) {
16804             size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
16805           }
16806           if (_unknownFields != null) {
16807             size += _unknownFields.CalculateSize();
16808           }
16809           return size;
16810         }
16811 
16812         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16813         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestExtensionOrderings3 other)16814         public void MergeFrom(TestExtensionOrderings3 other) {
16815           if (other == null) {
16816             return;
16817           }
16818           if (other.HasMyString) {
16819             MyString = other.MyString;
16820           }
16821           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16822         }
16823 
16824         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16825         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)16826         public void MergeFrom(pb::CodedInputStream input) {
16827         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16828           input.ReadRawMessage(this);
16829         #else
16830           uint tag;
16831           while ((tag = input.ReadTag()) != 0) {
16832             switch(tag) {
16833               default:
16834                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16835                 break;
16836               case 10: {
16837                 MyString = input.ReadString();
16838                 break;
16839               }
16840             }
16841           }
16842         #endif
16843         }
16844 
16845         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16846         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16847         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)16848         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
16849           uint tag;
16850           while ((tag = input.ReadTag()) != 0) {
16851             switch(tag) {
16852               default:
16853                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
16854                 break;
16855               case 10: {
16856                 MyString = input.ReadString();
16857                 break;
16858               }
16859             }
16860           }
16861         }
16862         #endif
16863 
16864         #region Extensions
16865         /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings3 message type.</summary>
16866         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16867         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16868         public static partial class Extensions {
16869           public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3> TestExtOrderings3 =
16870             new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3>(14, pb::FieldCodec.ForMessage(114, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Parser));
16871         }
16872         #endregion
16873 
16874       }
16875 
16876     }
16877     #endregion
16878 
16879     #region Extensions
16880     /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings2 message type.</summary>
16881     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16882     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16883     public static partial class Extensions {
16884       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2> TestExtOrderings2 =
16885         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2>(12, pb::FieldCodec.ForMessage(98, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Parser));
16886     }
16887     #endregion
16888 
16889   }
16890 
16891   public sealed partial class TestExtremeDefaultValues : pb::IMessage<TestExtremeDefaultValues>
16892   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16893       , pb::IBufferMessage
16894   #endif
16895   {
16896     private static readonly pb::MessageParser<TestExtremeDefaultValues> _parser = new pb::MessageParser<TestExtremeDefaultValues>(() => new TestExtremeDefaultValues());
16897     private pb::UnknownFieldSet _unknownFields;
16898     private int _hasBits0;
16899     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16900     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16901     public static pb::MessageParser<TestExtremeDefaultValues> Parser { get { return _parser; } }
16902 
16903     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16904     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16905     public static pbr::MessageDescriptor Descriptor {
16906       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[32]; }
16907     }
16908 
16909     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16910     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16911     pbr::MessageDescriptor pb::IMessage.Descriptor {
16912       get { return Descriptor; }
16913     }
16914 
16915     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16916     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtremeDefaultValues()16917     public TestExtremeDefaultValues() {
16918       OnConstruction();
16919     }
16920 
OnConstruction()16921     partial void OnConstruction();
16922 
16923     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16924     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtremeDefaultValues(TestExtremeDefaultValues other)16925     public TestExtremeDefaultValues(TestExtremeDefaultValues other) : this() {
16926       _hasBits0 = other._hasBits0;
16927       escapedBytes_ = other.escapedBytes_;
16928       largeUint32_ = other.largeUint32_;
16929       largeUint64_ = other.largeUint64_;
16930       smallInt32_ = other.smallInt32_;
16931       smallInt64_ = other.smallInt64_;
16932       reallySmallInt32_ = other.reallySmallInt32_;
16933       reallySmallInt64_ = other.reallySmallInt64_;
16934       utf8String_ = other.utf8String_;
16935       zeroFloat_ = other.zeroFloat_;
16936       oneFloat_ = other.oneFloat_;
16937       smallFloat_ = other.smallFloat_;
16938       negativeOneFloat_ = other.negativeOneFloat_;
16939       negativeFloat_ = other.negativeFloat_;
16940       largeFloat_ = other.largeFloat_;
16941       smallNegativeFloat_ = other.smallNegativeFloat_;
16942       infDouble_ = other.infDouble_;
16943       negInfDouble_ = other.negInfDouble_;
16944       nanDouble_ = other.nanDouble_;
16945       infFloat_ = other.infFloat_;
16946       negInfFloat_ = other.negInfFloat_;
16947       nanFloat_ = other.nanFloat_;
16948       cppTrigraph_ = other.cppTrigraph_;
16949       stringWithZero_ = other.stringWithZero_;
16950       bytesWithZero_ = other.bytesWithZero_;
16951       stringPieceWithZero_ = other.stringPieceWithZero_;
16952       cordWithZero_ = other.cordWithZero_;
16953       replacementString_ = other.replacementString_;
16954       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16955     }
16956 
16957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16958     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()16959     public TestExtremeDefaultValues Clone() {
16960       return new TestExtremeDefaultValues(this);
16961     }
16962 
16963     /// <summary>Field number for the "escaped_bytes" field.</summary>
16964     public const int EscapedBytesFieldNumber = 1;
16965     private readonly static pb::ByteString EscapedBytesDefaultValue = pb::ByteString.FromBase64("AAEHCAwKDQkLXCci/g==");
16966 
16967     private pb::ByteString escapedBytes_;
16968     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16969     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16970     public pb::ByteString EscapedBytes {
16971       get { return escapedBytes_ ?? EscapedBytesDefaultValue; }
16972       set {
16973         escapedBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16974       }
16975     }
16976     /// <summary>Gets whether the "escaped_bytes" field is set</summary>
16977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16979     public bool HasEscapedBytes {
16980       get { return escapedBytes_ != null; }
16981     }
16982     /// <summary>Clears the value of the "escaped_bytes" field</summary>
16983     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16984     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEscapedBytes()16985     public void ClearEscapedBytes() {
16986       escapedBytes_ = null;
16987     }
16988 
16989     /// <summary>Field number for the "large_uint32" field.</summary>
16990     public const int LargeUint32FieldNumber = 2;
16991     private readonly static uint LargeUint32DefaultValue = 4294967295;
16992 
16993     private uint largeUint32_;
16994     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
16995     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
16996     public uint LargeUint32 {
16997       get { if ((_hasBits0 & 1) != 0) { return largeUint32_; } else { return LargeUint32DefaultValue; } }
16998       set {
16999         _hasBits0 |= 1;
17000         largeUint32_ = value;
17001       }
17002     }
17003     /// <summary>Gets whether the "large_uint32" field is set</summary>
17004     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17005     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17006     public bool HasLargeUint32 {
17007       get { return (_hasBits0 & 1) != 0; }
17008     }
17009     /// <summary>Clears the value of the "large_uint32" field</summary>
17010     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17011     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearLargeUint32()17012     public void ClearLargeUint32() {
17013       _hasBits0 &= ~1;
17014     }
17015 
17016     /// <summary>Field number for the "large_uint64" field.</summary>
17017     public const int LargeUint64FieldNumber = 3;
17018     private readonly static ulong LargeUint64DefaultValue = 18446744073709551615UL;
17019 
17020     private ulong largeUint64_;
17021     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17022     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17023     public ulong LargeUint64 {
17024       get { if ((_hasBits0 & 2) != 0) { return largeUint64_; } else { return LargeUint64DefaultValue; } }
17025       set {
17026         _hasBits0 |= 2;
17027         largeUint64_ = value;
17028       }
17029     }
17030     /// <summary>Gets whether the "large_uint64" field is set</summary>
17031     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17032     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17033     public bool HasLargeUint64 {
17034       get { return (_hasBits0 & 2) != 0; }
17035     }
17036     /// <summary>Clears the value of the "large_uint64" field</summary>
17037     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17038     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearLargeUint64()17039     public void ClearLargeUint64() {
17040       _hasBits0 &= ~2;
17041     }
17042 
17043     /// <summary>Field number for the "small_int32" field.</summary>
17044     public const int SmallInt32FieldNumber = 4;
17045     private readonly static int SmallInt32DefaultValue = -2147483647;
17046 
17047     private int smallInt32_;
17048     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17049     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17050     public int SmallInt32 {
17051       get { if ((_hasBits0 & 4) != 0) { return smallInt32_; } else { return SmallInt32DefaultValue; } }
17052       set {
17053         _hasBits0 |= 4;
17054         smallInt32_ = value;
17055       }
17056     }
17057     /// <summary>Gets whether the "small_int32" field is set</summary>
17058     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17059     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17060     public bool HasSmallInt32 {
17061       get { return (_hasBits0 & 4) != 0; }
17062     }
17063     /// <summary>Clears the value of the "small_int32" field</summary>
17064     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17065     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSmallInt32()17066     public void ClearSmallInt32() {
17067       _hasBits0 &= ~4;
17068     }
17069 
17070     /// <summary>Field number for the "small_int64" field.</summary>
17071     public const int SmallInt64FieldNumber = 5;
17072     private readonly static long SmallInt64DefaultValue = -9223372036854775807L;
17073 
17074     private long smallInt64_;
17075     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17076     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17077     public long SmallInt64 {
17078       get { if ((_hasBits0 & 8) != 0) { return smallInt64_; } else { return SmallInt64DefaultValue; } }
17079       set {
17080         _hasBits0 |= 8;
17081         smallInt64_ = value;
17082       }
17083     }
17084     /// <summary>Gets whether the "small_int64" field is set</summary>
17085     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17086     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17087     public bool HasSmallInt64 {
17088       get { return (_hasBits0 & 8) != 0; }
17089     }
17090     /// <summary>Clears the value of the "small_int64" field</summary>
17091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17092     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSmallInt64()17093     public void ClearSmallInt64() {
17094       _hasBits0 &= ~8;
17095     }
17096 
17097     /// <summary>Field number for the "really_small_int32" field.</summary>
17098     public const int ReallySmallInt32FieldNumber = 21;
17099     private readonly static int ReallySmallInt32DefaultValue = -2147483648;
17100 
17101     private int reallySmallInt32_;
17102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17103     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17104     public int ReallySmallInt32 {
17105       get { if ((_hasBits0 & 131072) != 0) { return reallySmallInt32_; } else { return ReallySmallInt32DefaultValue; } }
17106       set {
17107         _hasBits0 |= 131072;
17108         reallySmallInt32_ = value;
17109       }
17110     }
17111     /// <summary>Gets whether the "really_small_int32" field is set</summary>
17112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17113     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17114     public bool HasReallySmallInt32 {
17115       get { return (_hasBits0 & 131072) != 0; }
17116     }
17117     /// <summary>Clears the value of the "really_small_int32" field</summary>
17118     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17119     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearReallySmallInt32()17120     public void ClearReallySmallInt32() {
17121       _hasBits0 &= ~131072;
17122     }
17123 
17124     /// <summary>Field number for the "really_small_int64" field.</summary>
17125     public const int ReallySmallInt64FieldNumber = 22;
17126     private readonly static long ReallySmallInt64DefaultValue = -9223372036854775808L;
17127 
17128     private long reallySmallInt64_;
17129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17130     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17131     public long ReallySmallInt64 {
17132       get { if ((_hasBits0 & 262144) != 0) { return reallySmallInt64_; } else { return ReallySmallInt64DefaultValue; } }
17133       set {
17134         _hasBits0 |= 262144;
17135         reallySmallInt64_ = value;
17136       }
17137     }
17138     /// <summary>Gets whether the "really_small_int64" field is set</summary>
17139     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17140     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17141     public bool HasReallySmallInt64 {
17142       get { return (_hasBits0 & 262144) != 0; }
17143     }
17144     /// <summary>Clears the value of the "really_small_int64" field</summary>
17145     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17146     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearReallySmallInt64()17147     public void ClearReallySmallInt64() {
17148       _hasBits0 &= ~262144;
17149     }
17150 
17151     /// <summary>Field number for the "utf8_string" field.</summary>
17152     public const int Utf8StringFieldNumber = 6;
17153     private readonly static string Utf8StringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("4Yi0"), 0, 3);
17154 
17155     private string utf8String_;
17156     /// <summary>
17157     /// The default value here is UTF-8 for "\u1234".  (We could also just type
17158     /// the UTF-8 text directly into this text file rather than escape it, but
17159     /// lots of people use editors that would be confused by this.)
17160     /// </summary>
17161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17162     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17163     public string Utf8String {
17164       get { return utf8String_ ?? Utf8StringDefaultValue; }
17165       set {
17166         utf8String_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17167       }
17168     }
17169     /// <summary>Gets whether the "utf8_string" field is set</summary>
17170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17171     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17172     public bool HasUtf8String {
17173       get { return utf8String_ != null; }
17174     }
17175     /// <summary>Clears the value of the "utf8_string" field</summary>
17176     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17177     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearUtf8String()17178     public void ClearUtf8String() {
17179       utf8String_ = null;
17180     }
17181 
17182     /// <summary>Field number for the "zero_float" field.</summary>
17183     public const int ZeroFloatFieldNumber = 7;
17184     private readonly static float ZeroFloatDefaultValue = 0F;
17185 
17186     private float zeroFloat_;
17187     /// <summary>
17188     /// Tests for single-precision floating-point values.
17189     /// </summary>
17190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17191     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17192     public float ZeroFloat {
17193       get { if ((_hasBits0 & 16) != 0) { return zeroFloat_; } else { return ZeroFloatDefaultValue; } }
17194       set {
17195         _hasBits0 |= 16;
17196         zeroFloat_ = value;
17197       }
17198     }
17199     /// <summary>Gets whether the "zero_float" field is set</summary>
17200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17202     public bool HasZeroFloat {
17203       get { return (_hasBits0 & 16) != 0; }
17204     }
17205     /// <summary>Clears the value of the "zero_float" field</summary>
17206     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17207     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearZeroFloat()17208     public void ClearZeroFloat() {
17209       _hasBits0 &= ~16;
17210     }
17211 
17212     /// <summary>Field number for the "one_float" field.</summary>
17213     public const int OneFloatFieldNumber = 8;
17214     private readonly static float OneFloatDefaultValue = 1F;
17215 
17216     private float oneFloat_;
17217     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17218     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17219     public float OneFloat {
17220       get { if ((_hasBits0 & 32) != 0) { return oneFloat_; } else { return OneFloatDefaultValue; } }
17221       set {
17222         _hasBits0 |= 32;
17223         oneFloat_ = value;
17224       }
17225     }
17226     /// <summary>Gets whether the "one_float" field is set</summary>
17227     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17228     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17229     public bool HasOneFloat {
17230       get { return (_hasBits0 & 32) != 0; }
17231     }
17232     /// <summary>Clears the value of the "one_float" field</summary>
17233     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17234     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneFloat()17235     public void ClearOneFloat() {
17236       _hasBits0 &= ~32;
17237     }
17238 
17239     /// <summary>Field number for the "small_float" field.</summary>
17240     public const int SmallFloatFieldNumber = 9;
17241     private readonly static float SmallFloatDefaultValue = 1.5F;
17242 
17243     private float smallFloat_;
17244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17245     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17246     public float SmallFloat {
17247       get { if ((_hasBits0 & 64) != 0) { return smallFloat_; } else { return SmallFloatDefaultValue; } }
17248       set {
17249         _hasBits0 |= 64;
17250         smallFloat_ = value;
17251       }
17252     }
17253     /// <summary>Gets whether the "small_float" field is set</summary>
17254     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17255     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17256     public bool HasSmallFloat {
17257       get { return (_hasBits0 & 64) != 0; }
17258     }
17259     /// <summary>Clears the value of the "small_float" field</summary>
17260     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17261     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSmallFloat()17262     public void ClearSmallFloat() {
17263       _hasBits0 &= ~64;
17264     }
17265 
17266     /// <summary>Field number for the "negative_one_float" field.</summary>
17267     public const int NegativeOneFloatFieldNumber = 10;
17268     private readonly static float NegativeOneFloatDefaultValue = -1F;
17269 
17270     private float negativeOneFloat_;
17271     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17272     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17273     public float NegativeOneFloat {
17274       get { if ((_hasBits0 & 128) != 0) { return negativeOneFloat_; } else { return NegativeOneFloatDefaultValue; } }
17275       set {
17276         _hasBits0 |= 128;
17277         negativeOneFloat_ = value;
17278       }
17279     }
17280     /// <summary>Gets whether the "negative_one_float" field is set</summary>
17281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17283     public bool HasNegativeOneFloat {
17284       get { return (_hasBits0 & 128) != 0; }
17285     }
17286     /// <summary>Clears the value of the "negative_one_float" field</summary>
17287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17288     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNegativeOneFloat()17289     public void ClearNegativeOneFloat() {
17290       _hasBits0 &= ~128;
17291     }
17292 
17293     /// <summary>Field number for the "negative_float" field.</summary>
17294     public const int NegativeFloatFieldNumber = 11;
17295     private readonly static float NegativeFloatDefaultValue = -1.5F;
17296 
17297     private float negativeFloat_;
17298     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17299     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17300     public float NegativeFloat {
17301       get { if ((_hasBits0 & 256) != 0) { return negativeFloat_; } else { return NegativeFloatDefaultValue; } }
17302       set {
17303         _hasBits0 |= 256;
17304         negativeFloat_ = value;
17305       }
17306     }
17307     /// <summary>Gets whether the "negative_float" field is set</summary>
17308     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17309     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17310     public bool HasNegativeFloat {
17311       get { return (_hasBits0 & 256) != 0; }
17312     }
17313     /// <summary>Clears the value of the "negative_float" field</summary>
17314     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17315     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNegativeFloat()17316     public void ClearNegativeFloat() {
17317       _hasBits0 &= ~256;
17318     }
17319 
17320     /// <summary>Field number for the "large_float" field.</summary>
17321     public const int LargeFloatFieldNumber = 12;
17322     private readonly static float LargeFloatDefaultValue = 2e+08F;
17323 
17324     private float largeFloat_;
17325     /// <summary>
17326     /// Using exponents
17327     /// </summary>
17328     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17329     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17330     public float LargeFloat {
17331       get { if ((_hasBits0 & 512) != 0) { return largeFloat_; } else { return LargeFloatDefaultValue; } }
17332       set {
17333         _hasBits0 |= 512;
17334         largeFloat_ = value;
17335       }
17336     }
17337     /// <summary>Gets whether the "large_float" field is set</summary>
17338     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17339     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17340     public bool HasLargeFloat {
17341       get { return (_hasBits0 & 512) != 0; }
17342     }
17343     /// <summary>Clears the value of the "large_float" field</summary>
17344     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17345     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearLargeFloat()17346     public void ClearLargeFloat() {
17347       _hasBits0 &= ~512;
17348     }
17349 
17350     /// <summary>Field number for the "small_negative_float" field.</summary>
17351     public const int SmallNegativeFloatFieldNumber = 13;
17352     private readonly static float SmallNegativeFloatDefaultValue = -8e-28F;
17353 
17354     private float smallNegativeFloat_;
17355     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17356     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17357     public float SmallNegativeFloat {
17358       get { if ((_hasBits0 & 1024) != 0) { return smallNegativeFloat_; } else { return SmallNegativeFloatDefaultValue; } }
17359       set {
17360         _hasBits0 |= 1024;
17361         smallNegativeFloat_ = value;
17362       }
17363     }
17364     /// <summary>Gets whether the "small_negative_float" field is set</summary>
17365     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17366     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17367     public bool HasSmallNegativeFloat {
17368       get { return (_hasBits0 & 1024) != 0; }
17369     }
17370     /// <summary>Clears the value of the "small_negative_float" field</summary>
17371     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17372     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSmallNegativeFloat()17373     public void ClearSmallNegativeFloat() {
17374       _hasBits0 &= ~1024;
17375     }
17376 
17377     /// <summary>Field number for the "inf_double" field.</summary>
17378     public const int InfDoubleFieldNumber = 14;
17379     private readonly static double InfDoubleDefaultValue = double.PositiveInfinity;
17380 
17381     private double infDouble_;
17382     /// <summary>
17383     /// Text for nonfinite floating-point values.
17384     /// </summary>
17385     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17386     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17387     public double InfDouble {
17388       get { if ((_hasBits0 & 2048) != 0) { return infDouble_; } else { return InfDoubleDefaultValue; } }
17389       set {
17390         _hasBits0 |= 2048;
17391         infDouble_ = value;
17392       }
17393     }
17394     /// <summary>Gets whether the "inf_double" field is set</summary>
17395     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17396     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17397     public bool HasInfDouble {
17398       get { return (_hasBits0 & 2048) != 0; }
17399     }
17400     /// <summary>Clears the value of the "inf_double" field</summary>
17401     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17402     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearInfDouble()17403     public void ClearInfDouble() {
17404       _hasBits0 &= ~2048;
17405     }
17406 
17407     /// <summary>Field number for the "neg_inf_double" field.</summary>
17408     public const int NegInfDoubleFieldNumber = 15;
17409     private readonly static double NegInfDoubleDefaultValue = double.NegativeInfinity;
17410 
17411     private double negInfDouble_;
17412     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17413     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17414     public double NegInfDouble {
17415       get { if ((_hasBits0 & 4096) != 0) { return negInfDouble_; } else { return NegInfDoubleDefaultValue; } }
17416       set {
17417         _hasBits0 |= 4096;
17418         negInfDouble_ = value;
17419       }
17420     }
17421     /// <summary>Gets whether the "neg_inf_double" field is set</summary>
17422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17423     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17424     public bool HasNegInfDouble {
17425       get { return (_hasBits0 & 4096) != 0; }
17426     }
17427     /// <summary>Clears the value of the "neg_inf_double" field</summary>
17428     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17429     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNegInfDouble()17430     public void ClearNegInfDouble() {
17431       _hasBits0 &= ~4096;
17432     }
17433 
17434     /// <summary>Field number for the "nan_double" field.</summary>
17435     public const int NanDoubleFieldNumber = 16;
17436     private readonly static double NanDoubleDefaultValue = double.NaN;
17437 
17438     private double nanDouble_;
17439     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17440     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17441     public double NanDouble {
17442       get { if ((_hasBits0 & 8192) != 0) { return nanDouble_; } else { return NanDoubleDefaultValue; } }
17443       set {
17444         _hasBits0 |= 8192;
17445         nanDouble_ = value;
17446       }
17447     }
17448     /// <summary>Gets whether the "nan_double" field is set</summary>
17449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17450     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17451     public bool HasNanDouble {
17452       get { return (_hasBits0 & 8192) != 0; }
17453     }
17454     /// <summary>Clears the value of the "nan_double" field</summary>
17455     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17456     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNanDouble()17457     public void ClearNanDouble() {
17458       _hasBits0 &= ~8192;
17459     }
17460 
17461     /// <summary>Field number for the "inf_float" field.</summary>
17462     public const int InfFloatFieldNumber = 17;
17463     private readonly static float InfFloatDefaultValue = float.PositiveInfinity;
17464 
17465     private float infFloat_;
17466     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17467     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17468     public float InfFloat {
17469       get { if ((_hasBits0 & 16384) != 0) { return infFloat_; } else { return InfFloatDefaultValue; } }
17470       set {
17471         _hasBits0 |= 16384;
17472         infFloat_ = value;
17473       }
17474     }
17475     /// <summary>Gets whether the "inf_float" field is set</summary>
17476     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17477     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17478     public bool HasInfFloat {
17479       get { return (_hasBits0 & 16384) != 0; }
17480     }
17481     /// <summary>Clears the value of the "inf_float" field</summary>
17482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17483     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearInfFloat()17484     public void ClearInfFloat() {
17485       _hasBits0 &= ~16384;
17486     }
17487 
17488     /// <summary>Field number for the "neg_inf_float" field.</summary>
17489     public const int NegInfFloatFieldNumber = 18;
17490     private readonly static float NegInfFloatDefaultValue = float.NegativeInfinity;
17491 
17492     private float negInfFloat_;
17493     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17494     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17495     public float NegInfFloat {
17496       get { if ((_hasBits0 & 32768) != 0) { return negInfFloat_; } else { return NegInfFloatDefaultValue; } }
17497       set {
17498         _hasBits0 |= 32768;
17499         negInfFloat_ = value;
17500       }
17501     }
17502     /// <summary>Gets whether the "neg_inf_float" field is set</summary>
17503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17504     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17505     public bool HasNegInfFloat {
17506       get { return (_hasBits0 & 32768) != 0; }
17507     }
17508     /// <summary>Clears the value of the "neg_inf_float" field</summary>
17509     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17510     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNegInfFloat()17511     public void ClearNegInfFloat() {
17512       _hasBits0 &= ~32768;
17513     }
17514 
17515     /// <summary>Field number for the "nan_float" field.</summary>
17516     public const int NanFloatFieldNumber = 19;
17517     private readonly static float NanFloatDefaultValue = float.NaN;
17518 
17519     private float nanFloat_;
17520     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17521     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17522     public float NanFloat {
17523       get { if ((_hasBits0 & 65536) != 0) { return nanFloat_; } else { return NanFloatDefaultValue; } }
17524       set {
17525         _hasBits0 |= 65536;
17526         nanFloat_ = value;
17527       }
17528     }
17529     /// <summary>Gets whether the "nan_float" field is set</summary>
17530     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17531     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17532     public bool HasNanFloat {
17533       get { return (_hasBits0 & 65536) != 0; }
17534     }
17535     /// <summary>Clears the value of the "nan_float" field</summary>
17536     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17537     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNanFloat()17538     public void ClearNanFloat() {
17539       _hasBits0 &= ~65536;
17540     }
17541 
17542     /// <summary>Field number for the "cpp_trigraph" field.</summary>
17543     public const int CppTrigraphFieldNumber = 20;
17544     private readonly static string CppTrigraphDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("PyA/ID8/ID8/ID8/PyA/Py8gPz8t"), 0, 21);
17545 
17546     private string cppTrigraph_;
17547     /// <summary>
17548     /// Tests for C++ trigraphs.
17549     /// Trigraphs should be escaped in C++ generated files, but they should not be
17550     /// escaped for other languages.
17551     /// Note that in .proto file, "\?" is a valid way to escape ? in string
17552     /// literals.
17553     /// </summary>
17554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17555     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17556     public string CppTrigraph {
17557       get { return cppTrigraph_ ?? CppTrigraphDefaultValue; }
17558       set {
17559         cppTrigraph_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17560       }
17561     }
17562     /// <summary>Gets whether the "cpp_trigraph" field is set</summary>
17563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17564     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17565     public bool HasCppTrigraph {
17566       get { return cppTrigraph_ != null; }
17567     }
17568     /// <summary>Clears the value of the "cpp_trigraph" field</summary>
17569     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17570     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearCppTrigraph()17571     public void ClearCppTrigraph() {
17572       cppTrigraph_ = null;
17573     }
17574 
17575     /// <summary>Field number for the "string_with_zero" field.</summary>
17576     public const int StringWithZeroFieldNumber = 23;
17577     private readonly static string StringWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsAGxv"), 0, 6);
17578 
17579     private string stringWithZero_;
17580     /// <summary>
17581     /// String defaults containing the character '\000'
17582     /// </summary>
17583     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17584     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17585     public string StringWithZero {
17586       get { return stringWithZero_ ?? StringWithZeroDefaultValue; }
17587       set {
17588         stringWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17589       }
17590     }
17591     /// <summary>Gets whether the "string_with_zero" field is set</summary>
17592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17593     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17594     public bool HasStringWithZero {
17595       get { return stringWithZero_ != null; }
17596     }
17597     /// <summary>Clears the value of the "string_with_zero" field</summary>
17598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStringWithZero()17600     public void ClearStringWithZero() {
17601       stringWithZero_ = null;
17602     }
17603 
17604     /// <summary>Field number for the "bytes_with_zero" field.</summary>
17605     public const int BytesWithZeroFieldNumber = 24;
17606     private readonly static pb::ByteString BytesWithZeroDefaultValue = pb::ByteString.FromBase64("d29yAGxk");
17607 
17608     private pb::ByteString bytesWithZero_;
17609     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17610     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17611     public pb::ByteString BytesWithZero {
17612       get { return bytesWithZero_ ?? BytesWithZeroDefaultValue; }
17613       set {
17614         bytesWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17615       }
17616     }
17617     /// <summary>Gets whether the "bytes_with_zero" field is set</summary>
17618     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17619     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17620     public bool HasBytesWithZero {
17621       get { return bytesWithZero_ != null; }
17622     }
17623     /// <summary>Clears the value of the "bytes_with_zero" field</summary>
17624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17625     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBytesWithZero()17626     public void ClearBytesWithZero() {
17627       bytesWithZero_ = null;
17628     }
17629 
17630     /// <summary>Field number for the "string_piece_with_zero" field.</summary>
17631     public const int StringPieceWithZeroFieldNumber = 25;
17632     private readonly static string StringPieceWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWIAYw=="), 0, 4);
17633 
17634     private string stringPieceWithZero_;
17635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17636     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17637     public string StringPieceWithZero {
17638       get { return stringPieceWithZero_ ?? StringPieceWithZeroDefaultValue; }
17639       set {
17640         stringPieceWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17641       }
17642     }
17643     /// <summary>Gets whether the "string_piece_with_zero" field is set</summary>
17644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17645     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17646     public bool HasStringPieceWithZero {
17647       get { return stringPieceWithZero_ != null; }
17648     }
17649     /// <summary>Clears the value of the "string_piece_with_zero" field</summary>
17650     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17651     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStringPieceWithZero()17652     public void ClearStringPieceWithZero() {
17653       stringPieceWithZero_ = null;
17654     }
17655 
17656     /// <summary>Field number for the "cord_with_zero" field.</summary>
17657     public const int CordWithZeroFieldNumber = 26;
17658     private readonly static string CordWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIAMw=="), 0, 4);
17659 
17660     private string cordWithZero_;
17661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17662     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17663     public string CordWithZero {
17664       get { return cordWithZero_ ?? CordWithZeroDefaultValue; }
17665       set {
17666         cordWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17667       }
17668     }
17669     /// <summary>Gets whether the "cord_with_zero" field is set</summary>
17670     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17671     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17672     public bool HasCordWithZero {
17673       get { return cordWithZero_ != null; }
17674     }
17675     /// <summary>Clears the value of the "cord_with_zero" field</summary>
17676     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17677     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearCordWithZero()17678     public void ClearCordWithZero() {
17679       cordWithZero_ = null;
17680     }
17681 
17682     /// <summary>Field number for the "replacement_string" field.</summary>
17683     public const int ReplacementStringFieldNumber = 27;
17684     private readonly static string ReplacementStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("JHt1bmtub3dufQ=="), 0, 10);
17685 
17686     private string replacementString_;
17687     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17688     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17689     public string ReplacementString {
17690       get { return replacementString_ ?? ReplacementStringDefaultValue; }
17691       set {
17692         replacementString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17693       }
17694     }
17695     /// <summary>Gets whether the "replacement_string" field is set</summary>
17696     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17697     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
17698     public bool HasReplacementString {
17699       get { return replacementString_ != null; }
17700     }
17701     /// <summary>Clears the value of the "replacement_string" field</summary>
17702     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17703     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearReplacementString()17704     public void ClearReplacementString() {
17705       replacementString_ = null;
17706     }
17707 
17708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)17710     public override bool Equals(object other) {
17711       return Equals(other as TestExtremeDefaultValues);
17712     }
17713 
17714     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17715     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestExtremeDefaultValues other)17716     public bool Equals(TestExtremeDefaultValues other) {
17717       if (ReferenceEquals(other, null)) {
17718         return false;
17719       }
17720       if (ReferenceEquals(other, this)) {
17721         return true;
17722       }
17723       if (EscapedBytes != other.EscapedBytes) return false;
17724       if (LargeUint32 != other.LargeUint32) return false;
17725       if (LargeUint64 != other.LargeUint64) return false;
17726       if (SmallInt32 != other.SmallInt32) return false;
17727       if (SmallInt64 != other.SmallInt64) return false;
17728       if (ReallySmallInt32 != other.ReallySmallInt32) return false;
17729       if (ReallySmallInt64 != other.ReallySmallInt64) return false;
17730       if (Utf8String != other.Utf8String) return false;
17731       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ZeroFloat, other.ZeroFloat)) return false;
17732       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneFloat, other.OneFloat)) return false;
17733       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallFloat, other.SmallFloat)) return false;
17734       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeOneFloat, other.NegativeOneFloat)) return false;
17735       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeFloat, other.NegativeFloat)) return false;
17736       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LargeFloat, other.LargeFloat)) return false;
17737       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallNegativeFloat, other.SmallNegativeFloat)) return false;
17738       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InfDouble, other.InfDouble)) return false;
17739       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NegInfDouble, other.NegInfDouble)) return false;
17740       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NanDouble, other.NanDouble)) return false;
17741       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfFloat, other.InfFloat)) return false;
17742       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegInfFloat, other.NegInfFloat)) return false;
17743       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NanFloat, other.NanFloat)) return false;
17744       if (CppTrigraph != other.CppTrigraph) return false;
17745       if (StringWithZero != other.StringWithZero) return false;
17746       if (BytesWithZero != other.BytesWithZero) return false;
17747       if (StringPieceWithZero != other.StringPieceWithZero) return false;
17748       if (CordWithZero != other.CordWithZero) return false;
17749       if (ReplacementString != other.ReplacementString) return false;
17750       return Equals(_unknownFields, other._unknownFields);
17751     }
17752 
17753     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17754     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()17755     public override int GetHashCode() {
17756       int hash = 1;
17757       if (HasEscapedBytes) hash ^= EscapedBytes.GetHashCode();
17758       if (HasLargeUint32) hash ^= LargeUint32.GetHashCode();
17759       if (HasLargeUint64) hash ^= LargeUint64.GetHashCode();
17760       if (HasSmallInt32) hash ^= SmallInt32.GetHashCode();
17761       if (HasSmallInt64) hash ^= SmallInt64.GetHashCode();
17762       if (HasReallySmallInt32) hash ^= ReallySmallInt32.GetHashCode();
17763       if (HasReallySmallInt64) hash ^= ReallySmallInt64.GetHashCode();
17764       if (HasUtf8String) hash ^= Utf8String.GetHashCode();
17765       if (HasZeroFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ZeroFloat);
17766       if (HasOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneFloat);
17767       if (HasSmallFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallFloat);
17768       if (HasNegativeOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeOneFloat);
17769       if (HasNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeFloat);
17770       if (HasLargeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LargeFloat);
17771       if (HasSmallNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallNegativeFloat);
17772       if (HasInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InfDouble);
17773       if (HasNegInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NegInfDouble);
17774       if (HasNanDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NanDouble);
17775       if (HasInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfFloat);
17776       if (HasNegInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegInfFloat);
17777       if (HasNanFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NanFloat);
17778       if (HasCppTrigraph) hash ^= CppTrigraph.GetHashCode();
17779       if (HasStringWithZero) hash ^= StringWithZero.GetHashCode();
17780       if (HasBytesWithZero) hash ^= BytesWithZero.GetHashCode();
17781       if (HasStringPieceWithZero) hash ^= StringPieceWithZero.GetHashCode();
17782       if (HasCordWithZero) hash ^= CordWithZero.GetHashCode();
17783       if (HasReplacementString) hash ^= ReplacementString.GetHashCode();
17784       if (_unknownFields != null) {
17785         hash ^= _unknownFields.GetHashCode();
17786       }
17787       return hash;
17788     }
17789 
17790     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17791     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()17792     public override string ToString() {
17793       return pb::JsonFormatter.ToDiagnosticString(this);
17794     }
17795 
17796     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17797     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)17798     public void WriteTo(pb::CodedOutputStream output) {
17799     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
17800       output.WriteRawMessage(this);
17801     #else
17802       if (HasEscapedBytes) {
17803         output.WriteRawTag(10);
17804         output.WriteBytes(EscapedBytes);
17805       }
17806       if (HasLargeUint32) {
17807         output.WriteRawTag(16);
17808         output.WriteUInt32(LargeUint32);
17809       }
17810       if (HasLargeUint64) {
17811         output.WriteRawTag(24);
17812         output.WriteUInt64(LargeUint64);
17813       }
17814       if (HasSmallInt32) {
17815         output.WriteRawTag(32);
17816         output.WriteInt32(SmallInt32);
17817       }
17818       if (HasSmallInt64) {
17819         output.WriteRawTag(40);
17820         output.WriteInt64(SmallInt64);
17821       }
17822       if (HasUtf8String) {
17823         output.WriteRawTag(50);
17824         output.WriteString(Utf8String);
17825       }
17826       if (HasZeroFloat) {
17827         output.WriteRawTag(61);
17828         output.WriteFloat(ZeroFloat);
17829       }
17830       if (HasOneFloat) {
17831         output.WriteRawTag(69);
17832         output.WriteFloat(OneFloat);
17833       }
17834       if (HasSmallFloat) {
17835         output.WriteRawTag(77);
17836         output.WriteFloat(SmallFloat);
17837       }
17838       if (HasNegativeOneFloat) {
17839         output.WriteRawTag(85);
17840         output.WriteFloat(NegativeOneFloat);
17841       }
17842       if (HasNegativeFloat) {
17843         output.WriteRawTag(93);
17844         output.WriteFloat(NegativeFloat);
17845       }
17846       if (HasLargeFloat) {
17847         output.WriteRawTag(101);
17848         output.WriteFloat(LargeFloat);
17849       }
17850       if (HasSmallNegativeFloat) {
17851         output.WriteRawTag(109);
17852         output.WriteFloat(SmallNegativeFloat);
17853       }
17854       if (HasInfDouble) {
17855         output.WriteRawTag(113);
17856         output.WriteDouble(InfDouble);
17857       }
17858       if (HasNegInfDouble) {
17859         output.WriteRawTag(121);
17860         output.WriteDouble(NegInfDouble);
17861       }
17862       if (HasNanDouble) {
17863         output.WriteRawTag(129, 1);
17864         output.WriteDouble(NanDouble);
17865       }
17866       if (HasInfFloat) {
17867         output.WriteRawTag(141, 1);
17868         output.WriteFloat(InfFloat);
17869       }
17870       if (HasNegInfFloat) {
17871         output.WriteRawTag(149, 1);
17872         output.WriteFloat(NegInfFloat);
17873       }
17874       if (HasNanFloat) {
17875         output.WriteRawTag(157, 1);
17876         output.WriteFloat(NanFloat);
17877       }
17878       if (HasCppTrigraph) {
17879         output.WriteRawTag(162, 1);
17880         output.WriteString(CppTrigraph);
17881       }
17882       if (HasReallySmallInt32) {
17883         output.WriteRawTag(168, 1);
17884         output.WriteInt32(ReallySmallInt32);
17885       }
17886       if (HasReallySmallInt64) {
17887         output.WriteRawTag(176, 1);
17888         output.WriteInt64(ReallySmallInt64);
17889       }
17890       if (HasStringWithZero) {
17891         output.WriteRawTag(186, 1);
17892         output.WriteString(StringWithZero);
17893       }
17894       if (HasBytesWithZero) {
17895         output.WriteRawTag(194, 1);
17896         output.WriteBytes(BytesWithZero);
17897       }
17898       if (HasStringPieceWithZero) {
17899         output.WriteRawTag(202, 1);
17900         output.WriteString(StringPieceWithZero);
17901       }
17902       if (HasCordWithZero) {
17903         output.WriteRawTag(210, 1);
17904         output.WriteString(CordWithZero);
17905       }
17906       if (HasReplacementString) {
17907         output.WriteRawTag(218, 1);
17908         output.WriteString(ReplacementString);
17909       }
17910       if (_unknownFields != null) {
17911         _unknownFields.WriteTo(output);
17912       }
17913     #endif
17914     }
17915 
17916     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
17917     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
17918     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)17919     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
17920       if (HasEscapedBytes) {
17921         output.WriteRawTag(10);
17922         output.WriteBytes(EscapedBytes);
17923       }
17924       if (HasLargeUint32) {
17925         output.WriteRawTag(16);
17926         output.WriteUInt32(LargeUint32);
17927       }
17928       if (HasLargeUint64) {
17929         output.WriteRawTag(24);
17930         output.WriteUInt64(LargeUint64);
17931       }
17932       if (HasSmallInt32) {
17933         output.WriteRawTag(32);
17934         output.WriteInt32(SmallInt32);
17935       }
17936       if (HasSmallInt64) {
17937         output.WriteRawTag(40);
17938         output.WriteInt64(SmallInt64);
17939       }
17940       if (HasUtf8String) {
17941         output.WriteRawTag(50);
17942         output.WriteString(Utf8String);
17943       }
17944       if (HasZeroFloat) {
17945         output.WriteRawTag(61);
17946         output.WriteFloat(ZeroFloat);
17947       }
17948       if (HasOneFloat) {
17949         output.WriteRawTag(69);
17950         output.WriteFloat(OneFloat);
17951       }
17952       if (HasSmallFloat) {
17953         output.WriteRawTag(77);
17954         output.WriteFloat(SmallFloat);
17955       }
17956       if (HasNegativeOneFloat) {
17957         output.WriteRawTag(85);
17958         output.WriteFloat(NegativeOneFloat);
17959       }
17960       if (HasNegativeFloat) {
17961         output.WriteRawTag(93);
17962         output.WriteFloat(NegativeFloat);
17963       }
17964       if (HasLargeFloat) {
17965         output.WriteRawTag(101);
17966         output.WriteFloat(LargeFloat);
17967       }
17968       if (HasSmallNegativeFloat) {
17969         output.WriteRawTag(109);
17970         output.WriteFloat(SmallNegativeFloat);
17971       }
17972       if (HasInfDouble) {
17973         output.WriteRawTag(113);
17974         output.WriteDouble(InfDouble);
17975       }
17976       if (HasNegInfDouble) {
17977         output.WriteRawTag(121);
17978         output.WriteDouble(NegInfDouble);
17979       }
17980       if (HasNanDouble) {
17981         output.WriteRawTag(129, 1);
17982         output.WriteDouble(NanDouble);
17983       }
17984       if (HasInfFloat) {
17985         output.WriteRawTag(141, 1);
17986         output.WriteFloat(InfFloat);
17987       }
17988       if (HasNegInfFloat) {
17989         output.WriteRawTag(149, 1);
17990         output.WriteFloat(NegInfFloat);
17991       }
17992       if (HasNanFloat) {
17993         output.WriteRawTag(157, 1);
17994         output.WriteFloat(NanFloat);
17995       }
17996       if (HasCppTrigraph) {
17997         output.WriteRawTag(162, 1);
17998         output.WriteString(CppTrigraph);
17999       }
18000       if (HasReallySmallInt32) {
18001         output.WriteRawTag(168, 1);
18002         output.WriteInt32(ReallySmallInt32);
18003       }
18004       if (HasReallySmallInt64) {
18005         output.WriteRawTag(176, 1);
18006         output.WriteInt64(ReallySmallInt64);
18007       }
18008       if (HasStringWithZero) {
18009         output.WriteRawTag(186, 1);
18010         output.WriteString(StringWithZero);
18011       }
18012       if (HasBytesWithZero) {
18013         output.WriteRawTag(194, 1);
18014         output.WriteBytes(BytesWithZero);
18015       }
18016       if (HasStringPieceWithZero) {
18017         output.WriteRawTag(202, 1);
18018         output.WriteString(StringPieceWithZero);
18019       }
18020       if (HasCordWithZero) {
18021         output.WriteRawTag(210, 1);
18022         output.WriteString(CordWithZero);
18023       }
18024       if (HasReplacementString) {
18025         output.WriteRawTag(218, 1);
18026         output.WriteString(ReplacementString);
18027       }
18028       if (_unknownFields != null) {
18029         _unknownFields.WriteTo(ref output);
18030       }
18031     }
18032     #endif
18033 
18034     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18035     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()18036     public int CalculateSize() {
18037       int size = 0;
18038       if (HasEscapedBytes) {
18039         size += 1 + pb::CodedOutputStream.ComputeBytesSize(EscapedBytes);
18040       }
18041       if (HasLargeUint32) {
18042         size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LargeUint32);
18043       }
18044       if (HasLargeUint64) {
18045         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LargeUint64);
18046       }
18047       if (HasSmallInt32) {
18048         size += 1 + pb::CodedOutputStream.ComputeInt32Size(SmallInt32);
18049       }
18050       if (HasSmallInt64) {
18051         size += 1 + pb::CodedOutputStream.ComputeInt64Size(SmallInt64);
18052       }
18053       if (HasReallySmallInt32) {
18054         size += 2 + pb::CodedOutputStream.ComputeInt32Size(ReallySmallInt32);
18055       }
18056       if (HasReallySmallInt64) {
18057         size += 2 + pb::CodedOutputStream.ComputeInt64Size(ReallySmallInt64);
18058       }
18059       if (HasUtf8String) {
18060         size += 1 + pb::CodedOutputStream.ComputeStringSize(Utf8String);
18061       }
18062       if (HasZeroFloat) {
18063         size += 1 + 4;
18064       }
18065       if (HasOneFloat) {
18066         size += 1 + 4;
18067       }
18068       if (HasSmallFloat) {
18069         size += 1 + 4;
18070       }
18071       if (HasNegativeOneFloat) {
18072         size += 1 + 4;
18073       }
18074       if (HasNegativeFloat) {
18075         size += 1 + 4;
18076       }
18077       if (HasLargeFloat) {
18078         size += 1 + 4;
18079       }
18080       if (HasSmallNegativeFloat) {
18081         size += 1 + 4;
18082       }
18083       if (HasInfDouble) {
18084         size += 1 + 8;
18085       }
18086       if (HasNegInfDouble) {
18087         size += 1 + 8;
18088       }
18089       if (HasNanDouble) {
18090         size += 2 + 8;
18091       }
18092       if (HasInfFloat) {
18093         size += 2 + 4;
18094       }
18095       if (HasNegInfFloat) {
18096         size += 2 + 4;
18097       }
18098       if (HasNanFloat) {
18099         size += 2 + 4;
18100       }
18101       if (HasCppTrigraph) {
18102         size += 2 + pb::CodedOutputStream.ComputeStringSize(CppTrigraph);
18103       }
18104       if (HasStringWithZero) {
18105         size += 2 + pb::CodedOutputStream.ComputeStringSize(StringWithZero);
18106       }
18107       if (HasBytesWithZero) {
18108         size += 2 + pb::CodedOutputStream.ComputeBytesSize(BytesWithZero);
18109       }
18110       if (HasStringPieceWithZero) {
18111         size += 2 + pb::CodedOutputStream.ComputeStringSize(StringPieceWithZero);
18112       }
18113       if (HasCordWithZero) {
18114         size += 2 + pb::CodedOutputStream.ComputeStringSize(CordWithZero);
18115       }
18116       if (HasReplacementString) {
18117         size += 2 + pb::CodedOutputStream.ComputeStringSize(ReplacementString);
18118       }
18119       if (_unknownFields != null) {
18120         size += _unknownFields.CalculateSize();
18121       }
18122       return size;
18123     }
18124 
18125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18126     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestExtremeDefaultValues other)18127     public void MergeFrom(TestExtremeDefaultValues other) {
18128       if (other == null) {
18129         return;
18130       }
18131       if (other.HasEscapedBytes) {
18132         EscapedBytes = other.EscapedBytes;
18133       }
18134       if (other.HasLargeUint32) {
18135         LargeUint32 = other.LargeUint32;
18136       }
18137       if (other.HasLargeUint64) {
18138         LargeUint64 = other.LargeUint64;
18139       }
18140       if (other.HasSmallInt32) {
18141         SmallInt32 = other.SmallInt32;
18142       }
18143       if (other.HasSmallInt64) {
18144         SmallInt64 = other.SmallInt64;
18145       }
18146       if (other.HasReallySmallInt32) {
18147         ReallySmallInt32 = other.ReallySmallInt32;
18148       }
18149       if (other.HasReallySmallInt64) {
18150         ReallySmallInt64 = other.ReallySmallInt64;
18151       }
18152       if (other.HasUtf8String) {
18153         Utf8String = other.Utf8String;
18154       }
18155       if (other.HasZeroFloat) {
18156         ZeroFloat = other.ZeroFloat;
18157       }
18158       if (other.HasOneFloat) {
18159         OneFloat = other.OneFloat;
18160       }
18161       if (other.HasSmallFloat) {
18162         SmallFloat = other.SmallFloat;
18163       }
18164       if (other.HasNegativeOneFloat) {
18165         NegativeOneFloat = other.NegativeOneFloat;
18166       }
18167       if (other.HasNegativeFloat) {
18168         NegativeFloat = other.NegativeFloat;
18169       }
18170       if (other.HasLargeFloat) {
18171         LargeFloat = other.LargeFloat;
18172       }
18173       if (other.HasSmallNegativeFloat) {
18174         SmallNegativeFloat = other.SmallNegativeFloat;
18175       }
18176       if (other.HasInfDouble) {
18177         InfDouble = other.InfDouble;
18178       }
18179       if (other.HasNegInfDouble) {
18180         NegInfDouble = other.NegInfDouble;
18181       }
18182       if (other.HasNanDouble) {
18183         NanDouble = other.NanDouble;
18184       }
18185       if (other.HasInfFloat) {
18186         InfFloat = other.InfFloat;
18187       }
18188       if (other.HasNegInfFloat) {
18189         NegInfFloat = other.NegInfFloat;
18190       }
18191       if (other.HasNanFloat) {
18192         NanFloat = other.NanFloat;
18193       }
18194       if (other.HasCppTrigraph) {
18195         CppTrigraph = other.CppTrigraph;
18196       }
18197       if (other.HasStringWithZero) {
18198         StringWithZero = other.StringWithZero;
18199       }
18200       if (other.HasBytesWithZero) {
18201         BytesWithZero = other.BytesWithZero;
18202       }
18203       if (other.HasStringPieceWithZero) {
18204         StringPieceWithZero = other.StringPieceWithZero;
18205       }
18206       if (other.HasCordWithZero) {
18207         CordWithZero = other.CordWithZero;
18208       }
18209       if (other.HasReplacementString) {
18210         ReplacementString = other.ReplacementString;
18211       }
18212       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
18213     }
18214 
18215     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18216     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)18217     public void MergeFrom(pb::CodedInputStream input) {
18218     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18219       input.ReadRawMessage(this);
18220     #else
18221       uint tag;
18222       while ((tag = input.ReadTag()) != 0) {
18223         switch(tag) {
18224           default:
18225             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
18226             break;
18227           case 10: {
18228             EscapedBytes = input.ReadBytes();
18229             break;
18230           }
18231           case 16: {
18232             LargeUint32 = input.ReadUInt32();
18233             break;
18234           }
18235           case 24: {
18236             LargeUint64 = input.ReadUInt64();
18237             break;
18238           }
18239           case 32: {
18240             SmallInt32 = input.ReadInt32();
18241             break;
18242           }
18243           case 40: {
18244             SmallInt64 = input.ReadInt64();
18245             break;
18246           }
18247           case 50: {
18248             Utf8String = input.ReadString();
18249             break;
18250           }
18251           case 61: {
18252             ZeroFloat = input.ReadFloat();
18253             break;
18254           }
18255           case 69: {
18256             OneFloat = input.ReadFloat();
18257             break;
18258           }
18259           case 77: {
18260             SmallFloat = input.ReadFloat();
18261             break;
18262           }
18263           case 85: {
18264             NegativeOneFloat = input.ReadFloat();
18265             break;
18266           }
18267           case 93: {
18268             NegativeFloat = input.ReadFloat();
18269             break;
18270           }
18271           case 101: {
18272             LargeFloat = input.ReadFloat();
18273             break;
18274           }
18275           case 109: {
18276             SmallNegativeFloat = input.ReadFloat();
18277             break;
18278           }
18279           case 113: {
18280             InfDouble = input.ReadDouble();
18281             break;
18282           }
18283           case 121: {
18284             NegInfDouble = input.ReadDouble();
18285             break;
18286           }
18287           case 129: {
18288             NanDouble = input.ReadDouble();
18289             break;
18290           }
18291           case 141: {
18292             InfFloat = input.ReadFloat();
18293             break;
18294           }
18295           case 149: {
18296             NegInfFloat = input.ReadFloat();
18297             break;
18298           }
18299           case 157: {
18300             NanFloat = input.ReadFloat();
18301             break;
18302           }
18303           case 162: {
18304             CppTrigraph = input.ReadString();
18305             break;
18306           }
18307           case 168: {
18308             ReallySmallInt32 = input.ReadInt32();
18309             break;
18310           }
18311           case 176: {
18312             ReallySmallInt64 = input.ReadInt64();
18313             break;
18314           }
18315           case 186: {
18316             StringWithZero = input.ReadString();
18317             break;
18318           }
18319           case 194: {
18320             BytesWithZero = input.ReadBytes();
18321             break;
18322           }
18323           case 202: {
18324             StringPieceWithZero = input.ReadString();
18325             break;
18326           }
18327           case 210: {
18328             CordWithZero = input.ReadString();
18329             break;
18330           }
18331           case 218: {
18332             ReplacementString = input.ReadString();
18333             break;
18334           }
18335         }
18336       }
18337     #endif
18338     }
18339 
18340     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18342     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)18343     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
18344       uint tag;
18345       while ((tag = input.ReadTag()) != 0) {
18346         switch(tag) {
18347           default:
18348             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
18349             break;
18350           case 10: {
18351             EscapedBytes = input.ReadBytes();
18352             break;
18353           }
18354           case 16: {
18355             LargeUint32 = input.ReadUInt32();
18356             break;
18357           }
18358           case 24: {
18359             LargeUint64 = input.ReadUInt64();
18360             break;
18361           }
18362           case 32: {
18363             SmallInt32 = input.ReadInt32();
18364             break;
18365           }
18366           case 40: {
18367             SmallInt64 = input.ReadInt64();
18368             break;
18369           }
18370           case 50: {
18371             Utf8String = input.ReadString();
18372             break;
18373           }
18374           case 61: {
18375             ZeroFloat = input.ReadFloat();
18376             break;
18377           }
18378           case 69: {
18379             OneFloat = input.ReadFloat();
18380             break;
18381           }
18382           case 77: {
18383             SmallFloat = input.ReadFloat();
18384             break;
18385           }
18386           case 85: {
18387             NegativeOneFloat = input.ReadFloat();
18388             break;
18389           }
18390           case 93: {
18391             NegativeFloat = input.ReadFloat();
18392             break;
18393           }
18394           case 101: {
18395             LargeFloat = input.ReadFloat();
18396             break;
18397           }
18398           case 109: {
18399             SmallNegativeFloat = input.ReadFloat();
18400             break;
18401           }
18402           case 113: {
18403             InfDouble = input.ReadDouble();
18404             break;
18405           }
18406           case 121: {
18407             NegInfDouble = input.ReadDouble();
18408             break;
18409           }
18410           case 129: {
18411             NanDouble = input.ReadDouble();
18412             break;
18413           }
18414           case 141: {
18415             InfFloat = input.ReadFloat();
18416             break;
18417           }
18418           case 149: {
18419             NegInfFloat = input.ReadFloat();
18420             break;
18421           }
18422           case 157: {
18423             NanFloat = input.ReadFloat();
18424             break;
18425           }
18426           case 162: {
18427             CppTrigraph = input.ReadString();
18428             break;
18429           }
18430           case 168: {
18431             ReallySmallInt32 = input.ReadInt32();
18432             break;
18433           }
18434           case 176: {
18435             ReallySmallInt64 = input.ReadInt64();
18436             break;
18437           }
18438           case 186: {
18439             StringWithZero = input.ReadString();
18440             break;
18441           }
18442           case 194: {
18443             BytesWithZero = input.ReadBytes();
18444             break;
18445           }
18446           case 202: {
18447             StringPieceWithZero = input.ReadString();
18448             break;
18449           }
18450           case 210: {
18451             CordWithZero = input.ReadString();
18452             break;
18453           }
18454           case 218: {
18455             ReplacementString = input.ReadString();
18456             break;
18457           }
18458         }
18459       }
18460     }
18461     #endif
18462 
18463   }
18464 
18465   public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage>
18466   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18467       , pb::IBufferMessage
18468   #endif
18469   {
18470     private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage());
18471     private pb::UnknownFieldSet _unknownFields;
18472     private int _hasBits0;
18473     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18474     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18475     public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } }
18476 
18477     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18478     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18479     public static pbr::MessageDescriptor Descriptor {
18480       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[33]; }
18481     }
18482 
18483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18484     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18485     pbr::MessageDescriptor pb::IMessage.Descriptor {
18486       get { return Descriptor; }
18487     }
18488 
18489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18490     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SparseEnumMessage()18491     public SparseEnumMessage() {
18492       OnConstruction();
18493     }
18494 
OnConstruction()18495     partial void OnConstruction();
18496 
18497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18498     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SparseEnumMessage(SparseEnumMessage other)18499     public SparseEnumMessage(SparseEnumMessage other) : this() {
18500       _hasBits0 = other._hasBits0;
18501       sparseEnum_ = other.sparseEnum_;
18502       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
18503     }
18504 
18505     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18506     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()18507     public SparseEnumMessage Clone() {
18508       return new SparseEnumMessage(this);
18509     }
18510 
18511     /// <summary>Field number for the "sparse_enum" field.</summary>
18512     public const int SparseEnumFieldNumber = 1;
18513     private readonly static global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum.SparseA;
18514 
18515     private global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum sparseEnum_;
18516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18517     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18518     public global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnum {
18519       get { if ((_hasBits0 & 1) != 0) { return sparseEnum_; } else { return SparseEnumDefaultValue; } }
18520       set {
18521         _hasBits0 |= 1;
18522         sparseEnum_ = value;
18523       }
18524     }
18525     /// <summary>Gets whether the "sparse_enum" field is set</summary>
18526     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18527     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18528     public bool HasSparseEnum {
18529       get { return (_hasBits0 & 1) != 0; }
18530     }
18531     /// <summary>Clears the value of the "sparse_enum" field</summary>
18532     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18533     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSparseEnum()18534     public void ClearSparseEnum() {
18535       _hasBits0 &= ~1;
18536     }
18537 
18538     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18539     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)18540     public override bool Equals(object other) {
18541       return Equals(other as SparseEnumMessage);
18542     }
18543 
18544     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18545     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(SparseEnumMessage other)18546     public bool Equals(SparseEnumMessage other) {
18547       if (ReferenceEquals(other, null)) {
18548         return false;
18549       }
18550       if (ReferenceEquals(other, this)) {
18551         return true;
18552       }
18553       if (SparseEnum != other.SparseEnum) return false;
18554       return Equals(_unknownFields, other._unknownFields);
18555     }
18556 
18557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()18559     public override int GetHashCode() {
18560       int hash = 1;
18561       if (HasSparseEnum) hash ^= SparseEnum.GetHashCode();
18562       if (_unknownFields != null) {
18563         hash ^= _unknownFields.GetHashCode();
18564       }
18565       return hash;
18566     }
18567 
18568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()18570     public override string ToString() {
18571       return pb::JsonFormatter.ToDiagnosticString(this);
18572     }
18573 
18574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)18576     public void WriteTo(pb::CodedOutputStream output) {
18577     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18578       output.WriteRawMessage(this);
18579     #else
18580       if (HasSparseEnum) {
18581         output.WriteRawTag(8);
18582         output.WriteEnum((int) SparseEnum);
18583       }
18584       if (_unknownFields != null) {
18585         _unknownFields.WriteTo(output);
18586       }
18587     #endif
18588     }
18589 
18590     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18591     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18592     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)18593     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
18594       if (HasSparseEnum) {
18595         output.WriteRawTag(8);
18596         output.WriteEnum((int) SparseEnum);
18597       }
18598       if (_unknownFields != null) {
18599         _unknownFields.WriteTo(ref output);
18600       }
18601     }
18602     #endif
18603 
18604     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18605     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()18606     public int CalculateSize() {
18607       int size = 0;
18608       if (HasSparseEnum) {
18609         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
18610       }
18611       if (_unknownFields != null) {
18612         size += _unknownFields.CalculateSize();
18613       }
18614       return size;
18615     }
18616 
18617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18618     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(SparseEnumMessage other)18619     public void MergeFrom(SparseEnumMessage other) {
18620       if (other == null) {
18621         return;
18622       }
18623       if (other.HasSparseEnum) {
18624         SparseEnum = other.SparseEnum;
18625       }
18626       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
18627     }
18628 
18629     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18630     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)18631     public void MergeFrom(pb::CodedInputStream input) {
18632     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18633       input.ReadRawMessage(this);
18634     #else
18635       uint tag;
18636       while ((tag = input.ReadTag()) != 0) {
18637         switch(tag) {
18638           default:
18639             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
18640             break;
18641           case 8: {
18642             SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum();
18643             break;
18644           }
18645         }
18646       }
18647     #endif
18648     }
18649 
18650     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18651     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18652     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)18653     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
18654       uint tag;
18655       while ((tag = input.ReadTag()) != 0) {
18656         switch(tag) {
18657           default:
18658             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
18659             break;
18660           case 8: {
18661             SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum();
18662             break;
18663           }
18664         }
18665       }
18666     }
18667     #endif
18668 
18669   }
18670 
18671   /// <summary>
18672   /// Test String and Bytes: string is for valid UTF-8 strings
18673   /// </summary>
18674   public sealed partial class OneString : pb::IMessage<OneString>
18675   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18676       , pb::IBufferMessage
18677   #endif
18678   {
18679     private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString());
18680     private pb::UnknownFieldSet _unknownFields;
18681     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18682     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18683     public static pb::MessageParser<OneString> Parser { get { return _parser; } }
18684 
18685     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18686     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18687     public static pbr::MessageDescriptor Descriptor {
18688       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[34]; }
18689     }
18690 
18691     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18692     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18693     pbr::MessageDescriptor pb::IMessage.Descriptor {
18694       get { return Descriptor; }
18695     }
18696 
18697     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18698     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneString()18699     public OneString() {
18700       OnConstruction();
18701     }
18702 
OnConstruction()18703     partial void OnConstruction();
18704 
18705     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18706     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneString(OneString other)18707     public OneString(OneString other) : this() {
18708       data_ = other.data_;
18709       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
18710     }
18711 
18712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18713     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()18714     public OneString Clone() {
18715       return new OneString(this);
18716     }
18717 
18718     /// <summary>Field number for the "data" field.</summary>
18719     public const int DataFieldNumber = 1;
18720     private readonly static string DataDefaultValue = "";
18721 
18722     private string data_;
18723     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18724     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18725     public string Data {
18726       get { return data_ ?? DataDefaultValue; }
18727       set {
18728         data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
18729       }
18730     }
18731     /// <summary>Gets whether the "data" field is set</summary>
18732     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18733     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18734     public bool HasData {
18735       get { return data_ != null; }
18736     }
18737     /// <summary>Clears the value of the "data" field</summary>
18738     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18739     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()18740     public void ClearData() {
18741       data_ = null;
18742     }
18743 
18744     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18745     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)18746     public override bool Equals(object other) {
18747       return Equals(other as OneString);
18748     }
18749 
18750     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18751     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OneString other)18752     public bool Equals(OneString other) {
18753       if (ReferenceEquals(other, null)) {
18754         return false;
18755       }
18756       if (ReferenceEquals(other, this)) {
18757         return true;
18758       }
18759       if (Data != other.Data) return false;
18760       return Equals(_unknownFields, other._unknownFields);
18761     }
18762 
18763     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18764     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()18765     public override int GetHashCode() {
18766       int hash = 1;
18767       if (HasData) hash ^= Data.GetHashCode();
18768       if (_unknownFields != null) {
18769         hash ^= _unknownFields.GetHashCode();
18770       }
18771       return hash;
18772     }
18773 
18774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18775     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()18776     public override string ToString() {
18777       return pb::JsonFormatter.ToDiagnosticString(this);
18778     }
18779 
18780     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18781     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)18782     public void WriteTo(pb::CodedOutputStream output) {
18783     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18784       output.WriteRawMessage(this);
18785     #else
18786       if (HasData) {
18787         output.WriteRawTag(10);
18788         output.WriteString(Data);
18789       }
18790       if (_unknownFields != null) {
18791         _unknownFields.WriteTo(output);
18792       }
18793     #endif
18794     }
18795 
18796     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)18799     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
18800       if (HasData) {
18801         output.WriteRawTag(10);
18802         output.WriteString(Data);
18803       }
18804       if (_unknownFields != null) {
18805         _unknownFields.WriteTo(ref output);
18806       }
18807     }
18808     #endif
18809 
18810     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18811     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()18812     public int CalculateSize() {
18813       int size = 0;
18814       if (HasData) {
18815         size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
18816       }
18817       if (_unknownFields != null) {
18818         size += _unknownFields.CalculateSize();
18819       }
18820       return size;
18821     }
18822 
18823     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18824     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OneString other)18825     public void MergeFrom(OneString other) {
18826       if (other == null) {
18827         return;
18828       }
18829       if (other.HasData) {
18830         Data = other.Data;
18831       }
18832       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
18833     }
18834 
18835     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18836     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)18837     public void MergeFrom(pb::CodedInputStream input) {
18838     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18839       input.ReadRawMessage(this);
18840     #else
18841       uint tag;
18842       while ((tag = input.ReadTag()) != 0) {
18843         switch(tag) {
18844           default:
18845             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
18846             break;
18847           case 10: {
18848             Data = input.ReadString();
18849             break;
18850           }
18851         }
18852       }
18853     #endif
18854     }
18855 
18856     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18857     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18858     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)18859     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
18860       uint tag;
18861       while ((tag = input.ReadTag()) != 0) {
18862         switch(tag) {
18863           default:
18864             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
18865             break;
18866           case 10: {
18867             Data = input.ReadString();
18868             break;
18869           }
18870         }
18871       }
18872     }
18873     #endif
18874 
18875   }
18876 
18877   public sealed partial class MoreString : pb::IMessage<MoreString>
18878   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18879       , pb::IBufferMessage
18880   #endif
18881   {
18882     private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString());
18883     private pb::UnknownFieldSet _unknownFields;
18884     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18885     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18886     public static pb::MessageParser<MoreString> Parser { get { return _parser; } }
18887 
18888     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18889     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18890     public static pbr::MessageDescriptor Descriptor {
18891       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[35]; }
18892     }
18893 
18894     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18895     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18896     pbr::MessageDescriptor pb::IMessage.Descriptor {
18897       get { return Descriptor; }
18898     }
18899 
18900     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18901     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MoreString()18902     public MoreString() {
18903       OnConstruction();
18904     }
18905 
OnConstruction()18906     partial void OnConstruction();
18907 
18908     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18909     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MoreString(MoreString other)18910     public MoreString(MoreString other) : this() {
18911       data_ = other.data_.Clone();
18912       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
18913     }
18914 
18915     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18916     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()18917     public MoreString Clone() {
18918       return new MoreString(this);
18919     }
18920 
18921     /// <summary>Field number for the "data" field.</summary>
18922     public const int DataFieldNumber = 1;
18923     private static readonly pb::FieldCodec<string> _repeated_data_codec
18924         = pb::FieldCodec.ForString(10);
18925     private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>();
18926     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18927     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
18928     public pbc::RepeatedField<string> Data {
18929       get { return data_; }
18930     }
18931 
18932     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18933     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)18934     public override bool Equals(object other) {
18935       return Equals(other as MoreString);
18936     }
18937 
18938     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18939     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MoreString other)18940     public bool Equals(MoreString other) {
18941       if (ReferenceEquals(other, null)) {
18942         return false;
18943       }
18944       if (ReferenceEquals(other, this)) {
18945         return true;
18946       }
18947       if(!data_.Equals(other.data_)) return false;
18948       return Equals(_unknownFields, other._unknownFields);
18949     }
18950 
18951     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18952     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()18953     public override int GetHashCode() {
18954       int hash = 1;
18955       hash ^= data_.GetHashCode();
18956       if (_unknownFields != null) {
18957         hash ^= _unknownFields.GetHashCode();
18958       }
18959       return hash;
18960     }
18961 
18962     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18963     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()18964     public override string ToString() {
18965       return pb::JsonFormatter.ToDiagnosticString(this);
18966     }
18967 
18968     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18969     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)18970     public void WriteTo(pb::CodedOutputStream output) {
18971     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18972       output.WriteRawMessage(this);
18973     #else
18974       data_.WriteTo(output, _repeated_data_codec);
18975       if (_unknownFields != null) {
18976         _unknownFields.WriteTo(output);
18977       }
18978     #endif
18979     }
18980 
18981     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18982     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18983     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)18984     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
18985       data_.WriteTo(ref output, _repeated_data_codec);
18986       if (_unknownFields != null) {
18987         _unknownFields.WriteTo(ref output);
18988       }
18989     }
18990     #endif
18991 
18992     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
18993     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()18994     public int CalculateSize() {
18995       int size = 0;
18996       size += data_.CalculateSize(_repeated_data_codec);
18997       if (_unknownFields != null) {
18998         size += _unknownFields.CalculateSize();
18999       }
19000       return size;
19001     }
19002 
19003     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19004     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MoreString other)19005     public void MergeFrom(MoreString other) {
19006       if (other == null) {
19007         return;
19008       }
19009       data_.Add(other.data_);
19010       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19011     }
19012 
19013     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19014     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)19015     public void MergeFrom(pb::CodedInputStream input) {
19016     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19017       input.ReadRawMessage(this);
19018     #else
19019       uint tag;
19020       while ((tag = input.ReadTag()) != 0) {
19021         switch(tag) {
19022           default:
19023             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19024             break;
19025           case 10: {
19026             data_.AddEntriesFrom(input, _repeated_data_codec);
19027             break;
19028           }
19029         }
19030       }
19031     #endif
19032     }
19033 
19034     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19035     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19036     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19037     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
19038       uint tag;
19039       while ((tag = input.ReadTag()) != 0) {
19040         switch(tag) {
19041           default:
19042             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
19043             break;
19044           case 10: {
19045             data_.AddEntriesFrom(ref input, _repeated_data_codec);
19046             break;
19047           }
19048         }
19049       }
19050     }
19051     #endif
19052 
19053   }
19054 
19055   public sealed partial class OneBytes : pb::IMessage<OneBytes>
19056   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19057       , pb::IBufferMessage
19058   #endif
19059   {
19060     private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes());
19061     private pb::UnknownFieldSet _unknownFields;
19062     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19063     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19064     public static pb::MessageParser<OneBytes> Parser { get { return _parser; } }
19065 
19066     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19067     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19068     public static pbr::MessageDescriptor Descriptor {
19069       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[36]; }
19070     }
19071 
19072     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19073     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19074     pbr::MessageDescriptor pb::IMessage.Descriptor {
19075       get { return Descriptor; }
19076     }
19077 
19078     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19079     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneBytes()19080     public OneBytes() {
19081       OnConstruction();
19082     }
19083 
OnConstruction()19084     partial void OnConstruction();
19085 
19086     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19087     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneBytes(OneBytes other)19088     public OneBytes(OneBytes other) : this() {
19089       data_ = other.data_;
19090       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19091     }
19092 
19093     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19094     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()19095     public OneBytes Clone() {
19096       return new OneBytes(this);
19097     }
19098 
19099     /// <summary>Field number for the "data" field.</summary>
19100     public const int DataFieldNumber = 1;
19101     private readonly static pb::ByteString DataDefaultValue = pb::ByteString.Empty;
19102 
19103     private pb::ByteString data_;
19104     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19105     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19106     public pb::ByteString Data {
19107       get { return data_ ?? DataDefaultValue; }
19108       set {
19109         data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
19110       }
19111     }
19112     /// <summary>Gets whether the "data" field is set</summary>
19113     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19114     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19115     public bool HasData {
19116       get { return data_ != null; }
19117     }
19118     /// <summary>Clears the value of the "data" field</summary>
19119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19120     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()19121     public void ClearData() {
19122       data_ = null;
19123     }
19124 
19125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19126     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)19127     public override bool Equals(object other) {
19128       return Equals(other as OneBytes);
19129     }
19130 
19131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19132     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OneBytes other)19133     public bool Equals(OneBytes other) {
19134       if (ReferenceEquals(other, null)) {
19135         return false;
19136       }
19137       if (ReferenceEquals(other, this)) {
19138         return true;
19139       }
19140       if (Data != other.Data) return false;
19141       return Equals(_unknownFields, other._unknownFields);
19142     }
19143 
19144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19145     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()19146     public override int GetHashCode() {
19147       int hash = 1;
19148       if (HasData) hash ^= Data.GetHashCode();
19149       if (_unknownFields != null) {
19150         hash ^= _unknownFields.GetHashCode();
19151       }
19152       return hash;
19153     }
19154 
19155     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19156     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()19157     public override string ToString() {
19158       return pb::JsonFormatter.ToDiagnosticString(this);
19159     }
19160 
19161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19162     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)19163     public void WriteTo(pb::CodedOutputStream output) {
19164     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19165       output.WriteRawMessage(this);
19166     #else
19167       if (HasData) {
19168         output.WriteRawTag(10);
19169         output.WriteBytes(Data);
19170       }
19171       if (_unknownFields != null) {
19172         _unknownFields.WriteTo(output);
19173       }
19174     #endif
19175     }
19176 
19177     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19180     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19181       if (HasData) {
19182         output.WriteRawTag(10);
19183         output.WriteBytes(Data);
19184       }
19185       if (_unknownFields != null) {
19186         _unknownFields.WriteTo(ref output);
19187       }
19188     }
19189     #endif
19190 
19191     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19192     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()19193     public int CalculateSize() {
19194       int size = 0;
19195       if (HasData) {
19196         size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
19197       }
19198       if (_unknownFields != null) {
19199         size += _unknownFields.CalculateSize();
19200       }
19201       return size;
19202     }
19203 
19204     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19205     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OneBytes other)19206     public void MergeFrom(OneBytes other) {
19207       if (other == null) {
19208         return;
19209       }
19210       if (other.HasData) {
19211         Data = other.Data;
19212       }
19213       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19214     }
19215 
19216     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19217     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)19218     public void MergeFrom(pb::CodedInputStream input) {
19219     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19220       input.ReadRawMessage(this);
19221     #else
19222       uint tag;
19223       while ((tag = input.ReadTag()) != 0) {
19224         switch(tag) {
19225           default:
19226             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19227             break;
19228           case 10: {
19229             Data = input.ReadBytes();
19230             break;
19231           }
19232         }
19233       }
19234     #endif
19235     }
19236 
19237     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19239     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19240     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
19241       uint tag;
19242       while ((tag = input.ReadTag()) != 0) {
19243         switch(tag) {
19244           default:
19245             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
19246             break;
19247           case 10: {
19248             Data = input.ReadBytes();
19249             break;
19250           }
19251         }
19252       }
19253     }
19254     #endif
19255 
19256   }
19257 
19258   public sealed partial class MoreBytes : pb::IMessage<MoreBytes>
19259   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19260       , pb::IBufferMessage
19261   #endif
19262   {
19263     private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes());
19264     private pb::UnknownFieldSet _unknownFields;
19265     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19266     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19267     public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } }
19268 
19269     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19270     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19271     public static pbr::MessageDescriptor Descriptor {
19272       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[37]; }
19273     }
19274 
19275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19276     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19277     pbr::MessageDescriptor pb::IMessage.Descriptor {
19278       get { return Descriptor; }
19279     }
19280 
19281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MoreBytes()19283     public MoreBytes() {
19284       OnConstruction();
19285     }
19286 
OnConstruction()19287     partial void OnConstruction();
19288 
19289     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19290     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MoreBytes(MoreBytes other)19291     public MoreBytes(MoreBytes other) : this() {
19292       data_ = other.data_.Clone();
19293       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19294     }
19295 
19296     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19297     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()19298     public MoreBytes Clone() {
19299       return new MoreBytes(this);
19300     }
19301 
19302     /// <summary>Field number for the "data" field.</summary>
19303     public const int DataFieldNumber = 1;
19304     private static readonly pb::FieldCodec<pb::ByteString> _repeated_data_codec
19305         = pb::FieldCodec.ForBytes(10);
19306     private readonly pbc::RepeatedField<pb::ByteString> data_ = new pbc::RepeatedField<pb::ByteString>();
19307     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19308     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19309     public pbc::RepeatedField<pb::ByteString> Data {
19310       get { return data_; }
19311     }
19312 
19313     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19314     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)19315     public override bool Equals(object other) {
19316       return Equals(other as MoreBytes);
19317     }
19318 
19319     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19320     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MoreBytes other)19321     public bool Equals(MoreBytes other) {
19322       if (ReferenceEquals(other, null)) {
19323         return false;
19324       }
19325       if (ReferenceEquals(other, this)) {
19326         return true;
19327       }
19328       if(!data_.Equals(other.data_)) return false;
19329       return Equals(_unknownFields, other._unknownFields);
19330     }
19331 
19332     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19333     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()19334     public override int GetHashCode() {
19335       int hash = 1;
19336       hash ^= data_.GetHashCode();
19337       if (_unknownFields != null) {
19338         hash ^= _unknownFields.GetHashCode();
19339       }
19340       return hash;
19341     }
19342 
19343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19344     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()19345     public override string ToString() {
19346       return pb::JsonFormatter.ToDiagnosticString(this);
19347     }
19348 
19349     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19350     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)19351     public void WriteTo(pb::CodedOutputStream output) {
19352     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19353       output.WriteRawMessage(this);
19354     #else
19355       data_.WriteTo(output, _repeated_data_codec);
19356       if (_unknownFields != null) {
19357         _unknownFields.WriteTo(output);
19358       }
19359     #endif
19360     }
19361 
19362     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19365     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19366       data_.WriteTo(ref output, _repeated_data_codec);
19367       if (_unknownFields != null) {
19368         _unknownFields.WriteTo(ref output);
19369       }
19370     }
19371     #endif
19372 
19373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()19375     public int CalculateSize() {
19376       int size = 0;
19377       size += data_.CalculateSize(_repeated_data_codec);
19378       if (_unknownFields != null) {
19379         size += _unknownFields.CalculateSize();
19380       }
19381       return size;
19382     }
19383 
19384     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19385     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MoreBytes other)19386     public void MergeFrom(MoreBytes other) {
19387       if (other == null) {
19388         return;
19389       }
19390       data_.Add(other.data_);
19391       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19392     }
19393 
19394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19395     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)19396     public void MergeFrom(pb::CodedInputStream input) {
19397     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19398       input.ReadRawMessage(this);
19399     #else
19400       uint tag;
19401       while ((tag = input.ReadTag()) != 0) {
19402         switch(tag) {
19403           default:
19404             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19405             break;
19406           case 10: {
19407             data_.AddEntriesFrom(input, _repeated_data_codec);
19408             break;
19409           }
19410         }
19411       }
19412     #endif
19413     }
19414 
19415     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19416     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19417     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19418     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
19419       uint tag;
19420       while ((tag = input.ReadTag()) != 0) {
19421         switch(tag) {
19422           default:
19423             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
19424             break;
19425           case 10: {
19426             data_.AddEntriesFrom(ref input, _repeated_data_codec);
19427             break;
19428           }
19429         }
19430       }
19431     }
19432     #endif
19433 
19434   }
19435 
19436   /// <summary>
19437   /// Test int32, uint32, int64, uint64, and bool are all compatible
19438   /// </summary>
19439   public sealed partial class Int32Message : pb::IMessage<Int32Message>
19440   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19441       , pb::IBufferMessage
19442   #endif
19443   {
19444     private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message());
19445     private pb::UnknownFieldSet _unknownFields;
19446     private int _hasBits0;
19447     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19448     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19449     public static pb::MessageParser<Int32Message> Parser { get { return _parser; } }
19450 
19451     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19452     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19453     public static pbr::MessageDescriptor Descriptor {
19454       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[38]; }
19455     }
19456 
19457     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19458     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19459     pbr::MessageDescriptor pb::IMessage.Descriptor {
19460       get { return Descriptor; }
19461     }
19462 
19463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Int32Message()19465     public Int32Message() {
19466       OnConstruction();
19467     }
19468 
OnConstruction()19469     partial void OnConstruction();
19470 
19471     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19472     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Int32Message(Int32Message other)19473     public Int32Message(Int32Message other) : this() {
19474       _hasBits0 = other._hasBits0;
19475       data_ = other.data_;
19476       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19477     }
19478 
19479     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19480     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()19481     public Int32Message Clone() {
19482       return new Int32Message(this);
19483     }
19484 
19485     /// <summary>Field number for the "data" field.</summary>
19486     public const int DataFieldNumber = 1;
19487     private readonly static int DataDefaultValue = 0;
19488 
19489     private int data_;
19490     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19491     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19492     public int Data {
19493       get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
19494       set {
19495         _hasBits0 |= 1;
19496         data_ = value;
19497       }
19498     }
19499     /// <summary>Gets whether the "data" field is set</summary>
19500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19502     public bool HasData {
19503       get { return (_hasBits0 & 1) != 0; }
19504     }
19505     /// <summary>Clears the value of the "data" field</summary>
19506     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19507     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()19508     public void ClearData() {
19509       _hasBits0 &= ~1;
19510     }
19511 
19512     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19513     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)19514     public override bool Equals(object other) {
19515       return Equals(other as Int32Message);
19516     }
19517 
19518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19519     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Int32Message other)19520     public bool Equals(Int32Message other) {
19521       if (ReferenceEquals(other, null)) {
19522         return false;
19523       }
19524       if (ReferenceEquals(other, this)) {
19525         return true;
19526       }
19527       if (Data != other.Data) return false;
19528       return Equals(_unknownFields, other._unknownFields);
19529     }
19530 
19531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()19533     public override int GetHashCode() {
19534       int hash = 1;
19535       if (HasData) hash ^= Data.GetHashCode();
19536       if (_unknownFields != null) {
19537         hash ^= _unknownFields.GetHashCode();
19538       }
19539       return hash;
19540     }
19541 
19542     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19543     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()19544     public override string ToString() {
19545       return pb::JsonFormatter.ToDiagnosticString(this);
19546     }
19547 
19548     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19549     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)19550     public void WriteTo(pb::CodedOutputStream output) {
19551     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19552       output.WriteRawMessage(this);
19553     #else
19554       if (HasData) {
19555         output.WriteRawTag(8);
19556         output.WriteInt32(Data);
19557       }
19558       if (_unknownFields != null) {
19559         _unknownFields.WriteTo(output);
19560       }
19561     #endif
19562     }
19563 
19564     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19565     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19566     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19567     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19568       if (HasData) {
19569         output.WriteRawTag(8);
19570         output.WriteInt32(Data);
19571       }
19572       if (_unknownFields != null) {
19573         _unknownFields.WriteTo(ref output);
19574       }
19575     }
19576     #endif
19577 
19578     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19579     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()19580     public int CalculateSize() {
19581       int size = 0;
19582       if (HasData) {
19583         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
19584       }
19585       if (_unknownFields != null) {
19586         size += _unknownFields.CalculateSize();
19587       }
19588       return size;
19589     }
19590 
19591     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19592     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Int32Message other)19593     public void MergeFrom(Int32Message other) {
19594       if (other == null) {
19595         return;
19596       }
19597       if (other.HasData) {
19598         Data = other.Data;
19599       }
19600       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19601     }
19602 
19603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19604     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)19605     public void MergeFrom(pb::CodedInputStream input) {
19606     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19607       input.ReadRawMessage(this);
19608     #else
19609       uint tag;
19610       while ((tag = input.ReadTag()) != 0) {
19611         switch(tag) {
19612           default:
19613             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19614             break;
19615           case 8: {
19616             Data = input.ReadInt32();
19617             break;
19618           }
19619         }
19620       }
19621     #endif
19622     }
19623 
19624     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19625     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19626     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19627     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
19628       uint tag;
19629       while ((tag = input.ReadTag()) != 0) {
19630         switch(tag) {
19631           default:
19632             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
19633             break;
19634           case 8: {
19635             Data = input.ReadInt32();
19636             break;
19637           }
19638         }
19639       }
19640     }
19641     #endif
19642 
19643   }
19644 
19645   public sealed partial class Uint32Message : pb::IMessage<Uint32Message>
19646   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19647       , pb::IBufferMessage
19648   #endif
19649   {
19650     private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message());
19651     private pb::UnknownFieldSet _unknownFields;
19652     private int _hasBits0;
19653     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19654     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19655     public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } }
19656 
19657     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19658     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19659     public static pbr::MessageDescriptor Descriptor {
19660       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[39]; }
19661     }
19662 
19663     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19664     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19665     pbr::MessageDescriptor pb::IMessage.Descriptor {
19666       get { return Descriptor; }
19667     }
19668 
19669     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19670     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Uint32Message()19671     public Uint32Message() {
19672       OnConstruction();
19673     }
19674 
OnConstruction()19675     partial void OnConstruction();
19676 
19677     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19678     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Uint32Message(Uint32Message other)19679     public Uint32Message(Uint32Message other) : this() {
19680       _hasBits0 = other._hasBits0;
19681       data_ = other.data_;
19682       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19683     }
19684 
19685     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19686     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()19687     public Uint32Message Clone() {
19688       return new Uint32Message(this);
19689     }
19690 
19691     /// <summary>Field number for the "data" field.</summary>
19692     public const int DataFieldNumber = 1;
19693     private readonly static uint DataDefaultValue = 0;
19694 
19695     private uint data_;
19696     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19697     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19698     public uint Data {
19699       get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
19700       set {
19701         _hasBits0 |= 1;
19702         data_ = value;
19703       }
19704     }
19705     /// <summary>Gets whether the "data" field is set</summary>
19706     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19707     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19708     public bool HasData {
19709       get { return (_hasBits0 & 1) != 0; }
19710     }
19711     /// <summary>Clears the value of the "data" field</summary>
19712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19713     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()19714     public void ClearData() {
19715       _hasBits0 &= ~1;
19716     }
19717 
19718     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19719     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)19720     public override bool Equals(object other) {
19721       return Equals(other as Uint32Message);
19722     }
19723 
19724     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19725     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Uint32Message other)19726     public bool Equals(Uint32Message other) {
19727       if (ReferenceEquals(other, null)) {
19728         return false;
19729       }
19730       if (ReferenceEquals(other, this)) {
19731         return true;
19732       }
19733       if (Data != other.Data) return false;
19734       return Equals(_unknownFields, other._unknownFields);
19735     }
19736 
19737     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19738     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()19739     public override int GetHashCode() {
19740       int hash = 1;
19741       if (HasData) hash ^= Data.GetHashCode();
19742       if (_unknownFields != null) {
19743         hash ^= _unknownFields.GetHashCode();
19744       }
19745       return hash;
19746     }
19747 
19748     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19749     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()19750     public override string ToString() {
19751       return pb::JsonFormatter.ToDiagnosticString(this);
19752     }
19753 
19754     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19755     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)19756     public void WriteTo(pb::CodedOutputStream output) {
19757     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19758       output.WriteRawMessage(this);
19759     #else
19760       if (HasData) {
19761         output.WriteRawTag(8);
19762         output.WriteUInt32(Data);
19763       }
19764       if (_unknownFields != null) {
19765         _unknownFields.WriteTo(output);
19766       }
19767     #endif
19768     }
19769 
19770     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19771     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19772     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19773     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19774       if (HasData) {
19775         output.WriteRawTag(8);
19776         output.WriteUInt32(Data);
19777       }
19778       if (_unknownFields != null) {
19779         _unknownFields.WriteTo(ref output);
19780       }
19781     }
19782     #endif
19783 
19784     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19785     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()19786     public int CalculateSize() {
19787       int size = 0;
19788       if (HasData) {
19789         size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data);
19790       }
19791       if (_unknownFields != null) {
19792         size += _unknownFields.CalculateSize();
19793       }
19794       return size;
19795     }
19796 
19797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Uint32Message other)19799     public void MergeFrom(Uint32Message other) {
19800       if (other == null) {
19801         return;
19802       }
19803       if (other.HasData) {
19804         Data = other.Data;
19805       }
19806       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19807     }
19808 
19809     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19810     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)19811     public void MergeFrom(pb::CodedInputStream input) {
19812     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19813       input.ReadRawMessage(this);
19814     #else
19815       uint tag;
19816       while ((tag = input.ReadTag()) != 0) {
19817         switch(tag) {
19818           default:
19819             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19820             break;
19821           case 8: {
19822             Data = input.ReadUInt32();
19823             break;
19824           }
19825         }
19826       }
19827     #endif
19828     }
19829 
19830     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19831     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19832     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19833     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
19834       uint tag;
19835       while ((tag = input.ReadTag()) != 0) {
19836         switch(tag) {
19837           default:
19838             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
19839             break;
19840           case 8: {
19841             Data = input.ReadUInt32();
19842             break;
19843           }
19844         }
19845       }
19846     }
19847     #endif
19848 
19849   }
19850 
19851   public sealed partial class Int64Message : pb::IMessage<Int64Message>
19852   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19853       , pb::IBufferMessage
19854   #endif
19855   {
19856     private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message());
19857     private pb::UnknownFieldSet _unknownFields;
19858     private int _hasBits0;
19859     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19860     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19861     public static pb::MessageParser<Int64Message> Parser { get { return _parser; } }
19862 
19863     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19864     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19865     public static pbr::MessageDescriptor Descriptor {
19866       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[40]; }
19867     }
19868 
19869     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19870     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19871     pbr::MessageDescriptor pb::IMessage.Descriptor {
19872       get { return Descriptor; }
19873     }
19874 
19875     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19876     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Int64Message()19877     public Int64Message() {
19878       OnConstruction();
19879     }
19880 
OnConstruction()19881     partial void OnConstruction();
19882 
19883     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19884     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Int64Message(Int64Message other)19885     public Int64Message(Int64Message other) : this() {
19886       _hasBits0 = other._hasBits0;
19887       data_ = other.data_;
19888       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19889     }
19890 
19891     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19892     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()19893     public Int64Message Clone() {
19894       return new Int64Message(this);
19895     }
19896 
19897     /// <summary>Field number for the "data" field.</summary>
19898     public const int DataFieldNumber = 1;
19899     private readonly static long DataDefaultValue = 0L;
19900 
19901     private long data_;
19902     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19903     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19904     public long Data {
19905       get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
19906       set {
19907         _hasBits0 |= 1;
19908         data_ = value;
19909       }
19910     }
19911     /// <summary>Gets whether the "data" field is set</summary>
19912     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19913     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
19914     public bool HasData {
19915       get { return (_hasBits0 & 1) != 0; }
19916     }
19917     /// <summary>Clears the value of the "data" field</summary>
19918     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19919     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()19920     public void ClearData() {
19921       _hasBits0 &= ~1;
19922     }
19923 
19924     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19925     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)19926     public override bool Equals(object other) {
19927       return Equals(other as Int64Message);
19928     }
19929 
19930     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19931     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Int64Message other)19932     public bool Equals(Int64Message other) {
19933       if (ReferenceEquals(other, null)) {
19934         return false;
19935       }
19936       if (ReferenceEquals(other, this)) {
19937         return true;
19938       }
19939       if (Data != other.Data) return false;
19940       return Equals(_unknownFields, other._unknownFields);
19941     }
19942 
19943     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19944     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()19945     public override int GetHashCode() {
19946       int hash = 1;
19947       if (HasData) hash ^= Data.GetHashCode();
19948       if (_unknownFields != null) {
19949         hash ^= _unknownFields.GetHashCode();
19950       }
19951       return hash;
19952     }
19953 
19954     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19955     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()19956     public override string ToString() {
19957       return pb::JsonFormatter.ToDiagnosticString(this);
19958     }
19959 
19960     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19961     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)19962     public void WriteTo(pb::CodedOutputStream output) {
19963     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19964       output.WriteRawMessage(this);
19965     #else
19966       if (HasData) {
19967         output.WriteRawTag(8);
19968         output.WriteInt64(Data);
19969       }
19970       if (_unknownFields != null) {
19971         _unknownFields.WriteTo(output);
19972       }
19973     #endif
19974     }
19975 
19976     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19979     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19980       if (HasData) {
19981         output.WriteRawTag(8);
19982         output.WriteInt64(Data);
19983       }
19984       if (_unknownFields != null) {
19985         _unknownFields.WriteTo(ref output);
19986       }
19987     }
19988     #endif
19989 
19990     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
19991     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()19992     public int CalculateSize() {
19993       int size = 0;
19994       if (HasData) {
19995         size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data);
19996       }
19997       if (_unknownFields != null) {
19998         size += _unknownFields.CalculateSize();
19999       }
20000       return size;
20001     }
20002 
20003     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20004     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Int64Message other)20005     public void MergeFrom(Int64Message other) {
20006       if (other == null) {
20007         return;
20008       }
20009       if (other.HasData) {
20010         Data = other.Data;
20011       }
20012       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20013     }
20014 
20015     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20016     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)20017     public void MergeFrom(pb::CodedInputStream input) {
20018     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20019       input.ReadRawMessage(this);
20020     #else
20021       uint tag;
20022       while ((tag = input.ReadTag()) != 0) {
20023         switch(tag) {
20024           default:
20025             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20026             break;
20027           case 8: {
20028             Data = input.ReadInt64();
20029             break;
20030           }
20031         }
20032       }
20033     #endif
20034     }
20035 
20036     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20037     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20038     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20039     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
20040       uint tag;
20041       while ((tag = input.ReadTag()) != 0) {
20042         switch(tag) {
20043           default:
20044             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
20045             break;
20046           case 8: {
20047             Data = input.ReadInt64();
20048             break;
20049           }
20050         }
20051       }
20052     }
20053     #endif
20054 
20055   }
20056 
20057   public sealed partial class Uint64Message : pb::IMessage<Uint64Message>
20058   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20059       , pb::IBufferMessage
20060   #endif
20061   {
20062     private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message());
20063     private pb::UnknownFieldSet _unknownFields;
20064     private int _hasBits0;
20065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20066     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20067     public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } }
20068 
20069     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20070     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20071     public static pbr::MessageDescriptor Descriptor {
20072       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[41]; }
20073     }
20074 
20075     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20076     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20077     pbr::MessageDescriptor pb::IMessage.Descriptor {
20078       get { return Descriptor; }
20079     }
20080 
20081     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20082     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Uint64Message()20083     public Uint64Message() {
20084       OnConstruction();
20085     }
20086 
OnConstruction()20087     partial void OnConstruction();
20088 
20089     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20090     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Uint64Message(Uint64Message other)20091     public Uint64Message(Uint64Message other) : this() {
20092       _hasBits0 = other._hasBits0;
20093       data_ = other.data_;
20094       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20095     }
20096 
20097     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20098     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()20099     public Uint64Message Clone() {
20100       return new Uint64Message(this);
20101     }
20102 
20103     /// <summary>Field number for the "data" field.</summary>
20104     public const int DataFieldNumber = 1;
20105     private readonly static ulong DataDefaultValue = 0UL;
20106 
20107     private ulong data_;
20108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20109     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20110     public ulong Data {
20111       get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
20112       set {
20113         _hasBits0 |= 1;
20114         data_ = value;
20115       }
20116     }
20117     /// <summary>Gets whether the "data" field is set</summary>
20118     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20119     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20120     public bool HasData {
20121       get { return (_hasBits0 & 1) != 0; }
20122     }
20123     /// <summary>Clears the value of the "data" field</summary>
20124     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20125     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()20126     public void ClearData() {
20127       _hasBits0 &= ~1;
20128     }
20129 
20130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20131     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)20132     public override bool Equals(object other) {
20133       return Equals(other as Uint64Message);
20134     }
20135 
20136     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20137     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Uint64Message other)20138     public bool Equals(Uint64Message other) {
20139       if (ReferenceEquals(other, null)) {
20140         return false;
20141       }
20142       if (ReferenceEquals(other, this)) {
20143         return true;
20144       }
20145       if (Data != other.Data) return false;
20146       return Equals(_unknownFields, other._unknownFields);
20147     }
20148 
20149     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20150     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()20151     public override int GetHashCode() {
20152       int hash = 1;
20153       if (HasData) hash ^= Data.GetHashCode();
20154       if (_unknownFields != null) {
20155         hash ^= _unknownFields.GetHashCode();
20156       }
20157       return hash;
20158     }
20159 
20160     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20161     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()20162     public override string ToString() {
20163       return pb::JsonFormatter.ToDiagnosticString(this);
20164     }
20165 
20166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20167     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)20168     public void WriteTo(pb::CodedOutputStream output) {
20169     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20170       output.WriteRawMessage(this);
20171     #else
20172       if (HasData) {
20173         output.WriteRawTag(8);
20174         output.WriteUInt64(Data);
20175       }
20176       if (_unknownFields != null) {
20177         _unknownFields.WriteTo(output);
20178       }
20179     #endif
20180     }
20181 
20182     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20183     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20184     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)20185     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
20186       if (HasData) {
20187         output.WriteRawTag(8);
20188         output.WriteUInt64(Data);
20189       }
20190       if (_unknownFields != null) {
20191         _unknownFields.WriteTo(ref output);
20192       }
20193     }
20194     #endif
20195 
20196     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20197     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()20198     public int CalculateSize() {
20199       int size = 0;
20200       if (HasData) {
20201         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data);
20202       }
20203       if (_unknownFields != null) {
20204         size += _unknownFields.CalculateSize();
20205       }
20206       return size;
20207     }
20208 
20209     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20210     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Uint64Message other)20211     public void MergeFrom(Uint64Message other) {
20212       if (other == null) {
20213         return;
20214       }
20215       if (other.HasData) {
20216         Data = other.Data;
20217       }
20218       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20219     }
20220 
20221     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20222     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)20223     public void MergeFrom(pb::CodedInputStream input) {
20224     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20225       input.ReadRawMessage(this);
20226     #else
20227       uint tag;
20228       while ((tag = input.ReadTag()) != 0) {
20229         switch(tag) {
20230           default:
20231             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20232             break;
20233           case 8: {
20234             Data = input.ReadUInt64();
20235             break;
20236           }
20237         }
20238       }
20239     #endif
20240     }
20241 
20242     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20243     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20244     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20245     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
20246       uint tag;
20247       while ((tag = input.ReadTag()) != 0) {
20248         switch(tag) {
20249           default:
20250             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
20251             break;
20252           case 8: {
20253             Data = input.ReadUInt64();
20254             break;
20255           }
20256         }
20257       }
20258     }
20259     #endif
20260 
20261   }
20262 
20263   public sealed partial class BoolMessage : pb::IMessage<BoolMessage>
20264   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20265       , pb::IBufferMessage
20266   #endif
20267   {
20268     private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage());
20269     private pb::UnknownFieldSet _unknownFields;
20270     private int _hasBits0;
20271     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20272     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20273     public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } }
20274 
20275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20276     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20277     public static pbr::MessageDescriptor Descriptor {
20278       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[42]; }
20279     }
20280 
20281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20283     pbr::MessageDescriptor pb::IMessage.Descriptor {
20284       get { return Descriptor; }
20285     }
20286 
20287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20288     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
BoolMessage()20289     public BoolMessage() {
20290       OnConstruction();
20291     }
20292 
OnConstruction()20293     partial void OnConstruction();
20294 
20295     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20296     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
BoolMessage(BoolMessage other)20297     public BoolMessage(BoolMessage other) : this() {
20298       _hasBits0 = other._hasBits0;
20299       data_ = other.data_;
20300       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20301     }
20302 
20303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20304     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()20305     public BoolMessage Clone() {
20306       return new BoolMessage(this);
20307     }
20308 
20309     /// <summary>Field number for the "data" field.</summary>
20310     public const int DataFieldNumber = 1;
20311     private readonly static bool DataDefaultValue = false;
20312 
20313     private bool data_;
20314     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20315     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20316     public bool Data {
20317       get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
20318       set {
20319         _hasBits0 |= 1;
20320         data_ = value;
20321       }
20322     }
20323     /// <summary>Gets whether the "data" field is set</summary>
20324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20325     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20326     public bool HasData {
20327       get { return (_hasBits0 & 1) != 0; }
20328     }
20329     /// <summary>Clears the value of the "data" field</summary>
20330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20331     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()20332     public void ClearData() {
20333       _hasBits0 &= ~1;
20334     }
20335 
20336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20337     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)20338     public override bool Equals(object other) {
20339       return Equals(other as BoolMessage);
20340     }
20341 
20342     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20343     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(BoolMessage other)20344     public bool Equals(BoolMessage other) {
20345       if (ReferenceEquals(other, null)) {
20346         return false;
20347       }
20348       if (ReferenceEquals(other, this)) {
20349         return true;
20350       }
20351       if (Data != other.Data) return false;
20352       return Equals(_unknownFields, other._unknownFields);
20353     }
20354 
20355     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20356     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()20357     public override int GetHashCode() {
20358       int hash = 1;
20359       if (HasData) hash ^= Data.GetHashCode();
20360       if (_unknownFields != null) {
20361         hash ^= _unknownFields.GetHashCode();
20362       }
20363       return hash;
20364     }
20365 
20366     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20367     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()20368     public override string ToString() {
20369       return pb::JsonFormatter.ToDiagnosticString(this);
20370     }
20371 
20372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20373     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)20374     public void WriteTo(pb::CodedOutputStream output) {
20375     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20376       output.WriteRawMessage(this);
20377     #else
20378       if (HasData) {
20379         output.WriteRawTag(8);
20380         output.WriteBool(Data);
20381       }
20382       if (_unknownFields != null) {
20383         _unknownFields.WriteTo(output);
20384       }
20385     #endif
20386     }
20387 
20388     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20389     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20390     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)20391     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
20392       if (HasData) {
20393         output.WriteRawTag(8);
20394         output.WriteBool(Data);
20395       }
20396       if (_unknownFields != null) {
20397         _unknownFields.WriteTo(ref output);
20398       }
20399     }
20400     #endif
20401 
20402     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20403     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()20404     public int CalculateSize() {
20405       int size = 0;
20406       if (HasData) {
20407         size += 1 + 1;
20408       }
20409       if (_unknownFields != null) {
20410         size += _unknownFields.CalculateSize();
20411       }
20412       return size;
20413     }
20414 
20415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20416     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(BoolMessage other)20417     public void MergeFrom(BoolMessage other) {
20418       if (other == null) {
20419         return;
20420       }
20421       if (other.HasData) {
20422         Data = other.Data;
20423       }
20424       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20425     }
20426 
20427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20428     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)20429     public void MergeFrom(pb::CodedInputStream input) {
20430     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20431       input.ReadRawMessage(this);
20432     #else
20433       uint tag;
20434       while ((tag = input.ReadTag()) != 0) {
20435         switch(tag) {
20436           default:
20437             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20438             break;
20439           case 8: {
20440             Data = input.ReadBool();
20441             break;
20442           }
20443         }
20444       }
20445     #endif
20446     }
20447 
20448     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20450     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20451     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
20452       uint tag;
20453       while ((tag = input.ReadTag()) != 0) {
20454         switch(tag) {
20455           default:
20456             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
20457             break;
20458           case 8: {
20459             Data = input.ReadBool();
20460             break;
20461           }
20462         }
20463       }
20464     }
20465     #endif
20466 
20467   }
20468 
20469   /// <summary>
20470   /// Test oneofs.
20471   /// </summary>
20472   public sealed partial class TestOneof : pb::IMessage<TestOneof>
20473   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20474       , pb::IBufferMessage
20475   #endif
20476   {
20477     private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof());
20478     private pb::UnknownFieldSet _unknownFields;
20479     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20480     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20481     public static pb::MessageParser<TestOneof> Parser { get { return _parser; } }
20482 
20483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20484     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20485     public static pbr::MessageDescriptor Descriptor {
20486       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[43]; }
20487     }
20488 
20489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20490     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20491     pbr::MessageDescriptor pb::IMessage.Descriptor {
20492       get { return Descriptor; }
20493     }
20494 
20495     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20496     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestOneof()20497     public TestOneof() {
20498       OnConstruction();
20499     }
20500 
OnConstruction()20501     partial void OnConstruction();
20502 
20503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20504     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestOneof(TestOneof other)20505     public TestOneof(TestOneof other) : this() {
20506       switch (other.FooCase) {
20507         case FooOneofCase.FooInt:
20508           FooInt = other.FooInt;
20509           break;
20510         case FooOneofCase.FooString:
20511           FooString = other.FooString;
20512           break;
20513         case FooOneofCase.FooMessage:
20514           FooMessage = other.FooMessage.Clone();
20515           break;
20516         case FooOneofCase.FooGroup:
20517           FooGroup = other.FooGroup.Clone();
20518           break;
20519       }
20520 
20521       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20522     }
20523 
20524     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20525     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()20526     public TestOneof Clone() {
20527       return new TestOneof(this);
20528     }
20529 
20530     /// <summary>Field number for the "foo_int" field.</summary>
20531     public const int FooIntFieldNumber = 1;
20532     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20533     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20534     public int FooInt {
20535       get { return HasFooInt ? (int) foo_ : 0; }
20536       set {
20537         foo_ = value;
20538         fooCase_ = FooOneofCase.FooInt;
20539       }
20540     }
20541     /// <summary>Gets whether the "foo_int" field is set</summary>
20542     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20543     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20544     public bool HasFooInt {
20545       get { return fooCase_ == FooOneofCase.FooInt; }
20546     }
20547     /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
20548     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20549     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooInt()20550     public void ClearFooInt() {
20551       if (HasFooInt) {
20552         ClearFoo();
20553       }
20554     }
20555 
20556     /// <summary>Field number for the "foo_string" field.</summary>
20557     public const int FooStringFieldNumber = 2;
20558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20559     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20560     public string FooString {
20561       get { return HasFooString ? (string) foo_ : ""; }
20562       set {
20563         foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
20564         fooCase_ = FooOneofCase.FooString;
20565       }
20566     }
20567     /// <summary>Gets whether the "foo_string" field is set</summary>
20568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20570     public bool HasFooString {
20571       get { return fooCase_ == FooOneofCase.FooString; }
20572     }
20573     /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
20574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooString()20576     public void ClearFooString() {
20577       if (HasFooString) {
20578         ClearFoo();
20579       }
20580     }
20581 
20582     /// <summary>Field number for the "foo_message" field.</summary>
20583     public const int FooMessageFieldNumber = 3;
20584     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20585     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20586     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
20587       get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) foo_ : null; }
20588       set {
20589         foo_ = value;
20590         fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
20591       }
20592     }
20593 
20594     /// <summary>Field number for the "foogroup" field.</summary>
20595     public const int FooGroupFieldNumber = 4;
20596     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20597     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20598     public global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup FooGroup {
20599       get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup) foo_ : null; }
20600       set {
20601         foo_ = value;
20602         fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
20603       }
20604     }
20605     /// <summary>Gets whether the "foogroup" field is set</summary>
20606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20607     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20608     public bool HasFooGroup {
20609       get { return fooCase_ == FooOneofCase.FooGroup; }
20610     }
20611     /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
20612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20613     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooGroup()20614     public void ClearFooGroup() {
20615       if (HasFooGroup) {
20616         ClearFoo();
20617       }
20618     }
20619 
20620     private object foo_;
20621     /// <summary>Enum of possible cases for the "foo" oneof.</summary>
20622     public enum FooOneofCase {
20623       None = 0,
20624       FooInt = 1,
20625       FooString = 2,
20626       FooMessage = 3,
20627       FooGroup = 4,
20628     }
20629     private FooOneofCase fooCase_ = FooOneofCase.None;
20630     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20631     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20632     public FooOneofCase FooCase {
20633       get { return fooCase_; }
20634     }
20635 
20636     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20637     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFoo()20638     public void ClearFoo() {
20639       fooCase_ = FooOneofCase.None;
20640       foo_ = null;
20641     }
20642 
20643     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20644     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)20645     public override bool Equals(object other) {
20646       return Equals(other as TestOneof);
20647     }
20648 
20649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestOneof other)20651     public bool Equals(TestOneof other) {
20652       if (ReferenceEquals(other, null)) {
20653         return false;
20654       }
20655       if (ReferenceEquals(other, this)) {
20656         return true;
20657       }
20658       if (FooInt != other.FooInt) return false;
20659       if (FooString != other.FooString) return false;
20660       if (!object.Equals(FooMessage, other.FooMessage)) return false;
20661       if (!object.Equals(FooGroup, other.FooGroup)) return false;
20662       if (FooCase != other.FooCase) return false;
20663       return Equals(_unknownFields, other._unknownFields);
20664     }
20665 
20666     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20667     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()20668     public override int GetHashCode() {
20669       int hash = 1;
20670       if (HasFooInt) hash ^= FooInt.GetHashCode();
20671       if (HasFooString) hash ^= FooString.GetHashCode();
20672       if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
20673       if (HasFooGroup) hash ^= FooGroup.GetHashCode();
20674       hash ^= (int) fooCase_;
20675       if (_unknownFields != null) {
20676         hash ^= _unknownFields.GetHashCode();
20677       }
20678       return hash;
20679     }
20680 
20681     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20682     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()20683     public override string ToString() {
20684       return pb::JsonFormatter.ToDiagnosticString(this);
20685     }
20686 
20687     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20688     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)20689     public void WriteTo(pb::CodedOutputStream output) {
20690     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20691       output.WriteRawMessage(this);
20692     #else
20693       if (HasFooInt) {
20694         output.WriteRawTag(8);
20695         output.WriteInt32(FooInt);
20696       }
20697       if (HasFooString) {
20698         output.WriteRawTag(18);
20699         output.WriteString(FooString);
20700       }
20701       if (fooCase_ == FooOneofCase.FooMessage) {
20702         output.WriteRawTag(26);
20703         output.WriteMessage(FooMessage);
20704       }
20705       if (HasFooGroup) {
20706         output.WriteRawTag(35);
20707         output.WriteGroup(FooGroup);
20708         output.WriteRawTag(36);
20709       }
20710       if (_unknownFields != null) {
20711         _unknownFields.WriteTo(output);
20712       }
20713     #endif
20714     }
20715 
20716     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20717     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20718     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)20719     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
20720       if (HasFooInt) {
20721         output.WriteRawTag(8);
20722         output.WriteInt32(FooInt);
20723       }
20724       if (HasFooString) {
20725         output.WriteRawTag(18);
20726         output.WriteString(FooString);
20727       }
20728       if (fooCase_ == FooOneofCase.FooMessage) {
20729         output.WriteRawTag(26);
20730         output.WriteMessage(FooMessage);
20731       }
20732       if (HasFooGroup) {
20733         output.WriteRawTag(35);
20734         output.WriteGroup(FooGroup);
20735         output.WriteRawTag(36);
20736       }
20737       if (_unknownFields != null) {
20738         _unknownFields.WriteTo(ref output);
20739       }
20740     }
20741     #endif
20742 
20743     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20744     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()20745     public int CalculateSize() {
20746       int size = 0;
20747       if (HasFooInt) {
20748         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
20749       }
20750       if (HasFooString) {
20751         size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
20752       }
20753       if (fooCase_ == FooOneofCase.FooMessage) {
20754         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
20755       }
20756       if (HasFooGroup) {
20757         size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
20758       }
20759       if (_unknownFields != null) {
20760         size += _unknownFields.CalculateSize();
20761       }
20762       return size;
20763     }
20764 
20765     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20766     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestOneof other)20767     public void MergeFrom(TestOneof other) {
20768       if (other == null) {
20769         return;
20770       }
20771       switch (other.FooCase) {
20772         case FooOneofCase.FooInt:
20773           FooInt = other.FooInt;
20774           break;
20775         case FooOneofCase.FooString:
20776           FooString = other.FooString;
20777           break;
20778         case FooOneofCase.FooMessage:
20779           if (FooMessage == null) {
20780             FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
20781           }
20782           FooMessage.MergeFrom(other.FooMessage);
20783           break;
20784         case FooOneofCase.FooGroup:
20785           if (FooGroup == null) {
20786             FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
20787           }
20788           FooGroup.MergeFrom(other.FooGroup);
20789           break;
20790       }
20791 
20792       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20793     }
20794 
20795     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20796     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)20797     public void MergeFrom(pb::CodedInputStream input) {
20798     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20799       input.ReadRawMessage(this);
20800     #else
20801       uint tag;
20802       while ((tag = input.ReadTag()) != 0) {
20803         switch(tag) {
20804           default:
20805             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20806             break;
20807           case 8: {
20808             FooInt = input.ReadInt32();
20809             break;
20810           }
20811           case 18: {
20812             FooString = input.ReadString();
20813             break;
20814           }
20815           case 26: {
20816             global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
20817             if (fooCase_ == FooOneofCase.FooMessage) {
20818               subBuilder.MergeFrom(FooMessage);
20819             }
20820             input.ReadMessage(subBuilder);
20821             FooMessage = subBuilder;
20822             break;
20823           }
20824           case 35: {
20825             global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
20826             if (HasFooGroup) {
20827               subBuilder.MergeFrom(FooGroup);
20828             }
20829             input.ReadGroup(subBuilder);
20830             FooGroup = subBuilder;
20831             break;
20832           }
20833         }
20834       }
20835     #endif
20836     }
20837 
20838     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20839     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20840     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20841     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
20842       uint tag;
20843       while ((tag = input.ReadTag()) != 0) {
20844         switch(tag) {
20845           default:
20846             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
20847             break;
20848           case 8: {
20849             FooInt = input.ReadInt32();
20850             break;
20851           }
20852           case 18: {
20853             FooString = input.ReadString();
20854             break;
20855           }
20856           case 26: {
20857             global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
20858             if (fooCase_ == FooOneofCase.FooMessage) {
20859               subBuilder.MergeFrom(FooMessage);
20860             }
20861             input.ReadMessage(subBuilder);
20862             FooMessage = subBuilder;
20863             break;
20864           }
20865           case 35: {
20866             global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
20867             if (HasFooGroup) {
20868               subBuilder.MergeFrom(FooGroup);
20869             }
20870             input.ReadGroup(subBuilder);
20871             FooGroup = subBuilder;
20872             break;
20873           }
20874         }
20875       }
20876     }
20877     #endif
20878 
20879     #region Nested types
20880     /// <summary>Container for nested types declared in the TestOneof message type.</summary>
20881     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20882     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20883     public static partial class Types {
20884       public sealed partial class FooGroup : pb::IMessage<FooGroup>
20885       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20886           , pb::IBufferMessage
20887       #endif
20888       {
20889         private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
20890         private pb::UnknownFieldSet _unknownFields;
20891         private int _hasBits0;
20892         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20893         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20894         public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
20895 
20896         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20897         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20898         public static pbr::MessageDescriptor Descriptor {
20899           get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof.Descriptor.NestedTypes[0]; }
20900         }
20901 
20902         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20903         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20904         pbr::MessageDescriptor pb::IMessage.Descriptor {
20905           get { return Descriptor; }
20906         }
20907 
20908         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20909         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooGroup()20910         public FooGroup() {
20911           OnConstruction();
20912         }
20913 
OnConstruction()20914         partial void OnConstruction();
20915 
20916         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20917         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooGroup(FooGroup other)20918         public FooGroup(FooGroup other) : this() {
20919           _hasBits0 = other._hasBits0;
20920           a_ = other.a_;
20921           b_ = other.b_;
20922           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20923         }
20924 
20925         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20926         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()20927         public FooGroup Clone() {
20928           return new FooGroup(this);
20929         }
20930 
20931         /// <summary>Field number for the "a" field.</summary>
20932         public const int AFieldNumber = 5;
20933         private readonly static int ADefaultValue = 0;
20934 
20935         private int a_;
20936         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20937         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20938         public int A {
20939           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
20940           set {
20941             _hasBits0 |= 1;
20942             a_ = value;
20943           }
20944         }
20945         /// <summary>Gets whether the "a" field is set</summary>
20946         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20947         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20948         public bool HasA {
20949           get { return (_hasBits0 & 1) != 0; }
20950         }
20951         /// <summary>Clears the value of the "a" field</summary>
20952         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20953         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()20954         public void ClearA() {
20955           _hasBits0 &= ~1;
20956         }
20957 
20958         /// <summary>Field number for the "b" field.</summary>
20959         public const int BFieldNumber = 6;
20960         private readonly static string BDefaultValue = "";
20961 
20962         private string b_;
20963         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20964         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20965         public string B {
20966           get { return b_ ?? BDefaultValue; }
20967           set {
20968             b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
20969           }
20970         }
20971         /// <summary>Gets whether the "b" field is set</summary>
20972         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20973         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
20974         public bool HasB {
20975           get { return b_ != null; }
20976         }
20977         /// <summary>Clears the value of the "b" field</summary>
20978         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20979         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearB()20980         public void ClearB() {
20981           b_ = null;
20982         }
20983 
20984         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20985         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)20986         public override bool Equals(object other) {
20987           return Equals(other as FooGroup);
20988         }
20989 
20990         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20991         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FooGroup other)20992         public bool Equals(FooGroup other) {
20993           if (ReferenceEquals(other, null)) {
20994             return false;
20995           }
20996           if (ReferenceEquals(other, this)) {
20997             return true;
20998           }
20999           if (A != other.A) return false;
21000           if (B != other.B) return false;
21001           return Equals(_unknownFields, other._unknownFields);
21002         }
21003 
21004         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21005         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()21006         public override int GetHashCode() {
21007           int hash = 1;
21008           if (HasA) hash ^= A.GetHashCode();
21009           if (HasB) hash ^= B.GetHashCode();
21010           if (_unknownFields != null) {
21011             hash ^= _unknownFields.GetHashCode();
21012           }
21013           return hash;
21014         }
21015 
21016         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21017         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()21018         public override string ToString() {
21019           return pb::JsonFormatter.ToDiagnosticString(this);
21020         }
21021 
21022         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21023         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)21024         public void WriteTo(pb::CodedOutputStream output) {
21025         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21026           output.WriteRawMessage(this);
21027         #else
21028           if (HasA) {
21029             output.WriteRawTag(40);
21030             output.WriteInt32(A);
21031           }
21032           if (HasB) {
21033             output.WriteRawTag(50);
21034             output.WriteString(B);
21035           }
21036           if (_unknownFields != null) {
21037             _unknownFields.WriteTo(output);
21038           }
21039         #endif
21040         }
21041 
21042         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21043         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21044         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)21045         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
21046           if (HasA) {
21047             output.WriteRawTag(40);
21048             output.WriteInt32(A);
21049           }
21050           if (HasB) {
21051             output.WriteRawTag(50);
21052             output.WriteString(B);
21053           }
21054           if (_unknownFields != null) {
21055             _unknownFields.WriteTo(ref output);
21056           }
21057         }
21058         #endif
21059 
21060         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21061         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()21062         public int CalculateSize() {
21063           int size = 0;
21064           if (HasA) {
21065             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
21066           }
21067           if (HasB) {
21068             size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
21069           }
21070           if (_unknownFields != null) {
21071             size += _unknownFields.CalculateSize();
21072           }
21073           return size;
21074         }
21075 
21076         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21077         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FooGroup other)21078         public void MergeFrom(FooGroup other) {
21079           if (other == null) {
21080             return;
21081           }
21082           if (other.HasA) {
21083             A = other.A;
21084           }
21085           if (other.HasB) {
21086             B = other.B;
21087           }
21088           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
21089         }
21090 
21091         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21092         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)21093         public void MergeFrom(pb::CodedInputStream input) {
21094         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21095           input.ReadRawMessage(this);
21096         #else
21097           uint tag;
21098           while ((tag = input.ReadTag()) != 0) {
21099             switch(tag) {
21100               case 36:
21101                 return;
21102               default:
21103                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
21104                 break;
21105               case 40: {
21106                 A = input.ReadInt32();
21107                 break;
21108               }
21109               case 50: {
21110                 B = input.ReadString();
21111                 break;
21112               }
21113             }
21114           }
21115         #endif
21116         }
21117 
21118         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21119         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21120         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)21121         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
21122           uint tag;
21123           while ((tag = input.ReadTag()) != 0) {
21124             switch(tag) {
21125               case 36:
21126                 return;
21127               default:
21128                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
21129                 break;
21130               case 40: {
21131                 A = input.ReadInt32();
21132                 break;
21133               }
21134               case 50: {
21135                 B = input.ReadString();
21136                 break;
21137               }
21138             }
21139           }
21140         }
21141         #endif
21142 
21143       }
21144 
21145     }
21146     #endregion
21147 
21148   }
21149 
21150   public sealed partial class TestOneofBackwardsCompatible : pb::IMessage<TestOneofBackwardsCompatible>
21151   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21152       , pb::IBufferMessage
21153   #endif
21154   {
21155     private static readonly pb::MessageParser<TestOneofBackwardsCompatible> _parser = new pb::MessageParser<TestOneofBackwardsCompatible>(() => new TestOneofBackwardsCompatible());
21156     private pb::UnknownFieldSet _unknownFields;
21157     private int _hasBits0;
21158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21159     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21160     public static pb::MessageParser<TestOneofBackwardsCompatible> Parser { get { return _parser; } }
21161 
21162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21163     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21164     public static pbr::MessageDescriptor Descriptor {
21165       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[44]; }
21166     }
21167 
21168     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21169     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21170     pbr::MessageDescriptor pb::IMessage.Descriptor {
21171       get { return Descriptor; }
21172     }
21173 
21174     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21175     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestOneofBackwardsCompatible()21176     public TestOneofBackwardsCompatible() {
21177       OnConstruction();
21178     }
21179 
OnConstruction()21180     partial void OnConstruction();
21181 
21182     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21183     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestOneofBackwardsCompatible(TestOneofBackwardsCompatible other)21184     public TestOneofBackwardsCompatible(TestOneofBackwardsCompatible other) : this() {
21185       _hasBits0 = other._hasBits0;
21186       fooInt_ = other.fooInt_;
21187       fooString_ = other.fooString_;
21188       fooMessage_ = other.fooMessage_ != null ? other.fooMessage_.Clone() : null;
21189       fooGroup_ = other.HasFooGroup ? other.fooGroup_.Clone() : null;
21190       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
21191     }
21192 
21193     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21194     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()21195     public TestOneofBackwardsCompatible Clone() {
21196       return new TestOneofBackwardsCompatible(this);
21197     }
21198 
21199     /// <summary>Field number for the "foo_int" field.</summary>
21200     public const int FooIntFieldNumber = 1;
21201     private readonly static int FooIntDefaultValue = 0;
21202 
21203     private int fooInt_;
21204     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21205     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21206     public int FooInt {
21207       get { if ((_hasBits0 & 1) != 0) { return fooInt_; } else { return FooIntDefaultValue; } }
21208       set {
21209         _hasBits0 |= 1;
21210         fooInt_ = value;
21211       }
21212     }
21213     /// <summary>Gets whether the "foo_int" field is set</summary>
21214     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21215     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21216     public bool HasFooInt {
21217       get { return (_hasBits0 & 1) != 0; }
21218     }
21219     /// <summary>Clears the value of the "foo_int" field</summary>
21220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21221     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooInt()21222     public void ClearFooInt() {
21223       _hasBits0 &= ~1;
21224     }
21225 
21226     /// <summary>Field number for the "foo_string" field.</summary>
21227     public const int FooStringFieldNumber = 2;
21228     private readonly static string FooStringDefaultValue = "";
21229 
21230     private string fooString_;
21231     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21232     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21233     public string FooString {
21234       get { return fooString_ ?? FooStringDefaultValue; }
21235       set {
21236         fooString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21237       }
21238     }
21239     /// <summary>Gets whether the "foo_string" field is set</summary>
21240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21241     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21242     public bool HasFooString {
21243       get { return fooString_ != null; }
21244     }
21245     /// <summary>Clears the value of the "foo_string" field</summary>
21246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooString()21248     public void ClearFooString() {
21249       fooString_ = null;
21250     }
21251 
21252     /// <summary>Field number for the "foo_message" field.</summary>
21253     public const int FooMessageFieldNumber = 3;
21254     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes fooMessage_;
21255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21257     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
21258       get { return fooMessage_; }
21259       set {
21260         fooMessage_ = value;
21261       }
21262     }
21263 
21264     /// <summary>Field number for the "foogroup" field.</summary>
21265     public const int FooGroupFieldNumber = 4;
21266     private global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup fooGroup_;
21267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21268     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21269     public global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
21270       get { return fooGroup_; }
21271       set {
21272         fooGroup_ = value;
21273       }
21274     }
21275     /// <summary>Gets whether the foogroup field is set</summary>
21276     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21277     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21278     public bool HasFooGroup {
21279       get { return fooGroup_ != null; }
21280     }
21281     /// <summary>Clears the value of the foogroup field</summary>
21282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21283     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooGroup()21284     public void ClearFooGroup() {
21285       fooGroup_ = null;
21286     }
21287 
21288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21289     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)21290     public override bool Equals(object other) {
21291       return Equals(other as TestOneofBackwardsCompatible);
21292     }
21293 
21294     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21295     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestOneofBackwardsCompatible other)21296     public bool Equals(TestOneofBackwardsCompatible other) {
21297       if (ReferenceEquals(other, null)) {
21298         return false;
21299       }
21300       if (ReferenceEquals(other, this)) {
21301         return true;
21302       }
21303       if (FooInt != other.FooInt) return false;
21304       if (FooString != other.FooString) return false;
21305       if (!object.Equals(FooMessage, other.FooMessage)) return false;
21306       if (!object.Equals(FooGroup, other.FooGroup)) return false;
21307       return Equals(_unknownFields, other._unknownFields);
21308     }
21309 
21310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21311     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()21312     public override int GetHashCode() {
21313       int hash = 1;
21314       if (HasFooInt) hash ^= FooInt.GetHashCode();
21315       if (HasFooString) hash ^= FooString.GetHashCode();
21316       if (fooMessage_ != null) hash ^= FooMessage.GetHashCode();
21317       if (HasFooGroup) hash ^= FooGroup.GetHashCode();
21318       if (_unknownFields != null) {
21319         hash ^= _unknownFields.GetHashCode();
21320       }
21321       return hash;
21322     }
21323 
21324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21325     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()21326     public override string ToString() {
21327       return pb::JsonFormatter.ToDiagnosticString(this);
21328     }
21329 
21330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21331     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)21332     public void WriteTo(pb::CodedOutputStream output) {
21333     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21334       output.WriteRawMessage(this);
21335     #else
21336       if (HasFooInt) {
21337         output.WriteRawTag(8);
21338         output.WriteInt32(FooInt);
21339       }
21340       if (HasFooString) {
21341         output.WriteRawTag(18);
21342         output.WriteString(FooString);
21343       }
21344       if (fooMessage_ != null) {
21345         output.WriteRawTag(26);
21346         output.WriteMessage(FooMessage);
21347       }
21348       if (HasFooGroup) {
21349         output.WriteRawTag(35);
21350         output.WriteGroup(FooGroup);
21351         output.WriteRawTag(36);
21352       }
21353       if (_unknownFields != null) {
21354         _unknownFields.WriteTo(output);
21355       }
21356     #endif
21357     }
21358 
21359     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21361     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)21362     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
21363       if (HasFooInt) {
21364         output.WriteRawTag(8);
21365         output.WriteInt32(FooInt);
21366       }
21367       if (HasFooString) {
21368         output.WriteRawTag(18);
21369         output.WriteString(FooString);
21370       }
21371       if (fooMessage_ != null) {
21372         output.WriteRawTag(26);
21373         output.WriteMessage(FooMessage);
21374       }
21375       if (HasFooGroup) {
21376         output.WriteRawTag(35);
21377         output.WriteGroup(FooGroup);
21378         output.WriteRawTag(36);
21379       }
21380       if (_unknownFields != null) {
21381         _unknownFields.WriteTo(ref output);
21382       }
21383     }
21384     #endif
21385 
21386     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21387     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()21388     public int CalculateSize() {
21389       int size = 0;
21390       if (HasFooInt) {
21391         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
21392       }
21393       if (HasFooString) {
21394         size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
21395       }
21396       if (fooMessage_ != null) {
21397         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
21398       }
21399       if (HasFooGroup) {
21400         size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
21401       }
21402       if (_unknownFields != null) {
21403         size += _unknownFields.CalculateSize();
21404       }
21405       return size;
21406     }
21407 
21408     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21409     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestOneofBackwardsCompatible other)21410     public void MergeFrom(TestOneofBackwardsCompatible other) {
21411       if (other == null) {
21412         return;
21413       }
21414       if (other.HasFooInt) {
21415         FooInt = other.FooInt;
21416       }
21417       if (other.HasFooString) {
21418         FooString = other.FooString;
21419       }
21420       if (other.fooMessage_ != null) {
21421         if (fooMessage_ == null) {
21422           FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
21423         }
21424         FooMessage.MergeFrom(other.FooMessage);
21425       }
21426       if (other.HasFooGroup) {
21427         if (!HasFooGroup) {
21428           FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
21429         }
21430         FooGroup.MergeFrom(other.FooGroup);
21431       }
21432       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
21433     }
21434 
21435     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21436     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)21437     public void MergeFrom(pb::CodedInputStream input) {
21438     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21439       input.ReadRawMessage(this);
21440     #else
21441       uint tag;
21442       while ((tag = input.ReadTag()) != 0) {
21443         switch(tag) {
21444           default:
21445             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
21446             break;
21447           case 8: {
21448             FooInt = input.ReadInt32();
21449             break;
21450           }
21451           case 18: {
21452             FooString = input.ReadString();
21453             break;
21454           }
21455           case 26: {
21456             if (fooMessage_ == null) {
21457               FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
21458             }
21459             input.ReadMessage(FooMessage);
21460             break;
21461           }
21462           case 35: {
21463             if (!HasFooGroup) {
21464               FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
21465             }
21466             input.ReadGroup(FooGroup);
21467             break;
21468           }
21469         }
21470       }
21471     #endif
21472     }
21473 
21474     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21475     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21476     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)21477     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
21478       uint tag;
21479       while ((tag = input.ReadTag()) != 0) {
21480         switch(tag) {
21481           default:
21482             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
21483             break;
21484           case 8: {
21485             FooInt = input.ReadInt32();
21486             break;
21487           }
21488           case 18: {
21489             FooString = input.ReadString();
21490             break;
21491           }
21492           case 26: {
21493             if (fooMessage_ == null) {
21494               FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
21495             }
21496             input.ReadMessage(FooMessage);
21497             break;
21498           }
21499           case 35: {
21500             if (!HasFooGroup) {
21501               FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
21502             }
21503             input.ReadGroup(FooGroup);
21504             break;
21505           }
21506         }
21507       }
21508     }
21509     #endif
21510 
21511     #region Nested types
21512     /// <summary>Container for nested types declared in the TestOneofBackwardsCompatible message type.</summary>
21513     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21514     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21515     public static partial class Types {
21516       public sealed partial class FooGroup : pb::IMessage<FooGroup>
21517       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21518           , pb::IBufferMessage
21519       #endif
21520       {
21521         private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
21522         private pb::UnknownFieldSet _unknownFields;
21523         private int _hasBits0;
21524         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21525         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21526         public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
21527 
21528         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21529         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21530         public static pbr::MessageDescriptor Descriptor {
21531           get { return global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Descriptor.NestedTypes[0]; }
21532         }
21533 
21534         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21535         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21536         pbr::MessageDescriptor pb::IMessage.Descriptor {
21537           get { return Descriptor; }
21538         }
21539 
21540         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21541         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooGroup()21542         public FooGroup() {
21543           OnConstruction();
21544         }
21545 
OnConstruction()21546         partial void OnConstruction();
21547 
21548         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21549         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooGroup(FooGroup other)21550         public FooGroup(FooGroup other) : this() {
21551           _hasBits0 = other._hasBits0;
21552           a_ = other.a_;
21553           b_ = other.b_;
21554           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
21555         }
21556 
21557         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21558         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()21559         public FooGroup Clone() {
21560           return new FooGroup(this);
21561         }
21562 
21563         /// <summary>Field number for the "a" field.</summary>
21564         public const int AFieldNumber = 5;
21565         private readonly static int ADefaultValue = 0;
21566 
21567         private int a_;
21568         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21569         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21570         public int A {
21571           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
21572           set {
21573             _hasBits0 |= 1;
21574             a_ = value;
21575           }
21576         }
21577         /// <summary>Gets whether the "a" field is set</summary>
21578         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21579         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21580         public bool HasA {
21581           get { return (_hasBits0 & 1) != 0; }
21582         }
21583         /// <summary>Clears the value of the "a" field</summary>
21584         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21585         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()21586         public void ClearA() {
21587           _hasBits0 &= ~1;
21588         }
21589 
21590         /// <summary>Field number for the "b" field.</summary>
21591         public const int BFieldNumber = 6;
21592         private readonly static string BDefaultValue = "";
21593 
21594         private string b_;
21595         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21596         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21597         public string B {
21598           get { return b_ ?? BDefaultValue; }
21599           set {
21600             b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21601           }
21602         }
21603         /// <summary>Gets whether the "b" field is set</summary>
21604         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21605         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21606         public bool HasB {
21607           get { return b_ != null; }
21608         }
21609         /// <summary>Clears the value of the "b" field</summary>
21610         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21611         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearB()21612         public void ClearB() {
21613           b_ = null;
21614         }
21615 
21616         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21617         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)21618         public override bool Equals(object other) {
21619           return Equals(other as FooGroup);
21620         }
21621 
21622         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21623         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FooGroup other)21624         public bool Equals(FooGroup other) {
21625           if (ReferenceEquals(other, null)) {
21626             return false;
21627           }
21628           if (ReferenceEquals(other, this)) {
21629             return true;
21630           }
21631           if (A != other.A) return false;
21632           if (B != other.B) return false;
21633           return Equals(_unknownFields, other._unknownFields);
21634         }
21635 
21636         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21637         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()21638         public override int GetHashCode() {
21639           int hash = 1;
21640           if (HasA) hash ^= A.GetHashCode();
21641           if (HasB) hash ^= B.GetHashCode();
21642           if (_unknownFields != null) {
21643             hash ^= _unknownFields.GetHashCode();
21644           }
21645           return hash;
21646         }
21647 
21648         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21649         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()21650         public override string ToString() {
21651           return pb::JsonFormatter.ToDiagnosticString(this);
21652         }
21653 
21654         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21655         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)21656         public void WriteTo(pb::CodedOutputStream output) {
21657         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21658           output.WriteRawMessage(this);
21659         #else
21660           if (HasA) {
21661             output.WriteRawTag(40);
21662             output.WriteInt32(A);
21663           }
21664           if (HasB) {
21665             output.WriteRawTag(50);
21666             output.WriteString(B);
21667           }
21668           if (_unknownFields != null) {
21669             _unknownFields.WriteTo(output);
21670           }
21671         #endif
21672         }
21673 
21674         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21675         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21676         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)21677         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
21678           if (HasA) {
21679             output.WriteRawTag(40);
21680             output.WriteInt32(A);
21681           }
21682           if (HasB) {
21683             output.WriteRawTag(50);
21684             output.WriteString(B);
21685           }
21686           if (_unknownFields != null) {
21687             _unknownFields.WriteTo(ref output);
21688           }
21689         }
21690         #endif
21691 
21692         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21693         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()21694         public int CalculateSize() {
21695           int size = 0;
21696           if (HasA) {
21697             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
21698           }
21699           if (HasB) {
21700             size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
21701           }
21702           if (_unknownFields != null) {
21703             size += _unknownFields.CalculateSize();
21704           }
21705           return size;
21706         }
21707 
21708         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21709         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FooGroup other)21710         public void MergeFrom(FooGroup other) {
21711           if (other == null) {
21712             return;
21713           }
21714           if (other.HasA) {
21715             A = other.A;
21716           }
21717           if (other.HasB) {
21718             B = other.B;
21719           }
21720           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
21721         }
21722 
21723         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21724         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)21725         public void MergeFrom(pb::CodedInputStream input) {
21726         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21727           input.ReadRawMessage(this);
21728         #else
21729           uint tag;
21730           while ((tag = input.ReadTag()) != 0) {
21731             switch(tag) {
21732               case 36:
21733                 return;
21734               default:
21735                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
21736                 break;
21737               case 40: {
21738                 A = input.ReadInt32();
21739                 break;
21740               }
21741               case 50: {
21742                 B = input.ReadString();
21743                 break;
21744               }
21745             }
21746           }
21747         #endif
21748         }
21749 
21750         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21751         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21752         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)21753         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
21754           uint tag;
21755           while ((tag = input.ReadTag()) != 0) {
21756             switch(tag) {
21757               case 36:
21758                 return;
21759               default:
21760                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
21761                 break;
21762               case 40: {
21763                 A = input.ReadInt32();
21764                 break;
21765               }
21766               case 50: {
21767                 B = input.ReadString();
21768                 break;
21769               }
21770             }
21771           }
21772         }
21773         #endif
21774 
21775       }
21776 
21777     }
21778     #endregion
21779 
21780   }
21781 
21782   public sealed partial class TestOneof2 : pb::IMessage<TestOneof2>
21783   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21784       , pb::IBufferMessage
21785   #endif
21786   {
21787     private static readonly pb::MessageParser<TestOneof2> _parser = new pb::MessageParser<TestOneof2>(() => new TestOneof2());
21788     private pb::UnknownFieldSet _unknownFields;
21789     private int _hasBits0;
21790     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21791     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21792     public static pb::MessageParser<TestOneof2> Parser { get { return _parser; } }
21793 
21794     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21795     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21796     public static pbr::MessageDescriptor Descriptor {
21797       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[45]; }
21798     }
21799 
21800     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21801     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21802     pbr::MessageDescriptor pb::IMessage.Descriptor {
21803       get { return Descriptor; }
21804     }
21805 
21806     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21807     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestOneof2()21808     public TestOneof2() {
21809       OnConstruction();
21810     }
21811 
OnConstruction()21812     partial void OnConstruction();
21813 
21814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21815     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestOneof2(TestOneof2 other)21816     public TestOneof2(TestOneof2 other) : this() {
21817       _hasBits0 = other._hasBits0;
21818       bazInt_ = other.bazInt_;
21819       bazString_ = other.bazString_;
21820       switch (other.FooCase) {
21821         case FooOneofCase.FooInt:
21822           FooInt = other.FooInt;
21823           break;
21824         case FooOneofCase.FooString:
21825           FooString = other.FooString;
21826           break;
21827         case FooOneofCase.FooCord:
21828           FooCord = other.FooCord;
21829           break;
21830         case FooOneofCase.FooStringPiece:
21831           FooStringPiece = other.FooStringPiece;
21832           break;
21833         case FooOneofCase.FooBytes:
21834           FooBytes = other.FooBytes;
21835           break;
21836         case FooOneofCase.FooEnum:
21837           FooEnum = other.FooEnum;
21838           break;
21839         case FooOneofCase.FooMessage:
21840           FooMessage = other.FooMessage.Clone();
21841           break;
21842         case FooOneofCase.FooGroup:
21843           FooGroup = other.FooGroup.Clone();
21844           break;
21845         case FooOneofCase.FooLazyMessage:
21846           FooLazyMessage = other.FooLazyMessage.Clone();
21847           break;
21848       }
21849 
21850       switch (other.BarCase) {
21851         case BarOneofCase.BarInt:
21852           BarInt = other.BarInt;
21853           break;
21854         case BarOneofCase.BarString:
21855           BarString = other.BarString;
21856           break;
21857         case BarOneofCase.BarCord:
21858           BarCord = other.BarCord;
21859           break;
21860         case BarOneofCase.BarStringPiece:
21861           BarStringPiece = other.BarStringPiece;
21862           break;
21863         case BarOneofCase.BarBytes:
21864           BarBytes = other.BarBytes;
21865           break;
21866         case BarOneofCase.BarEnum:
21867           BarEnum = other.BarEnum;
21868           break;
21869       }
21870 
21871       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
21872     }
21873 
21874     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21875     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()21876     public TestOneof2 Clone() {
21877       return new TestOneof2(this);
21878     }
21879 
21880     /// <summary>Field number for the "foo_int" field.</summary>
21881     public const int FooIntFieldNumber = 1;
21882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21884     public int FooInt {
21885       get { return HasFooInt ? (int) foo_ : 0; }
21886       set {
21887         foo_ = value;
21888         fooCase_ = FooOneofCase.FooInt;
21889       }
21890     }
21891     /// <summary>Gets whether the "foo_int" field is set</summary>
21892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21893     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21894     public bool HasFooInt {
21895       get { return fooCase_ == FooOneofCase.FooInt; }
21896     }
21897     /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
21898     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21899     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooInt()21900     public void ClearFooInt() {
21901       if (HasFooInt) {
21902         ClearFoo();
21903       }
21904     }
21905 
21906     /// <summary>Field number for the "foo_string" field.</summary>
21907     public const int FooStringFieldNumber = 2;
21908     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21909     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21910     public string FooString {
21911       get { return HasFooString ? (string) foo_ : ""; }
21912       set {
21913         foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21914         fooCase_ = FooOneofCase.FooString;
21915       }
21916     }
21917     /// <summary>Gets whether the "foo_string" field is set</summary>
21918     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21919     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21920     public bool HasFooString {
21921       get { return fooCase_ == FooOneofCase.FooString; }
21922     }
21923     /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
21924     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21925     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooString()21926     public void ClearFooString() {
21927       if (HasFooString) {
21928         ClearFoo();
21929       }
21930     }
21931 
21932     /// <summary>Field number for the "foo_cord" field.</summary>
21933     public const int FooCordFieldNumber = 3;
21934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21935     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21936     public string FooCord {
21937       get { return HasFooCord ? (string) foo_ : ""; }
21938       set {
21939         foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21940         fooCase_ = FooOneofCase.FooCord;
21941       }
21942     }
21943     /// <summary>Gets whether the "foo_cord" field is set</summary>
21944     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21945     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21946     public bool HasFooCord {
21947       get { return fooCase_ == FooOneofCase.FooCord; }
21948     }
21949     /// <summary> Clears the value of the oneof if it's currently set to "foo_cord" </summary>
21950     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21951     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooCord()21952     public void ClearFooCord() {
21953       if (HasFooCord) {
21954         ClearFoo();
21955       }
21956     }
21957 
21958     /// <summary>Field number for the "foo_string_piece" field.</summary>
21959     public const int FooStringPieceFieldNumber = 4;
21960     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21961     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21962     public string FooStringPiece {
21963       get { return HasFooStringPiece ? (string) foo_ : ""; }
21964       set {
21965         foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21966         fooCase_ = FooOneofCase.FooStringPiece;
21967       }
21968     }
21969     /// <summary>Gets whether the "foo_string_piece" field is set</summary>
21970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21971     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21972     public bool HasFooStringPiece {
21973       get { return fooCase_ == FooOneofCase.FooStringPiece; }
21974     }
21975     /// <summary> Clears the value of the oneof if it's currently set to "foo_string_piece" </summary>
21976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21977     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooStringPiece()21978     public void ClearFooStringPiece() {
21979       if (HasFooStringPiece) {
21980         ClearFoo();
21981       }
21982     }
21983 
21984     /// <summary>Field number for the "foo_bytes" field.</summary>
21985     public const int FooBytesFieldNumber = 5;
21986     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21987     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21988     public pb::ByteString FooBytes {
21989       get { return HasFooBytes ? (pb::ByteString) foo_ : pb::ByteString.Empty; }
21990       set {
21991         foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21992         fooCase_ = FooOneofCase.FooBytes;
21993       }
21994     }
21995     /// <summary>Gets whether the "foo_bytes" field is set</summary>
21996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21997     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21998     public bool HasFooBytes {
21999       get { return fooCase_ == FooOneofCase.FooBytes; }
22000     }
22001     /// <summary> Clears the value of the oneof if it's currently set to "foo_bytes" </summary>
22002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22003     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooBytes()22004     public void ClearFooBytes() {
22005       if (HasFooBytes) {
22006         ClearFoo();
22007       }
22008     }
22009 
22010     /// <summary>Field number for the "foo_enum" field.</summary>
22011     public const int FooEnumFieldNumber = 6;
22012     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22013     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22014     public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum FooEnum {
22015       get { return HasFooEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) foo_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Foo; }
22016       set {
22017         foo_ = value;
22018         fooCase_ = FooOneofCase.FooEnum;
22019       }
22020     }
22021     /// <summary>Gets whether the "foo_enum" field is set</summary>
22022     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22023     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22024     public bool HasFooEnum {
22025       get { return fooCase_ == FooOneofCase.FooEnum; }
22026     }
22027     /// <summary> Clears the value of the oneof if it's currently set to "foo_enum" </summary>
22028     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22029     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooEnum()22030     public void ClearFooEnum() {
22031       if (HasFooEnum) {
22032         ClearFoo();
22033       }
22034     }
22035 
22036     /// <summary>Field number for the "foo_message" field.</summary>
22037     public const int FooMessageFieldNumber = 7;
22038     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22039     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22040     public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooMessage {
22041       get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
22042       set {
22043         foo_ = value;
22044         fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
22045       }
22046     }
22047 
22048     /// <summary>Field number for the "foogroup" field.</summary>
22049     public const int FooGroupFieldNumber = 8;
22050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22051     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22052     public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup FooGroup {
22053       get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup) foo_ : null; }
22054       set {
22055         foo_ = value;
22056         fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
22057       }
22058     }
22059     /// <summary>Gets whether the "foogroup" field is set</summary>
22060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22061     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22062     public bool HasFooGroup {
22063       get { return fooCase_ == FooOneofCase.FooGroup; }
22064     }
22065     /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
22066     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22067     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooGroup()22068     public void ClearFooGroup() {
22069       if (HasFooGroup) {
22070         ClearFoo();
22071       }
22072     }
22073 
22074     /// <summary>Field number for the "foo_lazy_message" field.</summary>
22075     public const int FooLazyMessageFieldNumber = 11;
22076     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22077     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22078     public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooLazyMessage {
22079       get { return fooCase_ == FooOneofCase.FooLazyMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
22080       set {
22081         foo_ = value;
22082         fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooLazyMessage;
22083       }
22084     }
22085 
22086     /// <summary>Field number for the "bar_int" field.</summary>
22087     public const int BarIntFieldNumber = 12;
22088     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22089     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22090     public int BarInt {
22091       get { return HasBarInt ? (int) bar_ : 5; }
22092       set {
22093         bar_ = value;
22094         barCase_ = BarOneofCase.BarInt;
22095       }
22096     }
22097     /// <summary>Gets whether the "bar_int" field is set</summary>
22098     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22099     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22100     public bool HasBarInt {
22101       get { return barCase_ == BarOneofCase.BarInt; }
22102     }
22103     /// <summary> Clears the value of the oneof if it's currently set to "bar_int" </summary>
22104     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22105     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBarInt()22106     public void ClearBarInt() {
22107       if (HasBarInt) {
22108         ClearBar();
22109       }
22110     }
22111 
22112     /// <summary>Field number for the "bar_string" field.</summary>
22113     public const int BarStringFieldNumber = 13;
22114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22115     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22116     public string BarString {
22117       get { return HasBarString ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1RSSU5H"), 0, 6); }
22118       set {
22119         bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22120         barCase_ = BarOneofCase.BarString;
22121       }
22122     }
22123     /// <summary>Gets whether the "bar_string" field is set</summary>
22124     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22125     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22126     public bool HasBarString {
22127       get { return barCase_ == BarOneofCase.BarString; }
22128     }
22129     /// <summary> Clears the value of the oneof if it's currently set to "bar_string" </summary>
22130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22131     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBarString()22132     public void ClearBarString() {
22133       if (HasBarString) {
22134         ClearBar();
22135       }
22136     }
22137 
22138     /// <summary>Field number for the "bar_cord" field.</summary>
22139     public const int BarCordFieldNumber = 14;
22140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22141     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22142     public string BarCord {
22143       get { return HasBarCord ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Q09SRA=="), 0, 4); }
22144       set {
22145         bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22146         barCase_ = BarOneofCase.BarCord;
22147       }
22148     }
22149     /// <summary>Gets whether the "bar_cord" field is set</summary>
22150     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22151     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22152     public bool HasBarCord {
22153       get { return barCase_ == BarOneofCase.BarCord; }
22154     }
22155     /// <summary> Clears the value of the oneof if it's currently set to "bar_cord" </summary>
22156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22157     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBarCord()22158     public void ClearBarCord() {
22159       if (HasBarCord) {
22160         ClearBar();
22161       }
22162     }
22163 
22164     /// <summary>Field number for the "bar_string_piece" field.</summary>
22165     public const int BarStringPieceFieldNumber = 15;
22166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22167     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22168     public string BarStringPiece {
22169       get { return HasBarStringPiece ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1BJRUNF"), 0, 6); }
22170       set {
22171         bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22172         barCase_ = BarOneofCase.BarStringPiece;
22173       }
22174     }
22175     /// <summary>Gets whether the "bar_string_piece" field is set</summary>
22176     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22177     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22178     public bool HasBarStringPiece {
22179       get { return barCase_ == BarOneofCase.BarStringPiece; }
22180     }
22181     /// <summary> Clears the value of the oneof if it's currently set to "bar_string_piece" </summary>
22182     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22183     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBarStringPiece()22184     public void ClearBarStringPiece() {
22185       if (HasBarStringPiece) {
22186         ClearBar();
22187       }
22188     }
22189 
22190     /// <summary>Field number for the "bar_bytes" field.</summary>
22191     public const int BarBytesFieldNumber = 16;
22192     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22193     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22194     public pb::ByteString BarBytes {
22195       get { return HasBarBytes ? (pb::ByteString) bar_ : pb::ByteString.FromBase64("QllURVM="); }
22196       set {
22197         bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22198         barCase_ = BarOneofCase.BarBytes;
22199       }
22200     }
22201     /// <summary>Gets whether the "bar_bytes" field is set</summary>
22202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22203     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22204     public bool HasBarBytes {
22205       get { return barCase_ == BarOneofCase.BarBytes; }
22206     }
22207     /// <summary> Clears the value of the oneof if it's currently set to "bar_bytes" </summary>
22208     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22209     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBarBytes()22210     public void ClearBarBytes() {
22211       if (HasBarBytes) {
22212         ClearBar();
22213       }
22214     }
22215 
22216     /// <summary>Field number for the "bar_enum" field.</summary>
22217     public const int BarEnumFieldNumber = 17;
22218     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22219     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22220     public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum BarEnum {
22221       get { return HasBarEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) bar_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Bar; }
22222       set {
22223         bar_ = value;
22224         barCase_ = BarOneofCase.BarEnum;
22225       }
22226     }
22227     /// <summary>Gets whether the "bar_enum" field is set</summary>
22228     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22229     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22230     public bool HasBarEnum {
22231       get { return barCase_ == BarOneofCase.BarEnum; }
22232     }
22233     /// <summary> Clears the value of the oneof if it's currently set to "bar_enum" </summary>
22234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22235     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBarEnum()22236     public void ClearBarEnum() {
22237       if (HasBarEnum) {
22238         ClearBar();
22239       }
22240     }
22241 
22242     /// <summary>Field number for the "baz_int" field.</summary>
22243     public const int BazIntFieldNumber = 18;
22244     private readonly static int BazIntDefaultValue = 0;
22245 
22246     private int bazInt_;
22247     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22248     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22249     public int BazInt {
22250       get { if ((_hasBits0 & 1) != 0) { return bazInt_; } else { return BazIntDefaultValue; } }
22251       set {
22252         _hasBits0 |= 1;
22253         bazInt_ = value;
22254       }
22255     }
22256     /// <summary>Gets whether the "baz_int" field is set</summary>
22257     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22258     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22259     public bool HasBazInt {
22260       get { return (_hasBits0 & 1) != 0; }
22261     }
22262     /// <summary>Clears the value of the "baz_int" field</summary>
22263     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22264     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBazInt()22265     public void ClearBazInt() {
22266       _hasBits0 &= ~1;
22267     }
22268 
22269     /// <summary>Field number for the "baz_string" field.</summary>
22270     public const int BazStringFieldNumber = 19;
22271     private readonly static string BazStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("QkFa"), 0, 3);
22272 
22273     private string bazString_;
22274     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22275     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22276     public string BazString {
22277       get { return bazString_ ?? BazStringDefaultValue; }
22278       set {
22279         bazString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22280       }
22281     }
22282     /// <summary>Gets whether the "baz_string" field is set</summary>
22283     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22284     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22285     public bool HasBazString {
22286       get { return bazString_ != null; }
22287     }
22288     /// <summary>Clears the value of the "baz_string" field</summary>
22289     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22290     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBazString()22291     public void ClearBazString() {
22292       bazString_ = null;
22293     }
22294 
22295     private object foo_;
22296     /// <summary>Enum of possible cases for the "foo" oneof.</summary>
22297     public enum FooOneofCase {
22298       None = 0,
22299       FooInt = 1,
22300       FooString = 2,
22301       FooCord = 3,
22302       FooStringPiece = 4,
22303       FooBytes = 5,
22304       FooEnum = 6,
22305       FooMessage = 7,
22306       FooGroup = 8,
22307       FooLazyMessage = 11,
22308     }
22309     private FooOneofCase fooCase_ = FooOneofCase.None;
22310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22311     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22312     public FooOneofCase FooCase {
22313       get { return fooCase_; }
22314     }
22315 
22316     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22317     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFoo()22318     public void ClearFoo() {
22319       fooCase_ = FooOneofCase.None;
22320       foo_ = null;
22321     }
22322 
22323     private object bar_;
22324     /// <summary>Enum of possible cases for the "bar" oneof.</summary>
22325     public enum BarOneofCase {
22326       None = 0,
22327       BarInt = 12,
22328       BarString = 13,
22329       BarCord = 14,
22330       BarStringPiece = 15,
22331       BarBytes = 16,
22332       BarEnum = 17,
22333     }
22334     private BarOneofCase barCase_ = BarOneofCase.None;
22335     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22336     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22337     public BarOneofCase BarCase {
22338       get { return barCase_; }
22339     }
22340 
22341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22342     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBar()22343     public void ClearBar() {
22344       barCase_ = BarOneofCase.None;
22345       bar_ = null;
22346     }
22347 
22348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)22350     public override bool Equals(object other) {
22351       return Equals(other as TestOneof2);
22352     }
22353 
22354     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22355     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestOneof2 other)22356     public bool Equals(TestOneof2 other) {
22357       if (ReferenceEquals(other, null)) {
22358         return false;
22359       }
22360       if (ReferenceEquals(other, this)) {
22361         return true;
22362       }
22363       if (FooInt != other.FooInt) return false;
22364       if (FooString != other.FooString) return false;
22365       if (FooCord != other.FooCord) return false;
22366       if (FooStringPiece != other.FooStringPiece) return false;
22367       if (FooBytes != other.FooBytes) return false;
22368       if (FooEnum != other.FooEnum) return false;
22369       if (!object.Equals(FooMessage, other.FooMessage)) return false;
22370       if (!object.Equals(FooGroup, other.FooGroup)) return false;
22371       if (!object.Equals(FooLazyMessage, other.FooLazyMessage)) return false;
22372       if (BarInt != other.BarInt) return false;
22373       if (BarString != other.BarString) return false;
22374       if (BarCord != other.BarCord) return false;
22375       if (BarStringPiece != other.BarStringPiece) return false;
22376       if (BarBytes != other.BarBytes) return false;
22377       if (BarEnum != other.BarEnum) return false;
22378       if (BazInt != other.BazInt) return false;
22379       if (BazString != other.BazString) return false;
22380       if (FooCase != other.FooCase) return false;
22381       if (BarCase != other.BarCase) return false;
22382       return Equals(_unknownFields, other._unknownFields);
22383     }
22384 
22385     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22386     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()22387     public override int GetHashCode() {
22388       int hash = 1;
22389       if (HasFooInt) hash ^= FooInt.GetHashCode();
22390       if (HasFooString) hash ^= FooString.GetHashCode();
22391       if (HasFooCord) hash ^= FooCord.GetHashCode();
22392       if (HasFooStringPiece) hash ^= FooStringPiece.GetHashCode();
22393       if (HasFooBytes) hash ^= FooBytes.GetHashCode();
22394       if (HasFooEnum) hash ^= FooEnum.GetHashCode();
22395       if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
22396       if (HasFooGroup) hash ^= FooGroup.GetHashCode();
22397       if (fooCase_ == FooOneofCase.FooLazyMessage) hash ^= FooLazyMessage.GetHashCode();
22398       if (HasBarInt) hash ^= BarInt.GetHashCode();
22399       if (HasBarString) hash ^= BarString.GetHashCode();
22400       if (HasBarCord) hash ^= BarCord.GetHashCode();
22401       if (HasBarStringPiece) hash ^= BarStringPiece.GetHashCode();
22402       if (HasBarBytes) hash ^= BarBytes.GetHashCode();
22403       if (HasBarEnum) hash ^= BarEnum.GetHashCode();
22404       if (HasBazInt) hash ^= BazInt.GetHashCode();
22405       if (HasBazString) hash ^= BazString.GetHashCode();
22406       hash ^= (int) fooCase_;
22407       hash ^= (int) barCase_;
22408       if (_unknownFields != null) {
22409         hash ^= _unknownFields.GetHashCode();
22410       }
22411       return hash;
22412     }
22413 
22414     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22415     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()22416     public override string ToString() {
22417       return pb::JsonFormatter.ToDiagnosticString(this);
22418     }
22419 
22420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)22422     public void WriteTo(pb::CodedOutputStream output) {
22423     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22424       output.WriteRawMessage(this);
22425     #else
22426       if (HasFooInt) {
22427         output.WriteRawTag(8);
22428         output.WriteInt32(FooInt);
22429       }
22430       if (HasFooString) {
22431         output.WriteRawTag(18);
22432         output.WriteString(FooString);
22433       }
22434       if (HasFooCord) {
22435         output.WriteRawTag(26);
22436         output.WriteString(FooCord);
22437       }
22438       if (HasFooStringPiece) {
22439         output.WriteRawTag(34);
22440         output.WriteString(FooStringPiece);
22441       }
22442       if (HasFooBytes) {
22443         output.WriteRawTag(42);
22444         output.WriteBytes(FooBytes);
22445       }
22446       if (HasFooEnum) {
22447         output.WriteRawTag(48);
22448         output.WriteEnum((int) FooEnum);
22449       }
22450       if (fooCase_ == FooOneofCase.FooMessage) {
22451         output.WriteRawTag(58);
22452         output.WriteMessage(FooMessage);
22453       }
22454       if (HasFooGroup) {
22455         output.WriteRawTag(67);
22456         output.WriteGroup(FooGroup);
22457         output.WriteRawTag(68);
22458       }
22459       if (fooCase_ == FooOneofCase.FooLazyMessage) {
22460         output.WriteRawTag(90);
22461         output.WriteMessage(FooLazyMessage);
22462       }
22463       if (HasBarInt) {
22464         output.WriteRawTag(96);
22465         output.WriteInt32(BarInt);
22466       }
22467       if (HasBarString) {
22468         output.WriteRawTag(106);
22469         output.WriteString(BarString);
22470       }
22471       if (HasBarCord) {
22472         output.WriteRawTag(114);
22473         output.WriteString(BarCord);
22474       }
22475       if (HasBarStringPiece) {
22476         output.WriteRawTag(122);
22477         output.WriteString(BarStringPiece);
22478       }
22479       if (HasBarBytes) {
22480         output.WriteRawTag(130, 1);
22481         output.WriteBytes(BarBytes);
22482       }
22483       if (HasBarEnum) {
22484         output.WriteRawTag(136, 1);
22485         output.WriteEnum((int) BarEnum);
22486       }
22487       if (HasBazInt) {
22488         output.WriteRawTag(144, 1);
22489         output.WriteInt32(BazInt);
22490       }
22491       if (HasBazString) {
22492         output.WriteRawTag(154, 1);
22493         output.WriteString(BazString);
22494       }
22495       if (_unknownFields != null) {
22496         _unknownFields.WriteTo(output);
22497       }
22498     #endif
22499     }
22500 
22501     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22502     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22503     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)22504     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
22505       if (HasFooInt) {
22506         output.WriteRawTag(8);
22507         output.WriteInt32(FooInt);
22508       }
22509       if (HasFooString) {
22510         output.WriteRawTag(18);
22511         output.WriteString(FooString);
22512       }
22513       if (HasFooCord) {
22514         output.WriteRawTag(26);
22515         output.WriteString(FooCord);
22516       }
22517       if (HasFooStringPiece) {
22518         output.WriteRawTag(34);
22519         output.WriteString(FooStringPiece);
22520       }
22521       if (HasFooBytes) {
22522         output.WriteRawTag(42);
22523         output.WriteBytes(FooBytes);
22524       }
22525       if (HasFooEnum) {
22526         output.WriteRawTag(48);
22527         output.WriteEnum((int) FooEnum);
22528       }
22529       if (fooCase_ == FooOneofCase.FooMessage) {
22530         output.WriteRawTag(58);
22531         output.WriteMessage(FooMessage);
22532       }
22533       if (HasFooGroup) {
22534         output.WriteRawTag(67);
22535         output.WriteGroup(FooGroup);
22536         output.WriteRawTag(68);
22537       }
22538       if (fooCase_ == FooOneofCase.FooLazyMessage) {
22539         output.WriteRawTag(90);
22540         output.WriteMessage(FooLazyMessage);
22541       }
22542       if (HasBarInt) {
22543         output.WriteRawTag(96);
22544         output.WriteInt32(BarInt);
22545       }
22546       if (HasBarString) {
22547         output.WriteRawTag(106);
22548         output.WriteString(BarString);
22549       }
22550       if (HasBarCord) {
22551         output.WriteRawTag(114);
22552         output.WriteString(BarCord);
22553       }
22554       if (HasBarStringPiece) {
22555         output.WriteRawTag(122);
22556         output.WriteString(BarStringPiece);
22557       }
22558       if (HasBarBytes) {
22559         output.WriteRawTag(130, 1);
22560         output.WriteBytes(BarBytes);
22561       }
22562       if (HasBarEnum) {
22563         output.WriteRawTag(136, 1);
22564         output.WriteEnum((int) BarEnum);
22565       }
22566       if (HasBazInt) {
22567         output.WriteRawTag(144, 1);
22568         output.WriteInt32(BazInt);
22569       }
22570       if (HasBazString) {
22571         output.WriteRawTag(154, 1);
22572         output.WriteString(BazString);
22573       }
22574       if (_unknownFields != null) {
22575         _unknownFields.WriteTo(ref output);
22576       }
22577     }
22578     #endif
22579 
22580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22581     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()22582     public int CalculateSize() {
22583       int size = 0;
22584       if (HasFooInt) {
22585         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
22586       }
22587       if (HasFooString) {
22588         size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
22589       }
22590       if (HasFooCord) {
22591         size += 1 + pb::CodedOutputStream.ComputeStringSize(FooCord);
22592       }
22593       if (HasFooStringPiece) {
22594         size += 1 + pb::CodedOutputStream.ComputeStringSize(FooStringPiece);
22595       }
22596       if (HasFooBytes) {
22597         size += 1 + pb::CodedOutputStream.ComputeBytesSize(FooBytes);
22598       }
22599       if (HasFooEnum) {
22600         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FooEnum);
22601       }
22602       if (fooCase_ == FooOneofCase.FooMessage) {
22603         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
22604       }
22605       if (HasFooGroup) {
22606         size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
22607       }
22608       if (fooCase_ == FooOneofCase.FooLazyMessage) {
22609         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooLazyMessage);
22610       }
22611       if (HasBarInt) {
22612         size += 1 + pb::CodedOutputStream.ComputeInt32Size(BarInt);
22613       }
22614       if (HasBarString) {
22615         size += 1 + pb::CodedOutputStream.ComputeStringSize(BarString);
22616       }
22617       if (HasBarCord) {
22618         size += 1 + pb::CodedOutputStream.ComputeStringSize(BarCord);
22619       }
22620       if (HasBarStringPiece) {
22621         size += 1 + pb::CodedOutputStream.ComputeStringSize(BarStringPiece);
22622       }
22623       if (HasBarBytes) {
22624         size += 2 + pb::CodedOutputStream.ComputeBytesSize(BarBytes);
22625       }
22626       if (HasBarEnum) {
22627         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BarEnum);
22628       }
22629       if (HasBazInt) {
22630         size += 2 + pb::CodedOutputStream.ComputeInt32Size(BazInt);
22631       }
22632       if (HasBazString) {
22633         size += 2 + pb::CodedOutputStream.ComputeStringSize(BazString);
22634       }
22635       if (_unknownFields != null) {
22636         size += _unknownFields.CalculateSize();
22637       }
22638       return size;
22639     }
22640 
22641     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22642     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestOneof2 other)22643     public void MergeFrom(TestOneof2 other) {
22644       if (other == null) {
22645         return;
22646       }
22647       if (other.HasBazInt) {
22648         BazInt = other.BazInt;
22649       }
22650       if (other.HasBazString) {
22651         BazString = other.BazString;
22652       }
22653       switch (other.FooCase) {
22654         case FooOneofCase.FooInt:
22655           FooInt = other.FooInt;
22656           break;
22657         case FooOneofCase.FooString:
22658           FooString = other.FooString;
22659           break;
22660         case FooOneofCase.FooCord:
22661           FooCord = other.FooCord;
22662           break;
22663         case FooOneofCase.FooStringPiece:
22664           FooStringPiece = other.FooStringPiece;
22665           break;
22666         case FooOneofCase.FooBytes:
22667           FooBytes = other.FooBytes;
22668           break;
22669         case FooOneofCase.FooEnum:
22670           FooEnum = other.FooEnum;
22671           break;
22672         case FooOneofCase.FooMessage:
22673           if (FooMessage == null) {
22674             FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22675           }
22676           FooMessage.MergeFrom(other.FooMessage);
22677           break;
22678         case FooOneofCase.FooGroup:
22679           if (FooGroup == null) {
22680             FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
22681           }
22682           FooGroup.MergeFrom(other.FooGroup);
22683           break;
22684         case FooOneofCase.FooLazyMessage:
22685           if (FooLazyMessage == null) {
22686             FooLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22687           }
22688           FooLazyMessage.MergeFrom(other.FooLazyMessage);
22689           break;
22690       }
22691 
22692       switch (other.BarCase) {
22693         case BarOneofCase.BarInt:
22694           BarInt = other.BarInt;
22695           break;
22696         case BarOneofCase.BarString:
22697           BarString = other.BarString;
22698           break;
22699         case BarOneofCase.BarCord:
22700           BarCord = other.BarCord;
22701           break;
22702         case BarOneofCase.BarStringPiece:
22703           BarStringPiece = other.BarStringPiece;
22704           break;
22705         case BarOneofCase.BarBytes:
22706           BarBytes = other.BarBytes;
22707           break;
22708         case BarOneofCase.BarEnum:
22709           BarEnum = other.BarEnum;
22710           break;
22711       }
22712 
22713       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
22714     }
22715 
22716     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22717     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)22718     public void MergeFrom(pb::CodedInputStream input) {
22719     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22720       input.ReadRawMessage(this);
22721     #else
22722       uint tag;
22723       while ((tag = input.ReadTag()) != 0) {
22724         switch(tag) {
22725           default:
22726             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
22727             break;
22728           case 8: {
22729             FooInt = input.ReadInt32();
22730             break;
22731           }
22732           case 18: {
22733             FooString = input.ReadString();
22734             break;
22735           }
22736           case 26: {
22737             FooCord = input.ReadString();
22738             break;
22739           }
22740           case 34: {
22741             FooStringPiece = input.ReadString();
22742             break;
22743           }
22744           case 42: {
22745             FooBytes = input.ReadBytes();
22746             break;
22747           }
22748           case 48: {
22749             foo_ = input.ReadEnum();
22750             fooCase_ = FooOneofCase.FooEnum;
22751             break;
22752           }
22753           case 58: {
22754             global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22755             if (fooCase_ == FooOneofCase.FooMessage) {
22756               subBuilder.MergeFrom(FooMessage);
22757             }
22758             input.ReadMessage(subBuilder);
22759             FooMessage = subBuilder;
22760             break;
22761           }
22762           case 67: {
22763             global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
22764             if (HasFooGroup) {
22765               subBuilder.MergeFrom(FooGroup);
22766             }
22767             input.ReadGroup(subBuilder);
22768             FooGroup = subBuilder;
22769             break;
22770           }
22771           case 90: {
22772             global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22773             if (fooCase_ == FooOneofCase.FooLazyMessage) {
22774               subBuilder.MergeFrom(FooLazyMessage);
22775             }
22776             input.ReadMessage(subBuilder);
22777             FooLazyMessage = subBuilder;
22778             break;
22779           }
22780           case 96: {
22781             BarInt = input.ReadInt32();
22782             break;
22783           }
22784           case 106: {
22785             BarString = input.ReadString();
22786             break;
22787           }
22788           case 114: {
22789             BarCord = input.ReadString();
22790             break;
22791           }
22792           case 122: {
22793             BarStringPiece = input.ReadString();
22794             break;
22795           }
22796           case 130: {
22797             BarBytes = input.ReadBytes();
22798             break;
22799           }
22800           case 136: {
22801             bar_ = input.ReadEnum();
22802             barCase_ = BarOneofCase.BarEnum;
22803             break;
22804           }
22805           case 144: {
22806             BazInt = input.ReadInt32();
22807             break;
22808           }
22809           case 154: {
22810             BazString = input.ReadString();
22811             break;
22812           }
22813         }
22814       }
22815     #endif
22816     }
22817 
22818     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22819     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22820     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)22821     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
22822       uint tag;
22823       while ((tag = input.ReadTag()) != 0) {
22824         switch(tag) {
22825           default:
22826             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
22827             break;
22828           case 8: {
22829             FooInt = input.ReadInt32();
22830             break;
22831           }
22832           case 18: {
22833             FooString = input.ReadString();
22834             break;
22835           }
22836           case 26: {
22837             FooCord = input.ReadString();
22838             break;
22839           }
22840           case 34: {
22841             FooStringPiece = input.ReadString();
22842             break;
22843           }
22844           case 42: {
22845             FooBytes = input.ReadBytes();
22846             break;
22847           }
22848           case 48: {
22849             foo_ = input.ReadEnum();
22850             fooCase_ = FooOneofCase.FooEnum;
22851             break;
22852           }
22853           case 58: {
22854             global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22855             if (fooCase_ == FooOneofCase.FooMessage) {
22856               subBuilder.MergeFrom(FooMessage);
22857             }
22858             input.ReadMessage(subBuilder);
22859             FooMessage = subBuilder;
22860             break;
22861           }
22862           case 67: {
22863             global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
22864             if (HasFooGroup) {
22865               subBuilder.MergeFrom(FooGroup);
22866             }
22867             input.ReadGroup(subBuilder);
22868             FooGroup = subBuilder;
22869             break;
22870           }
22871           case 90: {
22872             global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22873             if (fooCase_ == FooOneofCase.FooLazyMessage) {
22874               subBuilder.MergeFrom(FooLazyMessage);
22875             }
22876             input.ReadMessage(subBuilder);
22877             FooLazyMessage = subBuilder;
22878             break;
22879           }
22880           case 96: {
22881             BarInt = input.ReadInt32();
22882             break;
22883           }
22884           case 106: {
22885             BarString = input.ReadString();
22886             break;
22887           }
22888           case 114: {
22889             BarCord = input.ReadString();
22890             break;
22891           }
22892           case 122: {
22893             BarStringPiece = input.ReadString();
22894             break;
22895           }
22896           case 130: {
22897             BarBytes = input.ReadBytes();
22898             break;
22899           }
22900           case 136: {
22901             bar_ = input.ReadEnum();
22902             barCase_ = BarOneofCase.BarEnum;
22903             break;
22904           }
22905           case 144: {
22906             BazInt = input.ReadInt32();
22907             break;
22908           }
22909           case 154: {
22910             BazString = input.ReadString();
22911             break;
22912           }
22913         }
22914       }
22915     }
22916     #endif
22917 
22918     #region Nested types
22919     /// <summary>Container for nested types declared in the TestOneof2 message type.</summary>
22920     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22921     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22922     public static partial class Types {
22923       public enum NestedEnum {
22924         [pbr::OriginalName("FOO")] Foo = 1,
22925         [pbr::OriginalName("BAR")] Bar = 2,
22926         [pbr::OriginalName("BAZ")] Baz = 3,
22927       }
22928 
22929       public sealed partial class FooGroup : pb::IMessage<FooGroup>
22930       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22931           , pb::IBufferMessage
22932       #endif
22933       {
22934         private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
22935         private pb::UnknownFieldSet _unknownFields;
22936         private int _hasBits0;
22937         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22938         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22939         public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
22940 
22941         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22942         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22943         public static pbr::MessageDescriptor Descriptor {
22944           get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[0]; }
22945         }
22946 
22947         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22948         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22949         pbr::MessageDescriptor pb::IMessage.Descriptor {
22950           get { return Descriptor; }
22951         }
22952 
22953         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22954         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooGroup()22955         public FooGroup() {
22956           OnConstruction();
22957         }
22958 
OnConstruction()22959         partial void OnConstruction();
22960 
22961         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22962         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooGroup(FooGroup other)22963         public FooGroup(FooGroup other) : this() {
22964           _hasBits0 = other._hasBits0;
22965           a_ = other.a_;
22966           b_ = other.b_;
22967           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
22968         }
22969 
22970         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22971         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()22972         public FooGroup Clone() {
22973           return new FooGroup(this);
22974         }
22975 
22976         /// <summary>Field number for the "a" field.</summary>
22977         public const int AFieldNumber = 9;
22978         private readonly static int ADefaultValue = 0;
22979 
22980         private int a_;
22981         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22982         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22983         public int A {
22984           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
22985           set {
22986             _hasBits0 |= 1;
22987             a_ = value;
22988           }
22989         }
22990         /// <summary>Gets whether the "a" field is set</summary>
22991         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22992         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
22993         public bool HasA {
22994           get { return (_hasBits0 & 1) != 0; }
22995         }
22996         /// <summary>Clears the value of the "a" field</summary>
22997         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22998         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()22999         public void ClearA() {
23000           _hasBits0 &= ~1;
23001         }
23002 
23003         /// <summary>Field number for the "b" field.</summary>
23004         public const int BFieldNumber = 10;
23005         private readonly static string BDefaultValue = "";
23006 
23007         private string b_;
23008         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23009         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23010         public string B {
23011           get { return b_ ?? BDefaultValue; }
23012           set {
23013             b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
23014           }
23015         }
23016         /// <summary>Gets whether the "b" field is set</summary>
23017         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23018         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23019         public bool HasB {
23020           get { return b_ != null; }
23021         }
23022         /// <summary>Clears the value of the "b" field</summary>
23023         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23024         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearB()23025         public void ClearB() {
23026           b_ = null;
23027         }
23028 
23029         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23030         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)23031         public override bool Equals(object other) {
23032           return Equals(other as FooGroup);
23033         }
23034 
23035         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23036         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FooGroup other)23037         public bool Equals(FooGroup other) {
23038           if (ReferenceEquals(other, null)) {
23039             return false;
23040           }
23041           if (ReferenceEquals(other, this)) {
23042             return true;
23043           }
23044           if (A != other.A) return false;
23045           if (B != other.B) return false;
23046           return Equals(_unknownFields, other._unknownFields);
23047         }
23048 
23049         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23050         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()23051         public override int GetHashCode() {
23052           int hash = 1;
23053           if (HasA) hash ^= A.GetHashCode();
23054           if (HasB) hash ^= B.GetHashCode();
23055           if (_unknownFields != null) {
23056             hash ^= _unknownFields.GetHashCode();
23057           }
23058           return hash;
23059         }
23060 
23061         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23062         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()23063         public override string ToString() {
23064           return pb::JsonFormatter.ToDiagnosticString(this);
23065         }
23066 
23067         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23068         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)23069         public void WriteTo(pb::CodedOutputStream output) {
23070         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23071           output.WriteRawMessage(this);
23072         #else
23073           if (HasA) {
23074             output.WriteRawTag(72);
23075             output.WriteInt32(A);
23076           }
23077           if (HasB) {
23078             output.WriteRawTag(82);
23079             output.WriteString(B);
23080           }
23081           if (_unknownFields != null) {
23082             _unknownFields.WriteTo(output);
23083           }
23084         #endif
23085         }
23086 
23087         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23088         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23089         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)23090         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23091           if (HasA) {
23092             output.WriteRawTag(72);
23093             output.WriteInt32(A);
23094           }
23095           if (HasB) {
23096             output.WriteRawTag(82);
23097             output.WriteString(B);
23098           }
23099           if (_unknownFields != null) {
23100             _unknownFields.WriteTo(ref output);
23101           }
23102         }
23103         #endif
23104 
23105         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23106         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()23107         public int CalculateSize() {
23108           int size = 0;
23109           if (HasA) {
23110             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
23111           }
23112           if (HasB) {
23113             size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
23114           }
23115           if (_unknownFields != null) {
23116             size += _unknownFields.CalculateSize();
23117           }
23118           return size;
23119         }
23120 
23121         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23122         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FooGroup other)23123         public void MergeFrom(FooGroup other) {
23124           if (other == null) {
23125             return;
23126           }
23127           if (other.HasA) {
23128             A = other.A;
23129           }
23130           if (other.HasB) {
23131             B = other.B;
23132           }
23133           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23134         }
23135 
23136         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23137         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)23138         public void MergeFrom(pb::CodedInputStream input) {
23139         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23140           input.ReadRawMessage(this);
23141         #else
23142           uint tag;
23143           while ((tag = input.ReadTag()) != 0) {
23144             switch(tag) {
23145               case 68:
23146                 return;
23147               default:
23148                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23149                 break;
23150               case 72: {
23151                 A = input.ReadInt32();
23152                 break;
23153               }
23154               case 82: {
23155                 B = input.ReadString();
23156                 break;
23157               }
23158             }
23159           }
23160         #endif
23161         }
23162 
23163         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23164         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23165         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)23166         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
23167           uint tag;
23168           while ((tag = input.ReadTag()) != 0) {
23169             switch(tag) {
23170               case 68:
23171                 return;
23172               default:
23173                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
23174                 break;
23175               case 72: {
23176                 A = input.ReadInt32();
23177                 break;
23178               }
23179               case 82: {
23180                 B = input.ReadString();
23181                 break;
23182               }
23183             }
23184           }
23185         }
23186         #endif
23187 
23188       }
23189 
23190       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
23191       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23192           , pb::IBufferMessage
23193       #endif
23194       {
23195         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
23196         private pb::UnknownFieldSet _unknownFields;
23197         private int _hasBits0;
23198         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23199         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23200         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
23201 
23202         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23203         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23204         public static pbr::MessageDescriptor Descriptor {
23205           get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[1]; }
23206         }
23207 
23208         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23209         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23210         pbr::MessageDescriptor pb::IMessage.Descriptor {
23211           get { return Descriptor; }
23212         }
23213 
23214         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23215         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()23216         public NestedMessage() {
23217           OnConstruction();
23218         }
23219 
OnConstruction()23220         partial void OnConstruction();
23221 
23222         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23223         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)23224         public NestedMessage(NestedMessage other) : this() {
23225           _hasBits0 = other._hasBits0;
23226           quxInt_ = other.quxInt_;
23227           corgeInt_ = other.corgeInt_.Clone();
23228           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
23229         }
23230 
23231         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23232         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()23233         public NestedMessage Clone() {
23234           return new NestedMessage(this);
23235         }
23236 
23237         /// <summary>Field number for the "qux_int" field.</summary>
23238         public const int QuxIntFieldNumber = 1;
23239         private readonly static long QuxIntDefaultValue = 0L;
23240 
23241         private long quxInt_;
23242         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23243         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23244         public long QuxInt {
23245           get { if ((_hasBits0 & 1) != 0) { return quxInt_; } else { return QuxIntDefaultValue; } }
23246           set {
23247             _hasBits0 |= 1;
23248             quxInt_ = value;
23249           }
23250         }
23251         /// <summary>Gets whether the "qux_int" field is set</summary>
23252         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23253         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23254         public bool HasQuxInt {
23255           get { return (_hasBits0 & 1) != 0; }
23256         }
23257         /// <summary>Clears the value of the "qux_int" field</summary>
23258         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23259         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearQuxInt()23260         public void ClearQuxInt() {
23261           _hasBits0 &= ~1;
23262         }
23263 
23264         /// <summary>Field number for the "corge_int" field.</summary>
23265         public const int CorgeIntFieldNumber = 2;
23266         private static readonly pb::FieldCodec<int> _repeated_corgeInt_codec
23267             = pb::FieldCodec.ForInt32(16);
23268         private readonly pbc::RepeatedField<int> corgeInt_ = new pbc::RepeatedField<int>();
23269         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23270         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23271         public pbc::RepeatedField<int> CorgeInt {
23272           get { return corgeInt_; }
23273         }
23274 
23275         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23276         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)23277         public override bool Equals(object other) {
23278           return Equals(other as NestedMessage);
23279         }
23280 
23281         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23282         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)23283         public bool Equals(NestedMessage other) {
23284           if (ReferenceEquals(other, null)) {
23285             return false;
23286           }
23287           if (ReferenceEquals(other, this)) {
23288             return true;
23289           }
23290           if (QuxInt != other.QuxInt) return false;
23291           if(!corgeInt_.Equals(other.corgeInt_)) return false;
23292           return Equals(_unknownFields, other._unknownFields);
23293         }
23294 
23295         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23296         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()23297         public override int GetHashCode() {
23298           int hash = 1;
23299           if (HasQuxInt) hash ^= QuxInt.GetHashCode();
23300           hash ^= corgeInt_.GetHashCode();
23301           if (_unknownFields != null) {
23302             hash ^= _unknownFields.GetHashCode();
23303           }
23304           return hash;
23305         }
23306 
23307         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23308         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()23309         public override string ToString() {
23310           return pb::JsonFormatter.ToDiagnosticString(this);
23311         }
23312 
23313         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23314         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)23315         public void WriteTo(pb::CodedOutputStream output) {
23316         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23317           output.WriteRawMessage(this);
23318         #else
23319           if (HasQuxInt) {
23320             output.WriteRawTag(8);
23321             output.WriteInt64(QuxInt);
23322           }
23323           corgeInt_.WriteTo(output, _repeated_corgeInt_codec);
23324           if (_unknownFields != null) {
23325             _unknownFields.WriteTo(output);
23326           }
23327         #endif
23328         }
23329 
23330         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23331         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23332         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)23333         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23334           if (HasQuxInt) {
23335             output.WriteRawTag(8);
23336             output.WriteInt64(QuxInt);
23337           }
23338           corgeInt_.WriteTo(ref output, _repeated_corgeInt_codec);
23339           if (_unknownFields != null) {
23340             _unknownFields.WriteTo(ref output);
23341           }
23342         }
23343         #endif
23344 
23345         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23346         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()23347         public int CalculateSize() {
23348           int size = 0;
23349           if (HasQuxInt) {
23350             size += 1 + pb::CodedOutputStream.ComputeInt64Size(QuxInt);
23351           }
23352           size += corgeInt_.CalculateSize(_repeated_corgeInt_codec);
23353           if (_unknownFields != null) {
23354             size += _unknownFields.CalculateSize();
23355           }
23356           return size;
23357         }
23358 
23359         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23360         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)23361         public void MergeFrom(NestedMessage other) {
23362           if (other == null) {
23363             return;
23364           }
23365           if (other.HasQuxInt) {
23366             QuxInt = other.QuxInt;
23367           }
23368           corgeInt_.Add(other.corgeInt_);
23369           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23370         }
23371 
23372         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23373         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)23374         public void MergeFrom(pb::CodedInputStream input) {
23375         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23376           input.ReadRawMessage(this);
23377         #else
23378           uint tag;
23379           while ((tag = input.ReadTag()) != 0) {
23380             switch(tag) {
23381               default:
23382                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23383                 break;
23384               case 8: {
23385                 QuxInt = input.ReadInt64();
23386                 break;
23387               }
23388               case 18:
23389               case 16: {
23390                 corgeInt_.AddEntriesFrom(input, _repeated_corgeInt_codec);
23391                 break;
23392               }
23393             }
23394           }
23395         #endif
23396         }
23397 
23398         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23399         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23400         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)23401         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
23402           uint tag;
23403           while ((tag = input.ReadTag()) != 0) {
23404             switch(tag) {
23405               default:
23406                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
23407                 break;
23408               case 8: {
23409                 QuxInt = input.ReadInt64();
23410                 break;
23411               }
23412               case 18:
23413               case 16: {
23414                 corgeInt_.AddEntriesFrom(ref input, _repeated_corgeInt_codec);
23415                 break;
23416               }
23417             }
23418           }
23419         }
23420         #endif
23421 
23422       }
23423 
23424     }
23425     #endregion
23426 
23427   }
23428 
23429   public sealed partial class TestRequiredOneof : pb::IMessage<TestRequiredOneof>
23430   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23431       , pb::IBufferMessage
23432   #endif
23433   {
23434     private static readonly pb::MessageParser<TestRequiredOneof> _parser = new pb::MessageParser<TestRequiredOneof>(() => new TestRequiredOneof());
23435     private pb::UnknownFieldSet _unknownFields;
23436     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23437     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23438     public static pb::MessageParser<TestRequiredOneof> Parser { get { return _parser; } }
23439 
23440     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23441     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23442     public static pbr::MessageDescriptor Descriptor {
23443       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[46]; }
23444     }
23445 
23446     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23447     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23448     pbr::MessageDescriptor pb::IMessage.Descriptor {
23449       get { return Descriptor; }
23450     }
23451 
23452     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23453     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredOneof()23454     public TestRequiredOneof() {
23455       OnConstruction();
23456     }
23457 
OnConstruction()23458     partial void OnConstruction();
23459 
23460     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23461     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredOneof(TestRequiredOneof other)23462     public TestRequiredOneof(TestRequiredOneof other) : this() {
23463       switch (other.FooCase) {
23464         case FooOneofCase.FooInt:
23465           FooInt = other.FooInt;
23466           break;
23467         case FooOneofCase.FooString:
23468           FooString = other.FooString;
23469           break;
23470         case FooOneofCase.FooMessage:
23471           FooMessage = other.FooMessage.Clone();
23472           break;
23473       }
23474 
23475       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
23476     }
23477 
23478     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23479     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()23480     public TestRequiredOneof Clone() {
23481       return new TestRequiredOneof(this);
23482     }
23483 
23484     /// <summary>Field number for the "foo_int" field.</summary>
23485     public const int FooIntFieldNumber = 1;
23486     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23487     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23488     public int FooInt {
23489       get { return HasFooInt ? (int) foo_ : 0; }
23490       set {
23491         foo_ = value;
23492         fooCase_ = FooOneofCase.FooInt;
23493       }
23494     }
23495     /// <summary>Gets whether the "foo_int" field is set</summary>
23496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23497     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23498     public bool HasFooInt {
23499       get { return fooCase_ == FooOneofCase.FooInt; }
23500     }
23501     /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
23502     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23503     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooInt()23504     public void ClearFooInt() {
23505       if (HasFooInt) {
23506         ClearFoo();
23507       }
23508     }
23509 
23510     /// <summary>Field number for the "foo_string" field.</summary>
23511     public const int FooStringFieldNumber = 2;
23512     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23513     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23514     public string FooString {
23515       get { return HasFooString ? (string) foo_ : ""; }
23516       set {
23517         foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
23518         fooCase_ = FooOneofCase.FooString;
23519       }
23520     }
23521     /// <summary>Gets whether the "foo_string" field is set</summary>
23522     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23523     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23524     public bool HasFooString {
23525       get { return fooCase_ == FooOneofCase.FooString; }
23526     }
23527     /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
23528     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23529     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFooString()23530     public void ClearFooString() {
23531       if (HasFooString) {
23532         ClearFoo();
23533       }
23534     }
23535 
23536     /// <summary>Field number for the "foo_message" field.</summary>
23537     public const int FooMessageFieldNumber = 3;
23538     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23539     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23540     public global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage FooMessage {
23541       get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage) foo_ : null; }
23542       set {
23543         foo_ = value;
23544         fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
23545       }
23546     }
23547 
23548     private object foo_;
23549     /// <summary>Enum of possible cases for the "foo" oneof.</summary>
23550     public enum FooOneofCase {
23551       None = 0,
23552       FooInt = 1,
23553       FooString = 2,
23554       FooMessage = 3,
23555     }
23556     private FooOneofCase fooCase_ = FooOneofCase.None;
23557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23559     public FooOneofCase FooCase {
23560       get { return fooCase_; }
23561     }
23562 
23563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23564     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFoo()23565     public void ClearFoo() {
23566       fooCase_ = FooOneofCase.None;
23567       foo_ = null;
23568     }
23569 
23570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23571     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)23572     public override bool Equals(object other) {
23573       return Equals(other as TestRequiredOneof);
23574     }
23575 
23576     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23577     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestRequiredOneof other)23578     public bool Equals(TestRequiredOneof other) {
23579       if (ReferenceEquals(other, null)) {
23580         return false;
23581       }
23582       if (ReferenceEquals(other, this)) {
23583         return true;
23584       }
23585       if (FooInt != other.FooInt) return false;
23586       if (FooString != other.FooString) return false;
23587       if (!object.Equals(FooMessage, other.FooMessage)) return false;
23588       if (FooCase != other.FooCase) return false;
23589       return Equals(_unknownFields, other._unknownFields);
23590     }
23591 
23592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23593     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()23594     public override int GetHashCode() {
23595       int hash = 1;
23596       if (HasFooInt) hash ^= FooInt.GetHashCode();
23597       if (HasFooString) hash ^= FooString.GetHashCode();
23598       if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
23599       hash ^= (int) fooCase_;
23600       if (_unknownFields != null) {
23601         hash ^= _unknownFields.GetHashCode();
23602       }
23603       return hash;
23604     }
23605 
23606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23607     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()23608     public override string ToString() {
23609       return pb::JsonFormatter.ToDiagnosticString(this);
23610     }
23611 
23612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23613     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)23614     public void WriteTo(pb::CodedOutputStream output) {
23615     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23616       output.WriteRawMessage(this);
23617     #else
23618       if (HasFooInt) {
23619         output.WriteRawTag(8);
23620         output.WriteInt32(FooInt);
23621       }
23622       if (HasFooString) {
23623         output.WriteRawTag(18);
23624         output.WriteString(FooString);
23625       }
23626       if (fooCase_ == FooOneofCase.FooMessage) {
23627         output.WriteRawTag(26);
23628         output.WriteMessage(FooMessage);
23629       }
23630       if (_unknownFields != null) {
23631         _unknownFields.WriteTo(output);
23632       }
23633     #endif
23634     }
23635 
23636     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23637     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23638     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)23639     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23640       if (HasFooInt) {
23641         output.WriteRawTag(8);
23642         output.WriteInt32(FooInt);
23643       }
23644       if (HasFooString) {
23645         output.WriteRawTag(18);
23646         output.WriteString(FooString);
23647       }
23648       if (fooCase_ == FooOneofCase.FooMessage) {
23649         output.WriteRawTag(26);
23650         output.WriteMessage(FooMessage);
23651       }
23652       if (_unknownFields != null) {
23653         _unknownFields.WriteTo(ref output);
23654       }
23655     }
23656     #endif
23657 
23658     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23659     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()23660     public int CalculateSize() {
23661       int size = 0;
23662       if (HasFooInt) {
23663         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
23664       }
23665       if (HasFooString) {
23666         size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
23667       }
23668       if (fooCase_ == FooOneofCase.FooMessage) {
23669         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
23670       }
23671       if (_unknownFields != null) {
23672         size += _unknownFields.CalculateSize();
23673       }
23674       return size;
23675     }
23676 
23677     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23678     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestRequiredOneof other)23679     public void MergeFrom(TestRequiredOneof other) {
23680       if (other == null) {
23681         return;
23682       }
23683       switch (other.FooCase) {
23684         case FooOneofCase.FooInt:
23685           FooInt = other.FooInt;
23686           break;
23687         case FooOneofCase.FooString:
23688           FooString = other.FooString;
23689           break;
23690         case FooOneofCase.FooMessage:
23691           if (FooMessage == null) {
23692             FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
23693           }
23694           FooMessage.MergeFrom(other.FooMessage);
23695           break;
23696       }
23697 
23698       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23699     }
23700 
23701     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23702     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)23703     public void MergeFrom(pb::CodedInputStream input) {
23704     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23705       input.ReadRawMessage(this);
23706     #else
23707       uint tag;
23708       while ((tag = input.ReadTag()) != 0) {
23709         switch(tag) {
23710           default:
23711             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23712             break;
23713           case 8: {
23714             FooInt = input.ReadInt32();
23715             break;
23716           }
23717           case 18: {
23718             FooString = input.ReadString();
23719             break;
23720           }
23721           case 26: {
23722             global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
23723             if (fooCase_ == FooOneofCase.FooMessage) {
23724               subBuilder.MergeFrom(FooMessage);
23725             }
23726             input.ReadMessage(subBuilder);
23727             FooMessage = subBuilder;
23728             break;
23729           }
23730         }
23731       }
23732     #endif
23733     }
23734 
23735     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23736     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23737     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)23738     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
23739       uint tag;
23740       while ((tag = input.ReadTag()) != 0) {
23741         switch(tag) {
23742           default:
23743             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
23744             break;
23745           case 8: {
23746             FooInt = input.ReadInt32();
23747             break;
23748           }
23749           case 18: {
23750             FooString = input.ReadString();
23751             break;
23752           }
23753           case 26: {
23754             global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
23755             if (fooCase_ == FooOneofCase.FooMessage) {
23756               subBuilder.MergeFrom(FooMessage);
23757             }
23758             input.ReadMessage(subBuilder);
23759             FooMessage = subBuilder;
23760             break;
23761           }
23762         }
23763       }
23764     }
23765     #endif
23766 
23767     #region Nested types
23768     /// <summary>Container for nested types declared in the TestRequiredOneof message type.</summary>
23769     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23770     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23771     public static partial class Types {
23772       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
23773       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23774           , pb::IBufferMessage
23775       #endif
23776       {
23777         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
23778         private pb::UnknownFieldSet _unknownFields;
23779         private int _hasBits0;
23780         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23781         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23782         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
23783 
23784         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23785         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23786         public static pbr::MessageDescriptor Descriptor {
23787           get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Descriptor.NestedTypes[0]; }
23788         }
23789 
23790         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23791         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23792         pbr::MessageDescriptor pb::IMessage.Descriptor {
23793           get { return Descriptor; }
23794         }
23795 
23796         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23797         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()23798         public NestedMessage() {
23799           OnConstruction();
23800         }
23801 
OnConstruction()23802         partial void OnConstruction();
23803 
23804         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23805         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)23806         public NestedMessage(NestedMessage other) : this() {
23807           _hasBits0 = other._hasBits0;
23808           requiredDouble_ = other.requiredDouble_;
23809           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
23810         }
23811 
23812         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23813         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()23814         public NestedMessage Clone() {
23815           return new NestedMessage(this);
23816         }
23817 
23818         /// <summary>Field number for the "required_double" field.</summary>
23819         public const int RequiredDoubleFieldNumber = 1;
23820         private readonly static double RequiredDoubleDefaultValue = 0D;
23821 
23822         private double requiredDouble_;
23823         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23824         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23825         public double RequiredDouble {
23826           get { if ((_hasBits0 & 1) != 0) { return requiredDouble_; } else { return RequiredDoubleDefaultValue; } }
23827           set {
23828             _hasBits0 |= 1;
23829             requiredDouble_ = value;
23830           }
23831         }
23832         /// <summary>Gets whether the "required_double" field is set</summary>
23833         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23834         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23835         public bool HasRequiredDouble {
23836           get { return (_hasBits0 & 1) != 0; }
23837         }
23838         /// <summary>Clears the value of the "required_double" field</summary>
23839         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23840         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredDouble()23841         public void ClearRequiredDouble() {
23842           _hasBits0 &= ~1;
23843         }
23844 
23845         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23846         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)23847         public override bool Equals(object other) {
23848           return Equals(other as NestedMessage);
23849         }
23850 
23851         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23852         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)23853         public bool Equals(NestedMessage other) {
23854           if (ReferenceEquals(other, null)) {
23855             return false;
23856           }
23857           if (ReferenceEquals(other, this)) {
23858             return true;
23859           }
23860           if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RequiredDouble, other.RequiredDouble)) return false;
23861           return Equals(_unknownFields, other._unknownFields);
23862         }
23863 
23864         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23865         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()23866         public override int GetHashCode() {
23867           int hash = 1;
23868           if (HasRequiredDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RequiredDouble);
23869           if (_unknownFields != null) {
23870             hash ^= _unknownFields.GetHashCode();
23871           }
23872           return hash;
23873         }
23874 
23875         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23876         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()23877         public override string ToString() {
23878           return pb::JsonFormatter.ToDiagnosticString(this);
23879         }
23880 
23881         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23882         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)23883         public void WriteTo(pb::CodedOutputStream output) {
23884         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23885           output.WriteRawMessage(this);
23886         #else
23887           if (HasRequiredDouble) {
23888             output.WriteRawTag(9);
23889             output.WriteDouble(RequiredDouble);
23890           }
23891           if (_unknownFields != null) {
23892             _unknownFields.WriteTo(output);
23893           }
23894         #endif
23895         }
23896 
23897         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23898         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23899         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)23900         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23901           if (HasRequiredDouble) {
23902             output.WriteRawTag(9);
23903             output.WriteDouble(RequiredDouble);
23904           }
23905           if (_unknownFields != null) {
23906             _unknownFields.WriteTo(ref output);
23907           }
23908         }
23909         #endif
23910 
23911         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23912         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()23913         public int CalculateSize() {
23914           int size = 0;
23915           if (HasRequiredDouble) {
23916             size += 1 + 8;
23917           }
23918           if (_unknownFields != null) {
23919             size += _unknownFields.CalculateSize();
23920           }
23921           return size;
23922         }
23923 
23924         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23925         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)23926         public void MergeFrom(NestedMessage other) {
23927           if (other == null) {
23928             return;
23929           }
23930           if (other.HasRequiredDouble) {
23931             RequiredDouble = other.RequiredDouble;
23932           }
23933           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23934         }
23935 
23936         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23937         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)23938         public void MergeFrom(pb::CodedInputStream input) {
23939         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23940           input.ReadRawMessage(this);
23941         #else
23942           uint tag;
23943           while ((tag = input.ReadTag()) != 0) {
23944             switch(tag) {
23945               default:
23946                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23947                 break;
23948               case 9: {
23949                 RequiredDouble = input.ReadDouble();
23950                 break;
23951               }
23952             }
23953           }
23954         #endif
23955         }
23956 
23957         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23958         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23959         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)23960         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
23961           uint tag;
23962           while ((tag = input.ReadTag()) != 0) {
23963             switch(tag) {
23964               default:
23965                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
23966                 break;
23967               case 9: {
23968                 RequiredDouble = input.ReadDouble();
23969                 break;
23970               }
23971             }
23972           }
23973         }
23974         #endif
23975 
23976       }
23977 
23978     }
23979     #endregion
23980 
23981   }
23982 
23983   public sealed partial class TestRequiredMap : pb::IMessage<TestRequiredMap>
23984   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23985       , pb::IBufferMessage
23986   #endif
23987   {
23988     private static readonly pb::MessageParser<TestRequiredMap> _parser = new pb::MessageParser<TestRequiredMap>(() => new TestRequiredMap());
23989     private pb::UnknownFieldSet _unknownFields;
23990     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23991     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23992     public static pb::MessageParser<TestRequiredMap> Parser { get { return _parser; } }
23993 
23994     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23995     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23996     public static pbr::MessageDescriptor Descriptor {
23997       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[47]; }
23998     }
23999 
24000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24001     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24002     pbr::MessageDescriptor pb::IMessage.Descriptor {
24003       get { return Descriptor; }
24004     }
24005 
24006     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24007     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredMap()24008     public TestRequiredMap() {
24009       OnConstruction();
24010     }
24011 
OnConstruction()24012     partial void OnConstruction();
24013 
24014     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24015     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRequiredMap(TestRequiredMap other)24016     public TestRequiredMap(TestRequiredMap other) : this() {
24017       foo_ = other.foo_.Clone();
24018       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24019     }
24020 
24021     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24022     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()24023     public TestRequiredMap Clone() {
24024       return new TestRequiredMap(this);
24025     }
24026 
24027     /// <summary>Field number for the "foo" field.</summary>
24028     public const int FooFieldNumber = 1;
24029     private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec _map_foo_codec
24030         = new pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage.Parser), 10);
24031     private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> foo_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>();
24032     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24033     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24034     public pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> Foo {
24035       get { return foo_; }
24036     }
24037 
24038     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24039     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)24040     public override bool Equals(object other) {
24041       return Equals(other as TestRequiredMap);
24042     }
24043 
24044     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24045     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestRequiredMap other)24046     public bool Equals(TestRequiredMap other) {
24047       if (ReferenceEquals(other, null)) {
24048         return false;
24049       }
24050       if (ReferenceEquals(other, this)) {
24051         return true;
24052       }
24053       if (!Foo.Equals(other.Foo)) return false;
24054       return Equals(_unknownFields, other._unknownFields);
24055     }
24056 
24057     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24058     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()24059     public override int GetHashCode() {
24060       int hash = 1;
24061       hash ^= Foo.GetHashCode();
24062       if (_unknownFields != null) {
24063         hash ^= _unknownFields.GetHashCode();
24064       }
24065       return hash;
24066     }
24067 
24068     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24069     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()24070     public override string ToString() {
24071       return pb::JsonFormatter.ToDiagnosticString(this);
24072     }
24073 
24074     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24075     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)24076     public void WriteTo(pb::CodedOutputStream output) {
24077     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24078       output.WriteRawMessage(this);
24079     #else
24080       foo_.WriteTo(output, _map_foo_codec);
24081       if (_unknownFields != null) {
24082         _unknownFields.WriteTo(output);
24083       }
24084     #endif
24085     }
24086 
24087     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24088     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24089     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)24090     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
24091       foo_.WriteTo(ref output, _map_foo_codec);
24092       if (_unknownFields != null) {
24093         _unknownFields.WriteTo(ref output);
24094       }
24095     }
24096     #endif
24097 
24098     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24099     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()24100     public int CalculateSize() {
24101       int size = 0;
24102       size += foo_.CalculateSize(_map_foo_codec);
24103       if (_unknownFields != null) {
24104         size += _unknownFields.CalculateSize();
24105       }
24106       return size;
24107     }
24108 
24109     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24110     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestRequiredMap other)24111     public void MergeFrom(TestRequiredMap other) {
24112       if (other == null) {
24113         return;
24114       }
24115       foo_.Add(other.foo_);
24116       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
24117     }
24118 
24119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24120     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)24121     public void MergeFrom(pb::CodedInputStream input) {
24122     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24123       input.ReadRawMessage(this);
24124     #else
24125       uint tag;
24126       while ((tag = input.ReadTag()) != 0) {
24127         switch(tag) {
24128           default:
24129             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
24130             break;
24131           case 10: {
24132             foo_.AddEntriesFrom(input, _map_foo_codec);
24133             break;
24134           }
24135         }
24136       }
24137     #endif
24138     }
24139 
24140     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24141     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24142     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)24143     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
24144       uint tag;
24145       while ((tag = input.ReadTag()) != 0) {
24146         switch(tag) {
24147           default:
24148             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
24149             break;
24150           case 10: {
24151             foo_.AddEntriesFrom(ref input, _map_foo_codec);
24152             break;
24153           }
24154         }
24155       }
24156     }
24157     #endif
24158 
24159     #region Nested types
24160     /// <summary>Container for nested types declared in the TestRequiredMap message type.</summary>
24161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24162     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24163     public static partial class Types {
24164       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
24165       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24166           , pb::IBufferMessage
24167       #endif
24168       {
24169         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
24170         private pb::UnknownFieldSet _unknownFields;
24171         private int _hasBits0;
24172         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24173         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24174         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
24175 
24176         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24177         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24178         public static pbr::MessageDescriptor Descriptor {
24179           get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Descriptor.NestedTypes[1]; }
24180         }
24181 
24182         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24183         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24184         pbr::MessageDescriptor pb::IMessage.Descriptor {
24185           get { return Descriptor; }
24186         }
24187 
24188         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24189         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()24190         public NestedMessage() {
24191           OnConstruction();
24192         }
24193 
OnConstruction()24194         partial void OnConstruction();
24195 
24196         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24197         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)24198         public NestedMessage(NestedMessage other) : this() {
24199           _hasBits0 = other._hasBits0;
24200           requiredInt32_ = other.requiredInt32_;
24201           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24202         }
24203 
24204         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24205         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()24206         public NestedMessage Clone() {
24207           return new NestedMessage(this);
24208         }
24209 
24210         /// <summary>Field number for the "required_int32" field.</summary>
24211         public const int RequiredInt32FieldNumber = 1;
24212         private readonly static int RequiredInt32DefaultValue = 0;
24213 
24214         private int requiredInt32_;
24215         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24216         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24217         public int RequiredInt32 {
24218           get { if ((_hasBits0 & 1) != 0) { return requiredInt32_; } else { return RequiredInt32DefaultValue; } }
24219           set {
24220             _hasBits0 |= 1;
24221             requiredInt32_ = value;
24222           }
24223         }
24224         /// <summary>Gets whether the "required_int32" field is set</summary>
24225         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24226         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24227         public bool HasRequiredInt32 {
24228           get { return (_hasBits0 & 1) != 0; }
24229         }
24230         /// <summary>Clears the value of the "required_int32" field</summary>
24231         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24232         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredInt32()24233         public void ClearRequiredInt32() {
24234           _hasBits0 &= ~1;
24235         }
24236 
24237         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24238         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)24239         public override bool Equals(object other) {
24240           return Equals(other as NestedMessage);
24241         }
24242 
24243         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24244         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)24245         public bool Equals(NestedMessage other) {
24246           if (ReferenceEquals(other, null)) {
24247             return false;
24248           }
24249           if (ReferenceEquals(other, this)) {
24250             return true;
24251           }
24252           if (RequiredInt32 != other.RequiredInt32) return false;
24253           return Equals(_unknownFields, other._unknownFields);
24254         }
24255 
24256         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24257         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()24258         public override int GetHashCode() {
24259           int hash = 1;
24260           if (HasRequiredInt32) hash ^= RequiredInt32.GetHashCode();
24261           if (_unknownFields != null) {
24262             hash ^= _unknownFields.GetHashCode();
24263           }
24264           return hash;
24265         }
24266 
24267         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24268         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()24269         public override string ToString() {
24270           return pb::JsonFormatter.ToDiagnosticString(this);
24271         }
24272 
24273         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24274         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)24275         public void WriteTo(pb::CodedOutputStream output) {
24276         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24277           output.WriteRawMessage(this);
24278         #else
24279           if (HasRequiredInt32) {
24280             output.WriteRawTag(8);
24281             output.WriteInt32(RequiredInt32);
24282           }
24283           if (_unknownFields != null) {
24284             _unknownFields.WriteTo(output);
24285           }
24286         #endif
24287         }
24288 
24289         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24290         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24291         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)24292         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
24293           if (HasRequiredInt32) {
24294             output.WriteRawTag(8);
24295             output.WriteInt32(RequiredInt32);
24296           }
24297           if (_unknownFields != null) {
24298             _unknownFields.WriteTo(ref output);
24299           }
24300         }
24301         #endif
24302 
24303         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24304         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()24305         public int CalculateSize() {
24306           int size = 0;
24307           if (HasRequiredInt32) {
24308             size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredInt32);
24309           }
24310           if (_unknownFields != null) {
24311             size += _unknownFields.CalculateSize();
24312           }
24313           return size;
24314         }
24315 
24316         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24317         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)24318         public void MergeFrom(NestedMessage other) {
24319           if (other == null) {
24320             return;
24321           }
24322           if (other.HasRequiredInt32) {
24323             RequiredInt32 = other.RequiredInt32;
24324           }
24325           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
24326         }
24327 
24328         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24329         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)24330         public void MergeFrom(pb::CodedInputStream input) {
24331         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24332           input.ReadRawMessage(this);
24333         #else
24334           uint tag;
24335           while ((tag = input.ReadTag()) != 0) {
24336             switch(tag) {
24337               default:
24338                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
24339                 break;
24340               case 8: {
24341                 RequiredInt32 = input.ReadInt32();
24342                 break;
24343               }
24344             }
24345           }
24346         #endif
24347         }
24348 
24349         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24350         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24351         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)24352         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
24353           uint tag;
24354           while ((tag = input.ReadTag()) != 0) {
24355             switch(tag) {
24356               default:
24357                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
24358                 break;
24359               case 8: {
24360                 RequiredInt32 = input.ReadInt32();
24361                 break;
24362               }
24363             }
24364           }
24365         }
24366         #endif
24367 
24368       }
24369 
24370     }
24371     #endregion
24372 
24373   }
24374 
24375   public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes>
24376   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24377       , pb::IBufferMessage
24378   #endif
24379   {
24380     private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes());
24381     private pb::UnknownFieldSet _unknownFields;
24382     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24383     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24384     public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } }
24385 
24386     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24387     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24388     public static pbr::MessageDescriptor Descriptor {
24389       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[48]; }
24390     }
24391 
24392     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24393     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24394     pbr::MessageDescriptor pb::IMessage.Descriptor {
24395       get { return Descriptor; }
24396     }
24397 
24398     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24399     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestPackedTypes()24400     public TestPackedTypes() {
24401       OnConstruction();
24402     }
24403 
OnConstruction()24404     partial void OnConstruction();
24405 
24406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestPackedTypes(TestPackedTypes other)24408     public TestPackedTypes(TestPackedTypes other) : this() {
24409       packedInt32_ = other.packedInt32_.Clone();
24410       packedInt64_ = other.packedInt64_.Clone();
24411       packedUint32_ = other.packedUint32_.Clone();
24412       packedUint64_ = other.packedUint64_.Clone();
24413       packedSint32_ = other.packedSint32_.Clone();
24414       packedSint64_ = other.packedSint64_.Clone();
24415       packedFixed32_ = other.packedFixed32_.Clone();
24416       packedFixed64_ = other.packedFixed64_.Clone();
24417       packedSfixed32_ = other.packedSfixed32_.Clone();
24418       packedSfixed64_ = other.packedSfixed64_.Clone();
24419       packedFloat_ = other.packedFloat_.Clone();
24420       packedDouble_ = other.packedDouble_.Clone();
24421       packedBool_ = other.packedBool_.Clone();
24422       packedEnum_ = other.packedEnum_.Clone();
24423       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24424     }
24425 
24426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24427     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()24428     public TestPackedTypes Clone() {
24429       return new TestPackedTypes(this);
24430     }
24431 
24432     /// <summary>Field number for the "packed_int32" field.</summary>
24433     public const int PackedInt32FieldNumber = 90;
24434     private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
24435         = pb::FieldCodec.ForInt32(722);
24436     private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
24437     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24438     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24439     public pbc::RepeatedField<int> PackedInt32 {
24440       get { return packedInt32_; }
24441     }
24442 
24443     /// <summary>Field number for the "packed_int64" field.</summary>
24444     public const int PackedInt64FieldNumber = 91;
24445     private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
24446         = pb::FieldCodec.ForInt64(730);
24447     private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
24448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24449     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24450     public pbc::RepeatedField<long> PackedInt64 {
24451       get { return packedInt64_; }
24452     }
24453 
24454     /// <summary>Field number for the "packed_uint32" field.</summary>
24455     public const int PackedUint32FieldNumber = 92;
24456     private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
24457         = pb::FieldCodec.ForUInt32(738);
24458     private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
24459     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24460     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24461     public pbc::RepeatedField<uint> PackedUint32 {
24462       get { return packedUint32_; }
24463     }
24464 
24465     /// <summary>Field number for the "packed_uint64" field.</summary>
24466     public const int PackedUint64FieldNumber = 93;
24467     private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
24468         = pb::FieldCodec.ForUInt64(746);
24469     private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
24470     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24471     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24472     public pbc::RepeatedField<ulong> PackedUint64 {
24473       get { return packedUint64_; }
24474     }
24475 
24476     /// <summary>Field number for the "packed_sint32" field.</summary>
24477     public const int PackedSint32FieldNumber = 94;
24478     private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
24479         = pb::FieldCodec.ForSInt32(754);
24480     private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
24481     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24482     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24483     public pbc::RepeatedField<int> PackedSint32 {
24484       get { return packedSint32_; }
24485     }
24486 
24487     /// <summary>Field number for the "packed_sint64" field.</summary>
24488     public const int PackedSint64FieldNumber = 95;
24489     private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
24490         = pb::FieldCodec.ForSInt64(762);
24491     private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
24492     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24493     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24494     public pbc::RepeatedField<long> PackedSint64 {
24495       get { return packedSint64_; }
24496     }
24497 
24498     /// <summary>Field number for the "packed_fixed32" field.</summary>
24499     public const int PackedFixed32FieldNumber = 96;
24500     private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
24501         = pb::FieldCodec.ForFixed32(770);
24502     private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
24503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24504     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24505     public pbc::RepeatedField<uint> PackedFixed32 {
24506       get { return packedFixed32_; }
24507     }
24508 
24509     /// <summary>Field number for the "packed_fixed64" field.</summary>
24510     public const int PackedFixed64FieldNumber = 97;
24511     private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
24512         = pb::FieldCodec.ForFixed64(778);
24513     private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
24514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24515     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24516     public pbc::RepeatedField<ulong> PackedFixed64 {
24517       get { return packedFixed64_; }
24518     }
24519 
24520     /// <summary>Field number for the "packed_sfixed32" field.</summary>
24521     public const int PackedSfixed32FieldNumber = 98;
24522     private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
24523         = pb::FieldCodec.ForSFixed32(786);
24524     private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
24525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24526     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24527     public pbc::RepeatedField<int> PackedSfixed32 {
24528       get { return packedSfixed32_; }
24529     }
24530 
24531     /// <summary>Field number for the "packed_sfixed64" field.</summary>
24532     public const int PackedSfixed64FieldNumber = 99;
24533     private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
24534         = pb::FieldCodec.ForSFixed64(794);
24535     private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
24536     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24537     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24538     public pbc::RepeatedField<long> PackedSfixed64 {
24539       get { return packedSfixed64_; }
24540     }
24541 
24542     /// <summary>Field number for the "packed_float" field.</summary>
24543     public const int PackedFloatFieldNumber = 100;
24544     private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
24545         = pb::FieldCodec.ForFloat(802);
24546     private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
24547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24549     public pbc::RepeatedField<float> PackedFloat {
24550       get { return packedFloat_; }
24551     }
24552 
24553     /// <summary>Field number for the "packed_double" field.</summary>
24554     public const int PackedDoubleFieldNumber = 101;
24555     private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
24556         = pb::FieldCodec.ForDouble(810);
24557     private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
24558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24559     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24560     public pbc::RepeatedField<double> PackedDouble {
24561       get { return packedDouble_; }
24562     }
24563 
24564     /// <summary>Field number for the "packed_bool" field.</summary>
24565     public const int PackedBoolFieldNumber = 102;
24566     private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
24567         = pb::FieldCodec.ForBool(818);
24568     private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
24569     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24570     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24571     public pbc::RepeatedField<bool> PackedBool {
24572       get { return packedBool_; }
24573     }
24574 
24575     /// <summary>Field number for the "packed_enum" field.</summary>
24576     public const int PackedEnumFieldNumber = 103;
24577     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_packedEnum_codec
24578         = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
24579     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
24580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24581     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24582     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnum {
24583       get { return packedEnum_; }
24584     }
24585 
24586     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24587     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)24588     public override bool Equals(object other) {
24589       return Equals(other as TestPackedTypes);
24590     }
24591 
24592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24593     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestPackedTypes other)24594     public bool Equals(TestPackedTypes other) {
24595       if (ReferenceEquals(other, null)) {
24596         return false;
24597       }
24598       if (ReferenceEquals(other, this)) {
24599         return true;
24600       }
24601       if(!packedInt32_.Equals(other.packedInt32_)) return false;
24602       if(!packedInt64_.Equals(other.packedInt64_)) return false;
24603       if(!packedUint32_.Equals(other.packedUint32_)) return false;
24604       if(!packedUint64_.Equals(other.packedUint64_)) return false;
24605       if(!packedSint32_.Equals(other.packedSint32_)) return false;
24606       if(!packedSint64_.Equals(other.packedSint64_)) return false;
24607       if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
24608       if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
24609       if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
24610       if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
24611       if(!packedFloat_.Equals(other.packedFloat_)) return false;
24612       if(!packedDouble_.Equals(other.packedDouble_)) return false;
24613       if(!packedBool_.Equals(other.packedBool_)) return false;
24614       if(!packedEnum_.Equals(other.packedEnum_)) return false;
24615       return Equals(_unknownFields, other._unknownFields);
24616     }
24617 
24618     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24619     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()24620     public override int GetHashCode() {
24621       int hash = 1;
24622       hash ^= packedInt32_.GetHashCode();
24623       hash ^= packedInt64_.GetHashCode();
24624       hash ^= packedUint32_.GetHashCode();
24625       hash ^= packedUint64_.GetHashCode();
24626       hash ^= packedSint32_.GetHashCode();
24627       hash ^= packedSint64_.GetHashCode();
24628       hash ^= packedFixed32_.GetHashCode();
24629       hash ^= packedFixed64_.GetHashCode();
24630       hash ^= packedSfixed32_.GetHashCode();
24631       hash ^= packedSfixed64_.GetHashCode();
24632       hash ^= packedFloat_.GetHashCode();
24633       hash ^= packedDouble_.GetHashCode();
24634       hash ^= packedBool_.GetHashCode();
24635       hash ^= packedEnum_.GetHashCode();
24636       if (_unknownFields != null) {
24637         hash ^= _unknownFields.GetHashCode();
24638       }
24639       return hash;
24640     }
24641 
24642     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24643     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()24644     public override string ToString() {
24645       return pb::JsonFormatter.ToDiagnosticString(this);
24646     }
24647 
24648     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24649     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)24650     public void WriteTo(pb::CodedOutputStream output) {
24651     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24652       output.WriteRawMessage(this);
24653     #else
24654       packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
24655       packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
24656       packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
24657       packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
24658       packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
24659       packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
24660       packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
24661       packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
24662       packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
24663       packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
24664       packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
24665       packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
24666       packedBool_.WriteTo(output, _repeated_packedBool_codec);
24667       packedEnum_.WriteTo(output, _repeated_packedEnum_codec);
24668       if (_unknownFields != null) {
24669         _unknownFields.WriteTo(output);
24670       }
24671     #endif
24672     }
24673 
24674     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24675     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24676     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)24677     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
24678       packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
24679       packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec);
24680       packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec);
24681       packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec);
24682       packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec);
24683       packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec);
24684       packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec);
24685       packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec);
24686       packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec);
24687       packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec);
24688       packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec);
24689       packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec);
24690       packedBool_.WriteTo(ref output, _repeated_packedBool_codec);
24691       packedEnum_.WriteTo(ref output, _repeated_packedEnum_codec);
24692       if (_unknownFields != null) {
24693         _unknownFields.WriteTo(ref output);
24694       }
24695     }
24696     #endif
24697 
24698     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24699     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()24700     public int CalculateSize() {
24701       int size = 0;
24702       size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
24703       size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
24704       size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
24705       size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
24706       size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
24707       size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
24708       size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
24709       size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
24710       size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
24711       size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
24712       size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
24713       size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
24714       size += packedBool_.CalculateSize(_repeated_packedBool_codec);
24715       size += packedEnum_.CalculateSize(_repeated_packedEnum_codec);
24716       if (_unknownFields != null) {
24717         size += _unknownFields.CalculateSize();
24718       }
24719       return size;
24720     }
24721 
24722     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24723     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestPackedTypes other)24724     public void MergeFrom(TestPackedTypes other) {
24725       if (other == null) {
24726         return;
24727       }
24728       packedInt32_.Add(other.packedInt32_);
24729       packedInt64_.Add(other.packedInt64_);
24730       packedUint32_.Add(other.packedUint32_);
24731       packedUint64_.Add(other.packedUint64_);
24732       packedSint32_.Add(other.packedSint32_);
24733       packedSint64_.Add(other.packedSint64_);
24734       packedFixed32_.Add(other.packedFixed32_);
24735       packedFixed64_.Add(other.packedFixed64_);
24736       packedSfixed32_.Add(other.packedSfixed32_);
24737       packedSfixed64_.Add(other.packedSfixed64_);
24738       packedFloat_.Add(other.packedFloat_);
24739       packedDouble_.Add(other.packedDouble_);
24740       packedBool_.Add(other.packedBool_);
24741       packedEnum_.Add(other.packedEnum_);
24742       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
24743     }
24744 
24745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24746     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)24747     public void MergeFrom(pb::CodedInputStream input) {
24748     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24749       input.ReadRawMessage(this);
24750     #else
24751       uint tag;
24752       while ((tag = input.ReadTag()) != 0) {
24753         switch(tag) {
24754           default:
24755             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
24756             break;
24757           case 722:
24758           case 720: {
24759             packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
24760             break;
24761           }
24762           case 730:
24763           case 728: {
24764             packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
24765             break;
24766           }
24767           case 738:
24768           case 736: {
24769             packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
24770             break;
24771           }
24772           case 746:
24773           case 744: {
24774             packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
24775             break;
24776           }
24777           case 754:
24778           case 752: {
24779             packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
24780             break;
24781           }
24782           case 762:
24783           case 760: {
24784             packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
24785             break;
24786           }
24787           case 770:
24788           case 773: {
24789             packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
24790             break;
24791           }
24792           case 778:
24793           case 777: {
24794             packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
24795             break;
24796           }
24797           case 786:
24798           case 789: {
24799             packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
24800             break;
24801           }
24802           case 794:
24803           case 793: {
24804             packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
24805             break;
24806           }
24807           case 802:
24808           case 805: {
24809             packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
24810             break;
24811           }
24812           case 810:
24813           case 809: {
24814             packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
24815             break;
24816           }
24817           case 818:
24818           case 816: {
24819             packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
24820             break;
24821           }
24822           case 826:
24823           case 824: {
24824             packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec);
24825             break;
24826           }
24827         }
24828       }
24829     #endif
24830     }
24831 
24832     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24833     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24834     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)24835     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
24836       uint tag;
24837       while ((tag = input.ReadTag()) != 0) {
24838         switch(tag) {
24839           default:
24840             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
24841             break;
24842           case 722:
24843           case 720: {
24844             packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
24845             break;
24846           }
24847           case 730:
24848           case 728: {
24849             packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec);
24850             break;
24851           }
24852           case 738:
24853           case 736: {
24854             packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec);
24855             break;
24856           }
24857           case 746:
24858           case 744: {
24859             packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec);
24860             break;
24861           }
24862           case 754:
24863           case 752: {
24864             packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec);
24865             break;
24866           }
24867           case 762:
24868           case 760: {
24869             packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec);
24870             break;
24871           }
24872           case 770:
24873           case 773: {
24874             packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec);
24875             break;
24876           }
24877           case 778:
24878           case 777: {
24879             packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec);
24880             break;
24881           }
24882           case 786:
24883           case 789: {
24884             packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec);
24885             break;
24886           }
24887           case 794:
24888           case 793: {
24889             packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec);
24890             break;
24891           }
24892           case 802:
24893           case 805: {
24894             packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec);
24895             break;
24896           }
24897           case 810:
24898           case 809: {
24899             packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec);
24900             break;
24901           }
24902           case 818:
24903           case 816: {
24904             packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec);
24905             break;
24906           }
24907           case 826:
24908           case 824: {
24909             packedEnum_.AddEntriesFrom(ref input, _repeated_packedEnum_codec);
24910             break;
24911           }
24912         }
24913       }
24914     }
24915     #endif
24916 
24917   }
24918 
24919   /// <summary>
24920   /// A message with the same fields as TestPackedTypes, but without packing. Used
24921   /// to test packed &lt;-> unpacked wire compatibility.
24922   /// </summary>
24923   public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes>
24924   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24925       , pb::IBufferMessage
24926   #endif
24927   {
24928     private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes());
24929     private pb::UnknownFieldSet _unknownFields;
24930     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24931     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24932     public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } }
24933 
24934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24935     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24936     public static pbr::MessageDescriptor Descriptor {
24937       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[49]; }
24938     }
24939 
24940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24941     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24942     pbr::MessageDescriptor pb::IMessage.Descriptor {
24943       get { return Descriptor; }
24944     }
24945 
24946     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24947     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestUnpackedTypes()24948     public TestUnpackedTypes() {
24949       OnConstruction();
24950     }
24951 
OnConstruction()24952     partial void OnConstruction();
24953 
24954     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24955     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestUnpackedTypes(TestUnpackedTypes other)24956     public TestUnpackedTypes(TestUnpackedTypes other) : this() {
24957       unpackedInt32_ = other.unpackedInt32_.Clone();
24958       unpackedInt64_ = other.unpackedInt64_.Clone();
24959       unpackedUint32_ = other.unpackedUint32_.Clone();
24960       unpackedUint64_ = other.unpackedUint64_.Clone();
24961       unpackedSint32_ = other.unpackedSint32_.Clone();
24962       unpackedSint64_ = other.unpackedSint64_.Clone();
24963       unpackedFixed32_ = other.unpackedFixed32_.Clone();
24964       unpackedFixed64_ = other.unpackedFixed64_.Clone();
24965       unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
24966       unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
24967       unpackedFloat_ = other.unpackedFloat_.Clone();
24968       unpackedDouble_ = other.unpackedDouble_.Clone();
24969       unpackedBool_ = other.unpackedBool_.Clone();
24970       unpackedEnum_ = other.unpackedEnum_.Clone();
24971       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24972     }
24973 
24974     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24975     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()24976     public TestUnpackedTypes Clone() {
24977       return new TestUnpackedTypes(this);
24978     }
24979 
24980     /// <summary>Field number for the "unpacked_int32" field.</summary>
24981     public const int UnpackedInt32FieldNumber = 90;
24982     private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
24983         = pb::FieldCodec.ForInt32(720);
24984     private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
24985     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24986     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24987     public pbc::RepeatedField<int> UnpackedInt32 {
24988       get { return unpackedInt32_; }
24989     }
24990 
24991     /// <summary>Field number for the "unpacked_int64" field.</summary>
24992     public const int UnpackedInt64FieldNumber = 91;
24993     private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
24994         = pb::FieldCodec.ForInt64(728);
24995     private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
24996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
24997     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
24998     public pbc::RepeatedField<long> UnpackedInt64 {
24999       get { return unpackedInt64_; }
25000     }
25001 
25002     /// <summary>Field number for the "unpacked_uint32" field.</summary>
25003     public const int UnpackedUint32FieldNumber = 92;
25004     private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
25005         = pb::FieldCodec.ForUInt32(736);
25006     private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
25007     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25008     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25009     public pbc::RepeatedField<uint> UnpackedUint32 {
25010       get { return unpackedUint32_; }
25011     }
25012 
25013     /// <summary>Field number for the "unpacked_uint64" field.</summary>
25014     public const int UnpackedUint64FieldNumber = 93;
25015     private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
25016         = pb::FieldCodec.ForUInt64(744);
25017     private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
25018     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25019     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25020     public pbc::RepeatedField<ulong> UnpackedUint64 {
25021       get { return unpackedUint64_; }
25022     }
25023 
25024     /// <summary>Field number for the "unpacked_sint32" field.</summary>
25025     public const int UnpackedSint32FieldNumber = 94;
25026     private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
25027         = pb::FieldCodec.ForSInt32(752);
25028     private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
25029     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25030     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25031     public pbc::RepeatedField<int> UnpackedSint32 {
25032       get { return unpackedSint32_; }
25033     }
25034 
25035     /// <summary>Field number for the "unpacked_sint64" field.</summary>
25036     public const int UnpackedSint64FieldNumber = 95;
25037     private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
25038         = pb::FieldCodec.ForSInt64(760);
25039     private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
25040     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25041     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25042     public pbc::RepeatedField<long> UnpackedSint64 {
25043       get { return unpackedSint64_; }
25044     }
25045 
25046     /// <summary>Field number for the "unpacked_fixed32" field.</summary>
25047     public const int UnpackedFixed32FieldNumber = 96;
25048     private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
25049         = pb::FieldCodec.ForFixed32(773);
25050     private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
25051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25052     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25053     public pbc::RepeatedField<uint> UnpackedFixed32 {
25054       get { return unpackedFixed32_; }
25055     }
25056 
25057     /// <summary>Field number for the "unpacked_fixed64" field.</summary>
25058     public const int UnpackedFixed64FieldNumber = 97;
25059     private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
25060         = pb::FieldCodec.ForFixed64(777);
25061     private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
25062     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25063     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25064     public pbc::RepeatedField<ulong> UnpackedFixed64 {
25065       get { return unpackedFixed64_; }
25066     }
25067 
25068     /// <summary>Field number for the "unpacked_sfixed32" field.</summary>
25069     public const int UnpackedSfixed32FieldNumber = 98;
25070     private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
25071         = pb::FieldCodec.ForSFixed32(789);
25072     private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
25073     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25074     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25075     public pbc::RepeatedField<int> UnpackedSfixed32 {
25076       get { return unpackedSfixed32_; }
25077     }
25078 
25079     /// <summary>Field number for the "unpacked_sfixed64" field.</summary>
25080     public const int UnpackedSfixed64FieldNumber = 99;
25081     private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
25082         = pb::FieldCodec.ForSFixed64(793);
25083     private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
25084     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25085     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25086     public pbc::RepeatedField<long> UnpackedSfixed64 {
25087       get { return unpackedSfixed64_; }
25088     }
25089 
25090     /// <summary>Field number for the "unpacked_float" field.</summary>
25091     public const int UnpackedFloatFieldNumber = 100;
25092     private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
25093         = pb::FieldCodec.ForFloat(805);
25094     private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
25095     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25096     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25097     public pbc::RepeatedField<float> UnpackedFloat {
25098       get { return unpackedFloat_; }
25099     }
25100 
25101     /// <summary>Field number for the "unpacked_double" field.</summary>
25102     public const int UnpackedDoubleFieldNumber = 101;
25103     private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
25104         = pb::FieldCodec.ForDouble(809);
25105     private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
25106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25108     public pbc::RepeatedField<double> UnpackedDouble {
25109       get { return unpackedDouble_; }
25110     }
25111 
25112     /// <summary>Field number for the "unpacked_bool" field.</summary>
25113     public const int UnpackedBoolFieldNumber = 102;
25114     private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
25115         = pb::FieldCodec.ForBool(816);
25116     private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
25117     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25118     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25119     public pbc::RepeatedField<bool> UnpackedBool {
25120       get { return unpackedBool_; }
25121     }
25122 
25123     /// <summary>Field number for the "unpacked_enum" field.</summary>
25124     public const int UnpackedEnumFieldNumber = 103;
25125     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_unpackedEnum_codec
25126         = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
25127     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
25128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25129     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25130     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnum {
25131       get { return unpackedEnum_; }
25132     }
25133 
25134     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25135     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)25136     public override bool Equals(object other) {
25137       return Equals(other as TestUnpackedTypes);
25138     }
25139 
25140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25141     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestUnpackedTypes other)25142     public bool Equals(TestUnpackedTypes other) {
25143       if (ReferenceEquals(other, null)) {
25144         return false;
25145       }
25146       if (ReferenceEquals(other, this)) {
25147         return true;
25148       }
25149       if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
25150       if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
25151       if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
25152       if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
25153       if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
25154       if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
25155       if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
25156       if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
25157       if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
25158       if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
25159       if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
25160       if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
25161       if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
25162       if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false;
25163       return Equals(_unknownFields, other._unknownFields);
25164     }
25165 
25166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25167     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()25168     public override int GetHashCode() {
25169       int hash = 1;
25170       hash ^= unpackedInt32_.GetHashCode();
25171       hash ^= unpackedInt64_.GetHashCode();
25172       hash ^= unpackedUint32_.GetHashCode();
25173       hash ^= unpackedUint64_.GetHashCode();
25174       hash ^= unpackedSint32_.GetHashCode();
25175       hash ^= unpackedSint64_.GetHashCode();
25176       hash ^= unpackedFixed32_.GetHashCode();
25177       hash ^= unpackedFixed64_.GetHashCode();
25178       hash ^= unpackedSfixed32_.GetHashCode();
25179       hash ^= unpackedSfixed64_.GetHashCode();
25180       hash ^= unpackedFloat_.GetHashCode();
25181       hash ^= unpackedDouble_.GetHashCode();
25182       hash ^= unpackedBool_.GetHashCode();
25183       hash ^= unpackedEnum_.GetHashCode();
25184       if (_unknownFields != null) {
25185         hash ^= _unknownFields.GetHashCode();
25186       }
25187       return hash;
25188     }
25189 
25190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25191     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()25192     public override string ToString() {
25193       return pb::JsonFormatter.ToDiagnosticString(this);
25194     }
25195 
25196     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25197     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)25198     public void WriteTo(pb::CodedOutputStream output) {
25199     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25200       output.WriteRawMessage(this);
25201     #else
25202       unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
25203       unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
25204       unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
25205       unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
25206       unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
25207       unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
25208       unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
25209       unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
25210       unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
25211       unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
25212       unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
25213       unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
25214       unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
25215       unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec);
25216       if (_unknownFields != null) {
25217         _unknownFields.WriteTo(output);
25218       }
25219     #endif
25220     }
25221 
25222     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25223     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25224     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)25225     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
25226       unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec);
25227       unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec);
25228       unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec);
25229       unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec);
25230       unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec);
25231       unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec);
25232       unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec);
25233       unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec);
25234       unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec);
25235       unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec);
25236       unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec);
25237       unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec);
25238       unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec);
25239       unpackedEnum_.WriteTo(ref output, _repeated_unpackedEnum_codec);
25240       if (_unknownFields != null) {
25241         _unknownFields.WriteTo(ref output);
25242       }
25243     }
25244     #endif
25245 
25246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()25248     public int CalculateSize() {
25249       int size = 0;
25250       size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
25251       size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
25252       size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
25253       size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
25254       size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
25255       size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
25256       size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
25257       size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
25258       size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
25259       size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
25260       size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
25261       size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
25262       size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
25263       size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec);
25264       if (_unknownFields != null) {
25265         size += _unknownFields.CalculateSize();
25266       }
25267       return size;
25268     }
25269 
25270     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25271     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestUnpackedTypes other)25272     public void MergeFrom(TestUnpackedTypes other) {
25273       if (other == null) {
25274         return;
25275       }
25276       unpackedInt32_.Add(other.unpackedInt32_);
25277       unpackedInt64_.Add(other.unpackedInt64_);
25278       unpackedUint32_.Add(other.unpackedUint32_);
25279       unpackedUint64_.Add(other.unpackedUint64_);
25280       unpackedSint32_.Add(other.unpackedSint32_);
25281       unpackedSint64_.Add(other.unpackedSint64_);
25282       unpackedFixed32_.Add(other.unpackedFixed32_);
25283       unpackedFixed64_.Add(other.unpackedFixed64_);
25284       unpackedSfixed32_.Add(other.unpackedSfixed32_);
25285       unpackedSfixed64_.Add(other.unpackedSfixed64_);
25286       unpackedFloat_.Add(other.unpackedFloat_);
25287       unpackedDouble_.Add(other.unpackedDouble_);
25288       unpackedBool_.Add(other.unpackedBool_);
25289       unpackedEnum_.Add(other.unpackedEnum_);
25290       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
25291     }
25292 
25293     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25294     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)25295     public void MergeFrom(pb::CodedInputStream input) {
25296     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25297       input.ReadRawMessage(this);
25298     #else
25299       uint tag;
25300       while ((tag = input.ReadTag()) != 0) {
25301         switch(tag) {
25302           default:
25303             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
25304             break;
25305           case 722:
25306           case 720: {
25307             unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
25308             break;
25309           }
25310           case 730:
25311           case 728: {
25312             unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
25313             break;
25314           }
25315           case 738:
25316           case 736: {
25317             unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
25318             break;
25319           }
25320           case 746:
25321           case 744: {
25322             unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
25323             break;
25324           }
25325           case 754:
25326           case 752: {
25327             unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
25328             break;
25329           }
25330           case 762:
25331           case 760: {
25332             unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
25333             break;
25334           }
25335           case 770:
25336           case 773: {
25337             unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
25338             break;
25339           }
25340           case 778:
25341           case 777: {
25342             unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
25343             break;
25344           }
25345           case 786:
25346           case 789: {
25347             unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
25348             break;
25349           }
25350           case 794:
25351           case 793: {
25352             unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
25353             break;
25354           }
25355           case 802:
25356           case 805: {
25357             unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
25358             break;
25359           }
25360           case 810:
25361           case 809: {
25362             unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
25363             break;
25364           }
25365           case 818:
25366           case 816: {
25367             unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
25368             break;
25369           }
25370           case 826:
25371           case 824: {
25372             unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec);
25373             break;
25374           }
25375         }
25376       }
25377     #endif
25378     }
25379 
25380     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25381     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25382     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)25383     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
25384       uint tag;
25385       while ((tag = input.ReadTag()) != 0) {
25386         switch(tag) {
25387           default:
25388             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
25389             break;
25390           case 722:
25391           case 720: {
25392             unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec);
25393             break;
25394           }
25395           case 730:
25396           case 728: {
25397             unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec);
25398             break;
25399           }
25400           case 738:
25401           case 736: {
25402             unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec);
25403             break;
25404           }
25405           case 746:
25406           case 744: {
25407             unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec);
25408             break;
25409           }
25410           case 754:
25411           case 752: {
25412             unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec);
25413             break;
25414           }
25415           case 762:
25416           case 760: {
25417             unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec);
25418             break;
25419           }
25420           case 770:
25421           case 773: {
25422             unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec);
25423             break;
25424           }
25425           case 778:
25426           case 777: {
25427             unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec);
25428             break;
25429           }
25430           case 786:
25431           case 789: {
25432             unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec);
25433             break;
25434           }
25435           case 794:
25436           case 793: {
25437             unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec);
25438             break;
25439           }
25440           case 802:
25441           case 805: {
25442             unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec);
25443             break;
25444           }
25445           case 810:
25446           case 809: {
25447             unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec);
25448             break;
25449           }
25450           case 818:
25451           case 816: {
25452             unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec);
25453             break;
25454           }
25455           case 826:
25456           case 824: {
25457             unpackedEnum_.AddEntriesFrom(ref input, _repeated_unpackedEnum_codec);
25458             break;
25459           }
25460         }
25461       }
25462     }
25463     #endif
25464 
25465   }
25466 
25467   public sealed partial class TestPackedExtensions : pb::IExtendableMessage<TestPackedExtensions>
25468   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25469       , pb::IBufferMessage
25470   #endif
25471   {
25472     private static readonly pb::MessageParser<TestPackedExtensions> _parser = new pb::MessageParser<TestPackedExtensions>(() => new TestPackedExtensions());
25473     private pb::UnknownFieldSet _unknownFields;
25474     private pb::ExtensionSet<TestPackedExtensions> _extensions;
25475     private pb::ExtensionSet<TestPackedExtensions> _Extensions { get { return _extensions; } }
25476     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25477     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25478     public static pb::MessageParser<TestPackedExtensions> Parser { get { return _parser; } }
25479 
25480     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25481     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25482     public static pbr::MessageDescriptor Descriptor {
25483       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[50]; }
25484     }
25485 
25486     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25487     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25488     pbr::MessageDescriptor pb::IMessage.Descriptor {
25489       get { return Descriptor; }
25490     }
25491 
25492     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25493     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestPackedExtensions()25494     public TestPackedExtensions() {
25495       OnConstruction();
25496     }
25497 
OnConstruction()25498     partial void OnConstruction();
25499 
25500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestPackedExtensions(TestPackedExtensions other)25502     public TestPackedExtensions(TestPackedExtensions other) : this() {
25503       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
25504       _extensions = pb::ExtensionSet.Clone(other._extensions);
25505     }
25506 
25507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25508     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()25509     public TestPackedExtensions Clone() {
25510       return new TestPackedExtensions(this);
25511     }
25512 
25513     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25514     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)25515     public override bool Equals(object other) {
25516       return Equals(other as TestPackedExtensions);
25517     }
25518 
25519     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25520     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestPackedExtensions other)25521     public bool Equals(TestPackedExtensions other) {
25522       if (ReferenceEquals(other, null)) {
25523         return false;
25524       }
25525       if (ReferenceEquals(other, this)) {
25526         return true;
25527       }
25528       if (!Equals(_extensions, other._extensions)) {
25529         return false;
25530       }
25531       return Equals(_unknownFields, other._unknownFields);
25532     }
25533 
25534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25535     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()25536     public override int GetHashCode() {
25537       int hash = 1;
25538       if (_extensions != null) {
25539         hash ^= _extensions.GetHashCode();
25540       }
25541       if (_unknownFields != null) {
25542         hash ^= _unknownFields.GetHashCode();
25543       }
25544       return hash;
25545     }
25546 
25547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()25549     public override string ToString() {
25550       return pb::JsonFormatter.ToDiagnosticString(this);
25551     }
25552 
25553     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25554     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)25555     public void WriteTo(pb::CodedOutputStream output) {
25556     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25557       output.WriteRawMessage(this);
25558     #else
25559       if (_extensions != null) {
25560         _extensions.WriteTo(output);
25561       }
25562       if (_unknownFields != null) {
25563         _unknownFields.WriteTo(output);
25564       }
25565     #endif
25566     }
25567 
25568     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25569     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25570     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)25571     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
25572       if (_extensions != null) {
25573         _extensions.WriteTo(ref output);
25574       }
25575       if (_unknownFields != null) {
25576         _unknownFields.WriteTo(ref output);
25577       }
25578     }
25579     #endif
25580 
25581     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25582     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()25583     public int CalculateSize() {
25584       int size = 0;
25585       if (_extensions != null) {
25586         size += _extensions.CalculateSize();
25587       }
25588       if (_unknownFields != null) {
25589         size += _unknownFields.CalculateSize();
25590       }
25591       return size;
25592     }
25593 
25594     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25595     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestPackedExtensions other)25596     public void MergeFrom(TestPackedExtensions other) {
25597       if (other == null) {
25598         return;
25599       }
25600       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
25601       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
25602     }
25603 
25604     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25605     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)25606     public void MergeFrom(pb::CodedInputStream input) {
25607     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25608       input.ReadRawMessage(this);
25609     #else
25610       uint tag;
25611       while ((tag = input.ReadTag()) != 0) {
25612         switch(tag) {
25613           default:
25614             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
25615               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
25616             }
25617             break;
25618         }
25619       }
25620     #endif
25621     }
25622 
25623     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25625     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)25626     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
25627       uint tag;
25628       while ((tag = input.ReadTag()) != 0) {
25629         switch(tag) {
25630           default:
25631             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
25632               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
25633             }
25634             break;
25635         }
25636       }
25637     }
25638     #endif
25639 
GetExtension(pb::Extension<TestPackedExtensions, TValue> extension)25640     public TValue GetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
25641       return pb::ExtensionSet.Get(ref _extensions, extension);
25642     }
GetExtension(pb::RepeatedExtension<TestPackedExtensions, TValue> extension)25643     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
25644       return pb::ExtensionSet.Get(ref _extensions, extension);
25645     }
GetOrInitializeExtension(pb::RepeatedExtension<TestPackedExtensions, TValue> extension)25646     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
25647       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
25648     }
SetExtension(pb::Extension<TestPackedExtensions, TValue> extension, TValue value)25649     public void SetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension, TValue value) {
25650       pb::ExtensionSet.Set(ref _extensions, extension, value);
25651     }
HasExtension(pb::Extension<TestPackedExtensions, TValue> extension)25652     public bool HasExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
25653       return pb::ExtensionSet.Has(ref _extensions, extension);
25654     }
ClearExtension(pb::Extension<TestPackedExtensions, TValue> extension)25655     public void ClearExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
25656       pb::ExtensionSet.Clear(ref _extensions, extension);
25657     }
ClearExtension(pb::RepeatedExtension<TestPackedExtensions, TValue> extension)25658     public void ClearExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
25659       pb::ExtensionSet.Clear(ref _extensions, extension);
25660     }
25661 
25662   }
25663 
25664   public sealed partial class TestUnpackedExtensions : pb::IExtendableMessage<TestUnpackedExtensions>
25665   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25666       , pb::IBufferMessage
25667   #endif
25668   {
25669     private static readonly pb::MessageParser<TestUnpackedExtensions> _parser = new pb::MessageParser<TestUnpackedExtensions>(() => new TestUnpackedExtensions());
25670     private pb::UnknownFieldSet _unknownFields;
25671     private pb::ExtensionSet<TestUnpackedExtensions> _extensions;
25672     private pb::ExtensionSet<TestUnpackedExtensions> _Extensions { get { return _extensions; } }
25673     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25674     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25675     public static pb::MessageParser<TestUnpackedExtensions> Parser { get { return _parser; } }
25676 
25677     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25678     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25679     public static pbr::MessageDescriptor Descriptor {
25680       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[51]; }
25681     }
25682 
25683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25684     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25685     pbr::MessageDescriptor pb::IMessage.Descriptor {
25686       get { return Descriptor; }
25687     }
25688 
25689     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25690     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestUnpackedExtensions()25691     public TestUnpackedExtensions() {
25692       OnConstruction();
25693     }
25694 
OnConstruction()25695     partial void OnConstruction();
25696 
25697     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25698     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestUnpackedExtensions(TestUnpackedExtensions other)25699     public TestUnpackedExtensions(TestUnpackedExtensions other) : this() {
25700       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
25701       _extensions = pb::ExtensionSet.Clone(other._extensions);
25702     }
25703 
25704     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25705     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()25706     public TestUnpackedExtensions Clone() {
25707       return new TestUnpackedExtensions(this);
25708     }
25709 
25710     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25711     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)25712     public override bool Equals(object other) {
25713       return Equals(other as TestUnpackedExtensions);
25714     }
25715 
25716     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25717     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestUnpackedExtensions other)25718     public bool Equals(TestUnpackedExtensions other) {
25719       if (ReferenceEquals(other, null)) {
25720         return false;
25721       }
25722       if (ReferenceEquals(other, this)) {
25723         return true;
25724       }
25725       if (!Equals(_extensions, other._extensions)) {
25726         return false;
25727       }
25728       return Equals(_unknownFields, other._unknownFields);
25729     }
25730 
25731     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25732     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()25733     public override int GetHashCode() {
25734       int hash = 1;
25735       if (_extensions != null) {
25736         hash ^= _extensions.GetHashCode();
25737       }
25738       if (_unknownFields != null) {
25739         hash ^= _unknownFields.GetHashCode();
25740       }
25741       return hash;
25742     }
25743 
25744     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25745     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()25746     public override string ToString() {
25747       return pb::JsonFormatter.ToDiagnosticString(this);
25748     }
25749 
25750     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25751     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)25752     public void WriteTo(pb::CodedOutputStream output) {
25753     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25754       output.WriteRawMessage(this);
25755     #else
25756       if (_extensions != null) {
25757         _extensions.WriteTo(output);
25758       }
25759       if (_unknownFields != null) {
25760         _unknownFields.WriteTo(output);
25761       }
25762     #endif
25763     }
25764 
25765     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25767     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)25768     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
25769       if (_extensions != null) {
25770         _extensions.WriteTo(ref output);
25771       }
25772       if (_unknownFields != null) {
25773         _unknownFields.WriteTo(ref output);
25774       }
25775     }
25776     #endif
25777 
25778     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25779     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()25780     public int CalculateSize() {
25781       int size = 0;
25782       if (_extensions != null) {
25783         size += _extensions.CalculateSize();
25784       }
25785       if (_unknownFields != null) {
25786         size += _unknownFields.CalculateSize();
25787       }
25788       return size;
25789     }
25790 
25791     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25792     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestUnpackedExtensions other)25793     public void MergeFrom(TestUnpackedExtensions other) {
25794       if (other == null) {
25795         return;
25796       }
25797       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
25798       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
25799     }
25800 
25801     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25802     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)25803     public void MergeFrom(pb::CodedInputStream input) {
25804     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25805       input.ReadRawMessage(this);
25806     #else
25807       uint tag;
25808       while ((tag = input.ReadTag()) != 0) {
25809         switch(tag) {
25810           default:
25811             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
25812               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
25813             }
25814             break;
25815         }
25816       }
25817     #endif
25818     }
25819 
25820     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25822     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)25823     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
25824       uint tag;
25825       while ((tag = input.ReadTag()) != 0) {
25826         switch(tag) {
25827           default:
25828             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
25829               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
25830             }
25831             break;
25832         }
25833       }
25834     }
25835     #endif
25836 
GetExtension(pb::Extension<TestUnpackedExtensions, TValue> extension)25837     public TValue GetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
25838       return pb::ExtensionSet.Get(ref _extensions, extension);
25839     }
GetExtension(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension)25840     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
25841       return pb::ExtensionSet.Get(ref _extensions, extension);
25842     }
GetOrInitializeExtension(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension)25843     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
25844       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
25845     }
SetExtension(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue value)25846     public void SetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue value) {
25847       pb::ExtensionSet.Set(ref _extensions, extension, value);
25848     }
HasExtension(pb::Extension<TestUnpackedExtensions, TValue> extension)25849     public bool HasExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
25850       return pb::ExtensionSet.Has(ref _extensions, extension);
25851     }
ClearExtension(pb::Extension<TestUnpackedExtensions, TValue> extension)25852     public void ClearExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
25853       pb::ExtensionSet.Clear(ref _extensions, extension);
25854     }
ClearExtension(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension)25855     public void ClearExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
25856       pb::ExtensionSet.Clear(ref _extensions, extension);
25857     }
25858 
25859   }
25860 
25861   /// <summary>
25862   /// Used by ExtensionSetTest/DynamicExtensions.  The test actually builds
25863   /// a set of extensions to TestAllExtensions dynamically, based on the fields
25864   /// of this message type.
25865   /// </summary>
25866   public sealed partial class TestDynamicExtensions : pb::IMessage<TestDynamicExtensions>
25867   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25868       , pb::IBufferMessage
25869   #endif
25870   {
25871     private static readonly pb::MessageParser<TestDynamicExtensions> _parser = new pb::MessageParser<TestDynamicExtensions>(() => new TestDynamicExtensions());
25872     private pb::UnknownFieldSet _unknownFields;
25873     private int _hasBits0;
25874     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25875     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25876     public static pb::MessageParser<TestDynamicExtensions> Parser { get { return _parser; } }
25877 
25878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25879     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25880     public static pbr::MessageDescriptor Descriptor {
25881       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[52]; }
25882     }
25883 
25884     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25885     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25886     pbr::MessageDescriptor pb::IMessage.Descriptor {
25887       get { return Descriptor; }
25888     }
25889 
25890     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25891     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDynamicExtensions()25892     public TestDynamicExtensions() {
25893       OnConstruction();
25894     }
25895 
OnConstruction()25896     partial void OnConstruction();
25897 
25898     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25899     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestDynamicExtensions(TestDynamicExtensions other)25900     public TestDynamicExtensions(TestDynamicExtensions other) : this() {
25901       _hasBits0 = other._hasBits0;
25902       scalarExtension_ = other.scalarExtension_;
25903       enumExtension_ = other.enumExtension_;
25904       dynamicEnumExtension_ = other.dynamicEnumExtension_;
25905       messageExtension_ = other.messageExtension_ != null ? other.messageExtension_.Clone() : null;
25906       dynamicMessageExtension_ = other.dynamicMessageExtension_ != null ? other.dynamicMessageExtension_.Clone() : null;
25907       repeatedExtension_ = other.repeatedExtension_.Clone();
25908       packedExtension_ = other.packedExtension_.Clone();
25909       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
25910     }
25911 
25912     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25913     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()25914     public TestDynamicExtensions Clone() {
25915       return new TestDynamicExtensions(this);
25916     }
25917 
25918     /// <summary>Field number for the "scalar_extension" field.</summary>
25919     public const int ScalarExtensionFieldNumber = 2000;
25920     private readonly static uint ScalarExtensionDefaultValue = 0;
25921 
25922     private uint scalarExtension_;
25923     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25924     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25925     public uint ScalarExtension {
25926       get { if ((_hasBits0 & 1) != 0) { return scalarExtension_; } else { return ScalarExtensionDefaultValue; } }
25927       set {
25928         _hasBits0 |= 1;
25929         scalarExtension_ = value;
25930       }
25931     }
25932     /// <summary>Gets whether the "scalar_extension" field is set</summary>
25933     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25934     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25935     public bool HasScalarExtension {
25936       get { return (_hasBits0 & 1) != 0; }
25937     }
25938     /// <summary>Clears the value of the "scalar_extension" field</summary>
25939     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25940     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearScalarExtension()25941     public void ClearScalarExtension() {
25942       _hasBits0 &= ~1;
25943     }
25944 
25945     /// <summary>Field number for the "enum_extension" field.</summary>
25946     public const int EnumExtensionFieldNumber = 2001;
25947     private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
25948 
25949     private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumExtension_;
25950     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25951     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25952     public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtension {
25953       get { if ((_hasBits0 & 2) != 0) { return enumExtension_; } else { return EnumExtensionDefaultValue; } }
25954       set {
25955         _hasBits0 |= 2;
25956         enumExtension_ = value;
25957       }
25958     }
25959     /// <summary>Gets whether the "enum_extension" field is set</summary>
25960     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25961     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25962     public bool HasEnumExtension {
25963       get { return (_hasBits0 & 2) != 0; }
25964     }
25965     /// <summary>Clears the value of the "enum_extension" field</summary>
25966     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25967     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEnumExtension()25968     public void ClearEnumExtension() {
25969       _hasBits0 &= ~2;
25970     }
25971 
25972     /// <summary>Field number for the "dynamic_enum_extension" field.</summary>
25973     public const int DynamicEnumExtensionFieldNumber = 2002;
25974     private readonly static global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType.DynamicFoo;
25975 
25976     private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_;
25977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25979     public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
25980       get { if ((_hasBits0 & 4) != 0) { return dynamicEnumExtension_; } else { return DynamicEnumExtensionDefaultValue; } }
25981       set {
25982         _hasBits0 |= 4;
25983         dynamicEnumExtension_ = value;
25984       }
25985     }
25986     /// <summary>Gets whether the "dynamic_enum_extension" field is set</summary>
25987     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25988     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
25989     public bool HasDynamicEnumExtension {
25990       get { return (_hasBits0 & 4) != 0; }
25991     }
25992     /// <summary>Clears the value of the "dynamic_enum_extension" field</summary>
25993     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
25994     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDynamicEnumExtension()25995     public void ClearDynamicEnumExtension() {
25996       _hasBits0 &= ~4;
25997     }
25998 
25999     /// <summary>Field number for the "message_extension" field.</summary>
26000     public const int MessageExtensionFieldNumber = 2003;
26001     private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageExtension_;
26002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26003     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26004     public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageExtension {
26005       get { return messageExtension_; }
26006       set {
26007         messageExtension_ = value;
26008       }
26009     }
26010 
26011     /// <summary>Field number for the "dynamic_message_extension" field.</summary>
26012     public const int DynamicMessageExtensionFieldNumber = 2004;
26013     private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_;
26014     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26015     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26016     public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
26017       get { return dynamicMessageExtension_; }
26018       set {
26019         dynamicMessageExtension_ = value;
26020       }
26021     }
26022 
26023     /// <summary>Field number for the "repeated_extension" field.</summary>
26024     public const int RepeatedExtensionFieldNumber = 2005;
26025     private static readonly pb::FieldCodec<string> _repeated_repeatedExtension_codec
26026         = pb::FieldCodec.ForString(16042);
26027     private readonly pbc::RepeatedField<string> repeatedExtension_ = new pbc::RepeatedField<string>();
26028     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26029     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26030     public pbc::RepeatedField<string> RepeatedExtension {
26031       get { return repeatedExtension_; }
26032     }
26033 
26034     /// <summary>Field number for the "packed_extension" field.</summary>
26035     public const int PackedExtensionFieldNumber = 2006;
26036     private static readonly pb::FieldCodec<int> _repeated_packedExtension_codec
26037         = pb::FieldCodec.ForSInt32(16050);
26038     private readonly pbc::RepeatedField<int> packedExtension_ = new pbc::RepeatedField<int>();
26039     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26040     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26041     public pbc::RepeatedField<int> PackedExtension {
26042       get { return packedExtension_; }
26043     }
26044 
26045     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26046     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)26047     public override bool Equals(object other) {
26048       return Equals(other as TestDynamicExtensions);
26049     }
26050 
26051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26052     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestDynamicExtensions other)26053     public bool Equals(TestDynamicExtensions other) {
26054       if (ReferenceEquals(other, null)) {
26055         return false;
26056       }
26057       if (ReferenceEquals(other, this)) {
26058         return true;
26059       }
26060       if (ScalarExtension != other.ScalarExtension) return false;
26061       if (EnumExtension != other.EnumExtension) return false;
26062       if (DynamicEnumExtension != other.DynamicEnumExtension) return false;
26063       if (!object.Equals(MessageExtension, other.MessageExtension)) return false;
26064       if (!object.Equals(DynamicMessageExtension, other.DynamicMessageExtension)) return false;
26065       if(!repeatedExtension_.Equals(other.repeatedExtension_)) return false;
26066       if(!packedExtension_.Equals(other.packedExtension_)) return false;
26067       return Equals(_unknownFields, other._unknownFields);
26068     }
26069 
26070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26071     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()26072     public override int GetHashCode() {
26073       int hash = 1;
26074       if (HasScalarExtension) hash ^= ScalarExtension.GetHashCode();
26075       if (HasEnumExtension) hash ^= EnumExtension.GetHashCode();
26076       if (HasDynamicEnumExtension) hash ^= DynamicEnumExtension.GetHashCode();
26077       if (messageExtension_ != null) hash ^= MessageExtension.GetHashCode();
26078       if (dynamicMessageExtension_ != null) hash ^= DynamicMessageExtension.GetHashCode();
26079       hash ^= repeatedExtension_.GetHashCode();
26080       hash ^= packedExtension_.GetHashCode();
26081       if (_unknownFields != null) {
26082         hash ^= _unknownFields.GetHashCode();
26083       }
26084       return hash;
26085     }
26086 
26087     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26088     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()26089     public override string ToString() {
26090       return pb::JsonFormatter.ToDiagnosticString(this);
26091     }
26092 
26093     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26094     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)26095     public void WriteTo(pb::CodedOutputStream output) {
26096     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26097       output.WriteRawMessage(this);
26098     #else
26099       if (HasScalarExtension) {
26100         output.WriteRawTag(133, 125);
26101         output.WriteFixed32(ScalarExtension);
26102       }
26103       if (HasEnumExtension) {
26104         output.WriteRawTag(136, 125);
26105         output.WriteEnum((int) EnumExtension);
26106       }
26107       if (HasDynamicEnumExtension) {
26108         output.WriteRawTag(144, 125);
26109         output.WriteEnum((int) DynamicEnumExtension);
26110       }
26111       if (messageExtension_ != null) {
26112         output.WriteRawTag(154, 125);
26113         output.WriteMessage(MessageExtension);
26114       }
26115       if (dynamicMessageExtension_ != null) {
26116         output.WriteRawTag(162, 125);
26117         output.WriteMessage(DynamicMessageExtension);
26118       }
26119       repeatedExtension_.WriteTo(output, _repeated_repeatedExtension_codec);
26120       packedExtension_.WriteTo(output, _repeated_packedExtension_codec);
26121       if (_unknownFields != null) {
26122         _unknownFields.WriteTo(output);
26123       }
26124     #endif
26125     }
26126 
26127     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26129     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)26130     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
26131       if (HasScalarExtension) {
26132         output.WriteRawTag(133, 125);
26133         output.WriteFixed32(ScalarExtension);
26134       }
26135       if (HasEnumExtension) {
26136         output.WriteRawTag(136, 125);
26137         output.WriteEnum((int) EnumExtension);
26138       }
26139       if (HasDynamicEnumExtension) {
26140         output.WriteRawTag(144, 125);
26141         output.WriteEnum((int) DynamicEnumExtension);
26142       }
26143       if (messageExtension_ != null) {
26144         output.WriteRawTag(154, 125);
26145         output.WriteMessage(MessageExtension);
26146       }
26147       if (dynamicMessageExtension_ != null) {
26148         output.WriteRawTag(162, 125);
26149         output.WriteMessage(DynamicMessageExtension);
26150       }
26151       repeatedExtension_.WriteTo(ref output, _repeated_repeatedExtension_codec);
26152       packedExtension_.WriteTo(ref output, _repeated_packedExtension_codec);
26153       if (_unknownFields != null) {
26154         _unknownFields.WriteTo(ref output);
26155       }
26156     }
26157     #endif
26158 
26159     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26160     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()26161     public int CalculateSize() {
26162       int size = 0;
26163       if (HasScalarExtension) {
26164         size += 2 + 4;
26165       }
26166       if (HasEnumExtension) {
26167         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EnumExtension);
26168       }
26169       if (HasDynamicEnumExtension) {
26170         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DynamicEnumExtension);
26171       }
26172       if (messageExtension_ != null) {
26173         size += 2 + pb::CodedOutputStream.ComputeMessageSize(MessageExtension);
26174       }
26175       if (dynamicMessageExtension_ != null) {
26176         size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicMessageExtension);
26177       }
26178       size += repeatedExtension_.CalculateSize(_repeated_repeatedExtension_codec);
26179       size += packedExtension_.CalculateSize(_repeated_packedExtension_codec);
26180       if (_unknownFields != null) {
26181         size += _unknownFields.CalculateSize();
26182       }
26183       return size;
26184     }
26185 
26186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26187     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestDynamicExtensions other)26188     public void MergeFrom(TestDynamicExtensions other) {
26189       if (other == null) {
26190         return;
26191       }
26192       if (other.HasScalarExtension) {
26193         ScalarExtension = other.ScalarExtension;
26194       }
26195       if (other.HasEnumExtension) {
26196         EnumExtension = other.EnumExtension;
26197       }
26198       if (other.HasDynamicEnumExtension) {
26199         DynamicEnumExtension = other.DynamicEnumExtension;
26200       }
26201       if (other.messageExtension_ != null) {
26202         if (messageExtension_ == null) {
26203           MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
26204         }
26205         MessageExtension.MergeFrom(other.MessageExtension);
26206       }
26207       if (other.dynamicMessageExtension_ != null) {
26208         if (dynamicMessageExtension_ == null) {
26209           DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
26210         }
26211         DynamicMessageExtension.MergeFrom(other.DynamicMessageExtension);
26212       }
26213       repeatedExtension_.Add(other.repeatedExtension_);
26214       packedExtension_.Add(other.packedExtension_);
26215       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
26216     }
26217 
26218     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26219     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)26220     public void MergeFrom(pb::CodedInputStream input) {
26221     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26222       input.ReadRawMessage(this);
26223     #else
26224       uint tag;
26225       while ((tag = input.ReadTag()) != 0) {
26226         switch(tag) {
26227           default:
26228             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
26229             break;
26230           case 16005: {
26231             ScalarExtension = input.ReadFixed32();
26232             break;
26233           }
26234           case 16008: {
26235             EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
26236             break;
26237           }
26238           case 16016: {
26239             DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum();
26240             break;
26241           }
26242           case 16026: {
26243             if (messageExtension_ == null) {
26244               MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
26245             }
26246             input.ReadMessage(MessageExtension);
26247             break;
26248           }
26249           case 16034: {
26250             if (dynamicMessageExtension_ == null) {
26251               DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
26252             }
26253             input.ReadMessage(DynamicMessageExtension);
26254             break;
26255           }
26256           case 16042: {
26257             repeatedExtension_.AddEntriesFrom(input, _repeated_repeatedExtension_codec);
26258             break;
26259           }
26260           case 16050:
26261           case 16048: {
26262             packedExtension_.AddEntriesFrom(input, _repeated_packedExtension_codec);
26263             break;
26264           }
26265         }
26266       }
26267     #endif
26268     }
26269 
26270     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26271     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26272     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)26273     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
26274       uint tag;
26275       while ((tag = input.ReadTag()) != 0) {
26276         switch(tag) {
26277           default:
26278             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
26279             break;
26280           case 16005: {
26281             ScalarExtension = input.ReadFixed32();
26282             break;
26283           }
26284           case 16008: {
26285             EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
26286             break;
26287           }
26288           case 16016: {
26289             DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum();
26290             break;
26291           }
26292           case 16026: {
26293             if (messageExtension_ == null) {
26294               MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
26295             }
26296             input.ReadMessage(MessageExtension);
26297             break;
26298           }
26299           case 16034: {
26300             if (dynamicMessageExtension_ == null) {
26301               DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
26302             }
26303             input.ReadMessage(DynamicMessageExtension);
26304             break;
26305           }
26306           case 16042: {
26307             repeatedExtension_.AddEntriesFrom(ref input, _repeated_repeatedExtension_codec);
26308             break;
26309           }
26310           case 16050:
26311           case 16048: {
26312             packedExtension_.AddEntriesFrom(ref input, _repeated_packedExtension_codec);
26313             break;
26314           }
26315         }
26316       }
26317     }
26318     #endif
26319 
26320     #region Nested types
26321     /// <summary>Container for nested types declared in the TestDynamicExtensions message type.</summary>
26322     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26323     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26324     public static partial class Types {
26325       public enum DynamicEnumType {
26326         [pbr::OriginalName("DYNAMIC_FOO")] DynamicFoo = 2200,
26327         [pbr::OriginalName("DYNAMIC_BAR")] DynamicBar = 2201,
26328         [pbr::OriginalName("DYNAMIC_BAZ")] DynamicBaz = 2202,
26329       }
26330 
26331       public sealed partial class DynamicMessageType : pb::IMessage<DynamicMessageType>
26332       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26333           , pb::IBufferMessage
26334       #endif
26335       {
26336         private static readonly pb::MessageParser<DynamicMessageType> _parser = new pb::MessageParser<DynamicMessageType>(() => new DynamicMessageType());
26337         private pb::UnknownFieldSet _unknownFields;
26338         private int _hasBits0;
26339         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26340         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26341         public static pb::MessageParser<DynamicMessageType> Parser { get { return _parser; } }
26342 
26343         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26344         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26345         public static pbr::MessageDescriptor Descriptor {
26346           get { return global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Descriptor.NestedTypes[0]; }
26347         }
26348 
26349         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26350         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26351         pbr::MessageDescriptor pb::IMessage.Descriptor {
26352           get { return Descriptor; }
26353         }
26354 
26355         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26356         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
DynamicMessageType()26357         public DynamicMessageType() {
26358           OnConstruction();
26359         }
26360 
OnConstruction()26361         partial void OnConstruction();
26362 
26363         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26364         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
DynamicMessageType(DynamicMessageType other)26365         public DynamicMessageType(DynamicMessageType other) : this() {
26366           _hasBits0 = other._hasBits0;
26367           dynamicField_ = other.dynamicField_;
26368           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
26369         }
26370 
26371         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26372         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()26373         public DynamicMessageType Clone() {
26374           return new DynamicMessageType(this);
26375         }
26376 
26377         /// <summary>Field number for the "dynamic_field" field.</summary>
26378         public const int DynamicFieldFieldNumber = 2100;
26379         private readonly static int DynamicFieldDefaultValue = 0;
26380 
26381         private int dynamicField_;
26382         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26383         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26384         public int DynamicField {
26385           get { if ((_hasBits0 & 1) != 0) { return dynamicField_; } else { return DynamicFieldDefaultValue; } }
26386           set {
26387             _hasBits0 |= 1;
26388             dynamicField_ = value;
26389           }
26390         }
26391         /// <summary>Gets whether the "dynamic_field" field is set</summary>
26392         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26393         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26394         public bool HasDynamicField {
26395           get { return (_hasBits0 & 1) != 0; }
26396         }
26397         /// <summary>Clears the value of the "dynamic_field" field</summary>
26398         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26399         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDynamicField()26400         public void ClearDynamicField() {
26401           _hasBits0 &= ~1;
26402         }
26403 
26404         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26405         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)26406         public override bool Equals(object other) {
26407           return Equals(other as DynamicMessageType);
26408         }
26409 
26410         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26411         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(DynamicMessageType other)26412         public bool Equals(DynamicMessageType other) {
26413           if (ReferenceEquals(other, null)) {
26414             return false;
26415           }
26416           if (ReferenceEquals(other, this)) {
26417             return true;
26418           }
26419           if (DynamicField != other.DynamicField) return false;
26420           return Equals(_unknownFields, other._unknownFields);
26421         }
26422 
26423         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26424         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()26425         public override int GetHashCode() {
26426           int hash = 1;
26427           if (HasDynamicField) hash ^= DynamicField.GetHashCode();
26428           if (_unknownFields != null) {
26429             hash ^= _unknownFields.GetHashCode();
26430           }
26431           return hash;
26432         }
26433 
26434         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26435         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()26436         public override string ToString() {
26437           return pb::JsonFormatter.ToDiagnosticString(this);
26438         }
26439 
26440         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26441         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)26442         public void WriteTo(pb::CodedOutputStream output) {
26443         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26444           output.WriteRawMessage(this);
26445         #else
26446           if (HasDynamicField) {
26447             output.WriteRawTag(160, 131, 1);
26448             output.WriteInt32(DynamicField);
26449           }
26450           if (_unknownFields != null) {
26451             _unknownFields.WriteTo(output);
26452           }
26453         #endif
26454         }
26455 
26456         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26457         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26458         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)26459         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
26460           if (HasDynamicField) {
26461             output.WriteRawTag(160, 131, 1);
26462             output.WriteInt32(DynamicField);
26463           }
26464           if (_unknownFields != null) {
26465             _unknownFields.WriteTo(ref output);
26466           }
26467         }
26468         #endif
26469 
26470         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26471         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()26472         public int CalculateSize() {
26473           int size = 0;
26474           if (HasDynamicField) {
26475             size += 3 + pb::CodedOutputStream.ComputeInt32Size(DynamicField);
26476           }
26477           if (_unknownFields != null) {
26478             size += _unknownFields.CalculateSize();
26479           }
26480           return size;
26481         }
26482 
26483         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26484         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(DynamicMessageType other)26485         public void MergeFrom(DynamicMessageType other) {
26486           if (other == null) {
26487             return;
26488           }
26489           if (other.HasDynamicField) {
26490             DynamicField = other.DynamicField;
26491           }
26492           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
26493         }
26494 
26495         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26496         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)26497         public void MergeFrom(pb::CodedInputStream input) {
26498         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26499           input.ReadRawMessage(this);
26500         #else
26501           uint tag;
26502           while ((tag = input.ReadTag()) != 0) {
26503             switch(tag) {
26504               default:
26505                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
26506                 break;
26507               case 16800: {
26508                 DynamicField = input.ReadInt32();
26509                 break;
26510               }
26511             }
26512           }
26513         #endif
26514         }
26515 
26516         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26517         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26518         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)26519         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
26520           uint tag;
26521           while ((tag = input.ReadTag()) != 0) {
26522             switch(tag) {
26523               default:
26524                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
26525                 break;
26526               case 16800: {
26527                 DynamicField = input.ReadInt32();
26528                 break;
26529               }
26530             }
26531           }
26532         }
26533         #endif
26534 
26535       }
26536 
26537     }
26538     #endregion
26539 
26540   }
26541 
26542   public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes>
26543   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26544       , pb::IBufferMessage
26545   #endif
26546   {
26547     private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes());
26548     private pb::UnknownFieldSet _unknownFields;
26549     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26550     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26551     public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } }
26552 
26553     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26554     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26555     public static pbr::MessageDescriptor Descriptor {
26556       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[53]; }
26557     }
26558 
26559     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26560     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26561     pbr::MessageDescriptor pb::IMessage.Descriptor {
26562       get { return Descriptor; }
26563     }
26564 
26565     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26566     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRepeatedScalarDifferentTagSizes()26567     public TestRepeatedScalarDifferentTagSizes() {
26568       OnConstruction();
26569     }
26570 
OnConstruction()26571     partial void OnConstruction();
26572 
26573     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26574     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other)26575     public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() {
26576       repeatedFixed32_ = other.repeatedFixed32_.Clone();
26577       repeatedInt32_ = other.repeatedInt32_.Clone();
26578       repeatedFixed64_ = other.repeatedFixed64_.Clone();
26579       repeatedInt64_ = other.repeatedInt64_.Clone();
26580       repeatedFloat_ = other.repeatedFloat_.Clone();
26581       repeatedUint64_ = other.repeatedUint64_.Clone();
26582       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
26583     }
26584 
26585     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26586     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()26587     public TestRepeatedScalarDifferentTagSizes Clone() {
26588       return new TestRepeatedScalarDifferentTagSizes(this);
26589     }
26590 
26591     /// <summary>Field number for the "repeated_fixed32" field.</summary>
26592     public const int RepeatedFixed32FieldNumber = 12;
26593     private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
26594         = pb::FieldCodec.ForFixed32(101);
26595     private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
26596     /// <summary>
26597     /// Parsing repeated fixed size values used to fail. This message needs to be
26598     /// used in order to get a tag of the right size; all of the repeated fields
26599     /// in TestAllTypes didn't trigger the check.
26600     /// </summary>
26601     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26602     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26603     public pbc::RepeatedField<uint> RepeatedFixed32 {
26604       get { return repeatedFixed32_; }
26605     }
26606 
26607     /// <summary>Field number for the "repeated_int32" field.</summary>
26608     public const int RepeatedInt32FieldNumber = 13;
26609     private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
26610         = pb::FieldCodec.ForInt32(104);
26611     private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
26612     /// <summary>
26613     /// Check for a varint type, just for good measure.
26614     /// </summary>
26615     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26616     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26617     public pbc::RepeatedField<int> RepeatedInt32 {
26618       get { return repeatedInt32_; }
26619     }
26620 
26621     /// <summary>Field number for the "repeated_fixed64" field.</summary>
26622     public const int RepeatedFixed64FieldNumber = 2046;
26623     private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
26624         = pb::FieldCodec.ForFixed64(16369);
26625     private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
26626     /// <summary>
26627     /// These have two-byte tags.
26628     /// </summary>
26629     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26630     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26631     public pbc::RepeatedField<ulong> RepeatedFixed64 {
26632       get { return repeatedFixed64_; }
26633     }
26634 
26635     /// <summary>Field number for the "repeated_int64" field.</summary>
26636     public const int RepeatedInt64FieldNumber = 2047;
26637     private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
26638         = pb::FieldCodec.ForInt64(16376);
26639     private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
26640     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26641     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26642     public pbc::RepeatedField<long> RepeatedInt64 {
26643       get { return repeatedInt64_; }
26644     }
26645 
26646     /// <summary>Field number for the "repeated_float" field.</summary>
26647     public const int RepeatedFloatFieldNumber = 262142;
26648     private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
26649         = pb::FieldCodec.ForFloat(2097141);
26650     private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
26651     /// <summary>
26652     /// Three byte tags.
26653     /// </summary>
26654     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26655     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26656     public pbc::RepeatedField<float> RepeatedFloat {
26657       get { return repeatedFloat_; }
26658     }
26659 
26660     /// <summary>Field number for the "repeated_uint64" field.</summary>
26661     public const int RepeatedUint64FieldNumber = 262143;
26662     private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
26663         = pb::FieldCodec.ForUInt64(2097144);
26664     private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
26665     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26666     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26667     public pbc::RepeatedField<ulong> RepeatedUint64 {
26668       get { return repeatedUint64_; }
26669     }
26670 
26671     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26672     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)26673     public override bool Equals(object other) {
26674       return Equals(other as TestRepeatedScalarDifferentTagSizes);
26675     }
26676 
26677     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26678     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestRepeatedScalarDifferentTagSizes other)26679     public bool Equals(TestRepeatedScalarDifferentTagSizes other) {
26680       if (ReferenceEquals(other, null)) {
26681         return false;
26682       }
26683       if (ReferenceEquals(other, this)) {
26684         return true;
26685       }
26686       if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
26687       if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
26688       if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
26689       if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
26690       if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
26691       if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
26692       return Equals(_unknownFields, other._unknownFields);
26693     }
26694 
26695     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26696     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()26697     public override int GetHashCode() {
26698       int hash = 1;
26699       hash ^= repeatedFixed32_.GetHashCode();
26700       hash ^= repeatedInt32_.GetHashCode();
26701       hash ^= repeatedFixed64_.GetHashCode();
26702       hash ^= repeatedInt64_.GetHashCode();
26703       hash ^= repeatedFloat_.GetHashCode();
26704       hash ^= repeatedUint64_.GetHashCode();
26705       if (_unknownFields != null) {
26706         hash ^= _unknownFields.GetHashCode();
26707       }
26708       return hash;
26709     }
26710 
26711     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26712     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()26713     public override string ToString() {
26714       return pb::JsonFormatter.ToDiagnosticString(this);
26715     }
26716 
26717     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26718     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)26719     public void WriteTo(pb::CodedOutputStream output) {
26720     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26721       output.WriteRawMessage(this);
26722     #else
26723       repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
26724       repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
26725       repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
26726       repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
26727       repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
26728       repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
26729       if (_unknownFields != null) {
26730         _unknownFields.WriteTo(output);
26731       }
26732     #endif
26733     }
26734 
26735     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26736     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26737     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)26738     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
26739       repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
26740       repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
26741       repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
26742       repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
26743       repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
26744       repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
26745       if (_unknownFields != null) {
26746         _unknownFields.WriteTo(ref output);
26747       }
26748     }
26749     #endif
26750 
26751     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26752     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()26753     public int CalculateSize() {
26754       int size = 0;
26755       size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
26756       size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
26757       size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
26758       size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
26759       size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
26760       size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
26761       if (_unknownFields != null) {
26762         size += _unknownFields.CalculateSize();
26763       }
26764       return size;
26765     }
26766 
26767     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26768     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestRepeatedScalarDifferentTagSizes other)26769     public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
26770       if (other == null) {
26771         return;
26772       }
26773       repeatedFixed32_.Add(other.repeatedFixed32_);
26774       repeatedInt32_.Add(other.repeatedInt32_);
26775       repeatedFixed64_.Add(other.repeatedFixed64_);
26776       repeatedInt64_.Add(other.repeatedInt64_);
26777       repeatedFloat_.Add(other.repeatedFloat_);
26778       repeatedUint64_.Add(other.repeatedUint64_);
26779       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
26780     }
26781 
26782     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26783     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)26784     public void MergeFrom(pb::CodedInputStream input) {
26785     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26786       input.ReadRawMessage(this);
26787     #else
26788       uint tag;
26789       while ((tag = input.ReadTag()) != 0) {
26790         switch(tag) {
26791           default:
26792             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
26793             break;
26794           case 98:
26795           case 101: {
26796             repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
26797             break;
26798           }
26799           case 106:
26800           case 104: {
26801             repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
26802             break;
26803           }
26804           case 16370:
26805           case 16369: {
26806             repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
26807             break;
26808           }
26809           case 16378:
26810           case 16376: {
26811             repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
26812             break;
26813           }
26814           case 2097138:
26815           case 2097141: {
26816             repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
26817             break;
26818           }
26819           case 2097146:
26820           case 2097144: {
26821             repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
26822             break;
26823           }
26824         }
26825       }
26826     #endif
26827     }
26828 
26829     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26830     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26831     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)26832     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
26833       uint tag;
26834       while ((tag = input.ReadTag()) != 0) {
26835         switch(tag) {
26836           default:
26837             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
26838             break;
26839           case 98:
26840           case 101: {
26841             repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
26842             break;
26843           }
26844           case 106:
26845           case 104: {
26846             repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
26847             break;
26848           }
26849           case 16370:
26850           case 16369: {
26851             repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
26852             break;
26853           }
26854           case 16378:
26855           case 16376: {
26856             repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
26857             break;
26858           }
26859           case 2097138:
26860           case 2097141: {
26861             repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
26862             break;
26863           }
26864           case 2097146:
26865           case 2097144: {
26866             repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
26867             break;
26868           }
26869         }
26870       }
26871     }
26872     #endif
26873 
26874   }
26875 
26876   /// <summary>
26877   /// Test that if an optional or required message/group field appears multiple
26878   /// times in the input, they need to be merged.
26879   /// </summary>
26880   public sealed partial class TestParsingMerge : pb::IExtendableMessage<TestParsingMerge>
26881   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26882       , pb::IBufferMessage
26883   #endif
26884   {
26885     private static readonly pb::MessageParser<TestParsingMerge> _parser = new pb::MessageParser<TestParsingMerge>(() => new TestParsingMerge());
26886     private pb::UnknownFieldSet _unknownFields;
26887     private pb::ExtensionSet<TestParsingMerge> _extensions;
26888     private pb::ExtensionSet<TestParsingMerge> _Extensions { get { return _extensions; } }
26889     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26890     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26891     public static pb::MessageParser<TestParsingMerge> Parser { get { return _parser; } }
26892 
26893     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26894     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26895     public static pbr::MessageDescriptor Descriptor {
26896       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[54]; }
26897     }
26898 
26899     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26900     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26901     pbr::MessageDescriptor pb::IMessage.Descriptor {
26902       get { return Descriptor; }
26903     }
26904 
26905     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26906     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestParsingMerge()26907     public TestParsingMerge() {
26908       OnConstruction();
26909     }
26910 
OnConstruction()26911     partial void OnConstruction();
26912 
26913     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26914     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestParsingMerge(TestParsingMerge other)26915     public TestParsingMerge(TestParsingMerge other) : this() {
26916       requiredAllTypes_ = other.requiredAllTypes_ != null ? other.requiredAllTypes_.Clone() : null;
26917       optionalAllTypes_ = other.optionalAllTypes_ != null ? other.optionalAllTypes_.Clone() : null;
26918       repeatedAllTypes_ = other.repeatedAllTypes_.Clone();
26919       optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
26920       repeatedGroup_ = other.repeatedGroup_.Clone();
26921       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
26922       _extensions = pb::ExtensionSet.Clone(other._extensions);
26923     }
26924 
26925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26926     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()26927     public TestParsingMerge Clone() {
26928       return new TestParsingMerge(this);
26929     }
26930 
26931     /// <summary>Field number for the "required_all_types" field.</summary>
26932     public const int RequiredAllTypesFieldNumber = 1;
26933     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes requiredAllTypes_;
26934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26935     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26936     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RequiredAllTypes {
26937       get { return requiredAllTypes_; }
26938       set {
26939         requiredAllTypes_ = value;
26940       }
26941     }
26942 
26943     /// <summary>Field number for the "optional_all_types" field.</summary>
26944     public const int OptionalAllTypesFieldNumber = 2;
26945     private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalAllTypes_;
26946     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26947     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26948     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalAllTypes {
26949       get { return optionalAllTypes_; }
26950       set {
26951         optionalAllTypes_ = value;
26952       }
26953     }
26954 
26955     /// <summary>Field number for the "repeated_all_types" field.</summary>
26956     public const int RepeatedAllTypesFieldNumber = 3;
26957     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_repeatedAllTypes_codec
26958         = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
26959     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> repeatedAllTypes_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
26960     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26961     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26962     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedAllTypes {
26963       get { return repeatedAllTypes_; }
26964     }
26965 
26966     /// <summary>Field number for the "optionalgroup" field.</summary>
26967     public const int OptionalGroupFieldNumber = 10;
26968     private global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup optionalGroup_;
26969     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26970     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26971     public global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup OptionalGroup {
26972       get { return optionalGroup_; }
26973       set {
26974         optionalGroup_ = value;
26975       }
26976     }
26977     /// <summary>Gets whether the optionalgroup field is set</summary>
26978     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26979     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26980     public bool HasOptionalGroup {
26981       get { return optionalGroup_ != null; }
26982     }
26983     /// <summary>Clears the value of the optionalgroup field</summary>
26984     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26985     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalGroup()26986     public void ClearOptionalGroup() {
26987       optionalGroup_ = null;
26988     }
26989 
26990     /// <summary>Field number for the "repeatedgroup" field.</summary>
26991     public const int RepeatedGroupFieldNumber = 20;
26992     private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> _repeated_repeatedGroup_codec
26993         = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser);
26994     private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup>();
26995     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
26996     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
26997     public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> RepeatedGroup {
26998       get { return repeatedGroup_; }
26999     }
27000 
27001     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27002     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)27003     public override bool Equals(object other) {
27004       return Equals(other as TestParsingMerge);
27005     }
27006 
27007     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27008     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestParsingMerge other)27009     public bool Equals(TestParsingMerge other) {
27010       if (ReferenceEquals(other, null)) {
27011         return false;
27012       }
27013       if (ReferenceEquals(other, this)) {
27014         return true;
27015       }
27016       if (!object.Equals(RequiredAllTypes, other.RequiredAllTypes)) return false;
27017       if (!object.Equals(OptionalAllTypes, other.OptionalAllTypes)) return false;
27018       if(!repeatedAllTypes_.Equals(other.repeatedAllTypes_)) return false;
27019       if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
27020       if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
27021       if (!Equals(_extensions, other._extensions)) {
27022         return false;
27023       }
27024       return Equals(_unknownFields, other._unknownFields);
27025     }
27026 
27027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()27029     public override int GetHashCode() {
27030       int hash = 1;
27031       if (requiredAllTypes_ != null) hash ^= RequiredAllTypes.GetHashCode();
27032       if (optionalAllTypes_ != null) hash ^= OptionalAllTypes.GetHashCode();
27033       hash ^= repeatedAllTypes_.GetHashCode();
27034       if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
27035       hash ^= repeatedGroup_.GetHashCode();
27036       if (_extensions != null) {
27037         hash ^= _extensions.GetHashCode();
27038       }
27039       if (_unknownFields != null) {
27040         hash ^= _unknownFields.GetHashCode();
27041       }
27042       return hash;
27043     }
27044 
27045     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27046     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()27047     public override string ToString() {
27048       return pb::JsonFormatter.ToDiagnosticString(this);
27049     }
27050 
27051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27052     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)27053     public void WriteTo(pb::CodedOutputStream output) {
27054     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27055       output.WriteRawMessage(this);
27056     #else
27057       if (requiredAllTypes_ != null) {
27058         output.WriteRawTag(10);
27059         output.WriteMessage(RequiredAllTypes);
27060       }
27061       if (optionalAllTypes_ != null) {
27062         output.WriteRawTag(18);
27063         output.WriteMessage(OptionalAllTypes);
27064       }
27065       repeatedAllTypes_.WriteTo(output, _repeated_repeatedAllTypes_codec);
27066       if (HasOptionalGroup) {
27067         output.WriteRawTag(83);
27068         output.WriteGroup(OptionalGroup);
27069         output.WriteRawTag(84);
27070       }
27071       repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
27072       if (_extensions != null) {
27073         _extensions.WriteTo(output);
27074       }
27075       if (_unknownFields != null) {
27076         _unknownFields.WriteTo(output);
27077       }
27078     #endif
27079     }
27080 
27081     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27082     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27083     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)27084     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27085       if (requiredAllTypes_ != null) {
27086         output.WriteRawTag(10);
27087         output.WriteMessage(RequiredAllTypes);
27088       }
27089       if (optionalAllTypes_ != null) {
27090         output.WriteRawTag(18);
27091         output.WriteMessage(OptionalAllTypes);
27092       }
27093       repeatedAllTypes_.WriteTo(ref output, _repeated_repeatedAllTypes_codec);
27094       if (HasOptionalGroup) {
27095         output.WriteRawTag(83);
27096         output.WriteGroup(OptionalGroup);
27097         output.WriteRawTag(84);
27098       }
27099       repeatedGroup_.WriteTo(ref output, _repeated_repeatedGroup_codec);
27100       if (_extensions != null) {
27101         _extensions.WriteTo(ref output);
27102       }
27103       if (_unknownFields != null) {
27104         _unknownFields.WriteTo(ref output);
27105       }
27106     }
27107     #endif
27108 
27109     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27110     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()27111     public int CalculateSize() {
27112       int size = 0;
27113       if (requiredAllTypes_ != null) {
27114         size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredAllTypes);
27115       }
27116       if (optionalAllTypes_ != null) {
27117         size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalAllTypes);
27118       }
27119       size += repeatedAllTypes_.CalculateSize(_repeated_repeatedAllTypes_codec);
27120       if (HasOptionalGroup) {
27121         size += 2 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
27122       }
27123       size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
27124       if (_extensions != null) {
27125         size += _extensions.CalculateSize();
27126       }
27127       if (_unknownFields != null) {
27128         size += _unknownFields.CalculateSize();
27129       }
27130       return size;
27131     }
27132 
27133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27134     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestParsingMerge other)27135     public void MergeFrom(TestParsingMerge other) {
27136       if (other == null) {
27137         return;
27138       }
27139       if (other.requiredAllTypes_ != null) {
27140         if (requiredAllTypes_ == null) {
27141           RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27142         }
27143         RequiredAllTypes.MergeFrom(other.RequiredAllTypes);
27144       }
27145       if (other.optionalAllTypes_ != null) {
27146         if (optionalAllTypes_ == null) {
27147           OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27148         }
27149         OptionalAllTypes.MergeFrom(other.OptionalAllTypes);
27150       }
27151       repeatedAllTypes_.Add(other.repeatedAllTypes_);
27152       if (other.HasOptionalGroup) {
27153         if (!HasOptionalGroup) {
27154           OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
27155         }
27156         OptionalGroup.MergeFrom(other.OptionalGroup);
27157       }
27158       repeatedGroup_.Add(other.repeatedGroup_);
27159       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
27160       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27161     }
27162 
27163     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27164     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)27165     public void MergeFrom(pb::CodedInputStream input) {
27166     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27167       input.ReadRawMessage(this);
27168     #else
27169       uint tag;
27170       while ((tag = input.ReadTag()) != 0) {
27171         switch(tag) {
27172           default:
27173             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
27174               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27175             }
27176             break;
27177           case 10: {
27178             if (requiredAllTypes_ == null) {
27179               RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27180             }
27181             input.ReadMessage(RequiredAllTypes);
27182             break;
27183           }
27184           case 18: {
27185             if (optionalAllTypes_ == null) {
27186               OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27187             }
27188             input.ReadMessage(OptionalAllTypes);
27189             break;
27190           }
27191           case 26: {
27192             repeatedAllTypes_.AddEntriesFrom(input, _repeated_repeatedAllTypes_codec);
27193             break;
27194           }
27195           case 83: {
27196             if (!HasOptionalGroup) {
27197               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
27198             }
27199             input.ReadGroup(OptionalGroup);
27200             break;
27201           }
27202           case 163: {
27203             repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
27204             break;
27205           }
27206         }
27207       }
27208     #endif
27209     }
27210 
27211     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27213     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)27214     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
27215       uint tag;
27216       while ((tag = input.ReadTag()) != 0) {
27217         switch(tag) {
27218           default:
27219             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
27220               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
27221             }
27222             break;
27223           case 10: {
27224             if (requiredAllTypes_ == null) {
27225               RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27226             }
27227             input.ReadMessage(RequiredAllTypes);
27228             break;
27229           }
27230           case 18: {
27231             if (optionalAllTypes_ == null) {
27232               OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27233             }
27234             input.ReadMessage(OptionalAllTypes);
27235             break;
27236           }
27237           case 26: {
27238             repeatedAllTypes_.AddEntriesFrom(ref input, _repeated_repeatedAllTypes_codec);
27239             break;
27240           }
27241           case 83: {
27242             if (!HasOptionalGroup) {
27243               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
27244             }
27245             input.ReadGroup(OptionalGroup);
27246             break;
27247           }
27248           case 163: {
27249             repeatedGroup_.AddEntriesFrom(ref input, _repeated_repeatedGroup_codec);
27250             break;
27251           }
27252         }
27253       }
27254     }
27255     #endif
27256 
GetExtension(pb::Extension<TestParsingMerge, TValue> extension)27257     public TValue GetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
27258       return pb::ExtensionSet.Get(ref _extensions, extension);
27259     }
GetExtension(pb::RepeatedExtension<TestParsingMerge, TValue> extension)27260     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
27261       return pb::ExtensionSet.Get(ref _extensions, extension);
27262     }
GetOrInitializeExtension(pb::RepeatedExtension<TestParsingMerge, TValue> extension)27263     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
27264       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
27265     }
SetExtension(pb::Extension<TestParsingMerge, TValue> extension, TValue value)27266     public void SetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension, TValue value) {
27267       pb::ExtensionSet.Set(ref _extensions, extension, value);
27268     }
HasExtension(pb::Extension<TestParsingMerge, TValue> extension)27269     public bool HasExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
27270       return pb::ExtensionSet.Has(ref _extensions, extension);
27271     }
ClearExtension(pb::Extension<TestParsingMerge, TValue> extension)27272     public void ClearExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
27273       pb::ExtensionSet.Clear(ref _extensions, extension);
27274     }
ClearExtension(pb::RepeatedExtension<TestParsingMerge, TValue> extension)27275     public void ClearExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
27276       pb::ExtensionSet.Clear(ref _extensions, extension);
27277     }
27278 
27279     #region Nested types
27280     /// <summary>Container for nested types declared in the TestParsingMerge message type.</summary>
27281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27283     public static partial class Types {
27284       /// <summary>
27285       /// RepeatedFieldsGenerator defines matching field types as TestParsingMerge,
27286       /// except that all fields are repeated. In the tests, we will serialize the
27287       /// RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge.
27288       /// Repeated fields in RepeatedFieldsGenerator are expected to be merged into
27289       /// the corresponding required/optional fields in TestParsingMerge.
27290       /// </summary>
27291       public sealed partial class RepeatedFieldsGenerator : pb::IMessage<RepeatedFieldsGenerator>
27292       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27293           , pb::IBufferMessage
27294       #endif
27295       {
27296         private static readonly pb::MessageParser<RepeatedFieldsGenerator> _parser = new pb::MessageParser<RepeatedFieldsGenerator>(() => new RepeatedFieldsGenerator());
27297         private pb::UnknownFieldSet _unknownFields;
27298         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27299         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27300         public static pb::MessageParser<RepeatedFieldsGenerator> Parser { get { return _parser; } }
27301 
27302         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27303         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27304         public static pbr::MessageDescriptor Descriptor {
27305           get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[0]; }
27306         }
27307 
27308         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27309         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27310         pbr::MessageDescriptor pb::IMessage.Descriptor {
27311           get { return Descriptor; }
27312         }
27313 
27314         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27315         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedFieldsGenerator()27316         public RepeatedFieldsGenerator() {
27317           OnConstruction();
27318         }
27319 
OnConstruction()27320         partial void OnConstruction();
27321 
27322         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27323         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedFieldsGenerator(RepeatedFieldsGenerator other)27324         public RepeatedFieldsGenerator(RepeatedFieldsGenerator other) : this() {
27325           field1_ = other.field1_.Clone();
27326           field2_ = other.field2_.Clone();
27327           field3_ = other.field3_.Clone();
27328           group1_ = other.group1_.Clone();
27329           group2_ = other.group2_.Clone();
27330           ext1_ = other.ext1_.Clone();
27331           ext2_ = other.ext2_.Clone();
27332           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
27333         }
27334 
27335         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27336         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()27337         public RepeatedFieldsGenerator Clone() {
27338           return new RepeatedFieldsGenerator(this);
27339         }
27340 
27341         /// <summary>Field number for the "field1" field.</summary>
27342         public const int Field1FieldNumber = 1;
27343         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field1_codec
27344             = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27345         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27346         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27347         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27348         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field1 {
27349           get { return field1_; }
27350         }
27351 
27352         /// <summary>Field number for the "field2" field.</summary>
27353         public const int Field2FieldNumber = 2;
27354         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field2_codec
27355             = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27356         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27357         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27358         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27359         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field2 {
27360           get { return field2_; }
27361         }
27362 
27363         /// <summary>Field number for the "field3" field.</summary>
27364         public const int Field3FieldNumber = 3;
27365         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field3_codec
27366             = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27367         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field3_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27368         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27369         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27370         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field3 {
27371           get { return field3_; }
27372         }
27373 
27374         /// <summary>Field number for the "group1" field.</summary>
27375         public const int Group1FieldNumber = 10;
27376         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> _repeated_group1_codec
27377             = pb::FieldCodec.ForGroup(83, 84, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser);
27378         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> group1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1>();
27379         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27380         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27381         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1 {
27382           get { return group1_; }
27383         }
27384 
27385         /// <summary>Field number for the "group2" field.</summary>
27386         public const int Group2FieldNumber = 20;
27387         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> _repeated_group2_codec
27388             = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser);
27389         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> group2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2>();
27390         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27391         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27392         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2 {
27393           get { return group2_; }
27394         }
27395 
27396         /// <summary>Field number for the "ext1" field.</summary>
27397         public const int Ext1FieldNumber = 1000;
27398         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext1_codec
27399             = pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27400         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27401         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27402         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27403         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext1 {
27404           get { return ext1_; }
27405         }
27406 
27407         /// <summary>Field number for the "ext2" field.</summary>
27408         public const int Ext2FieldNumber = 1001;
27409         private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext2_codec
27410             = pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27411         private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27412         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27413         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27414         public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext2 {
27415           get { return ext2_; }
27416         }
27417 
27418         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27419         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)27420         public override bool Equals(object other) {
27421           return Equals(other as RepeatedFieldsGenerator);
27422         }
27423 
27424         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27425         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(RepeatedFieldsGenerator other)27426         public bool Equals(RepeatedFieldsGenerator other) {
27427           if (ReferenceEquals(other, null)) {
27428             return false;
27429           }
27430           if (ReferenceEquals(other, this)) {
27431             return true;
27432           }
27433           if(!field1_.Equals(other.field1_)) return false;
27434           if(!field2_.Equals(other.field2_)) return false;
27435           if(!field3_.Equals(other.field3_)) return false;
27436           if(!group1_.Equals(other.group1_)) return false;
27437           if(!group2_.Equals(other.group2_)) return false;
27438           if(!ext1_.Equals(other.ext1_)) return false;
27439           if(!ext2_.Equals(other.ext2_)) return false;
27440           return Equals(_unknownFields, other._unknownFields);
27441         }
27442 
27443         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27444         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()27445         public override int GetHashCode() {
27446           int hash = 1;
27447           hash ^= field1_.GetHashCode();
27448           hash ^= field2_.GetHashCode();
27449           hash ^= field3_.GetHashCode();
27450           hash ^= group1_.GetHashCode();
27451           hash ^= group2_.GetHashCode();
27452           hash ^= ext1_.GetHashCode();
27453           hash ^= ext2_.GetHashCode();
27454           if (_unknownFields != null) {
27455             hash ^= _unknownFields.GetHashCode();
27456           }
27457           return hash;
27458         }
27459 
27460         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27461         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()27462         public override string ToString() {
27463           return pb::JsonFormatter.ToDiagnosticString(this);
27464         }
27465 
27466         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27467         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)27468         public void WriteTo(pb::CodedOutputStream output) {
27469         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27470           output.WriteRawMessage(this);
27471         #else
27472           field1_.WriteTo(output, _repeated_field1_codec);
27473           field2_.WriteTo(output, _repeated_field2_codec);
27474           field3_.WriteTo(output, _repeated_field3_codec);
27475           group1_.WriteTo(output, _repeated_group1_codec);
27476           group2_.WriteTo(output, _repeated_group2_codec);
27477           ext1_.WriteTo(output, _repeated_ext1_codec);
27478           ext2_.WriteTo(output, _repeated_ext2_codec);
27479           if (_unknownFields != null) {
27480             _unknownFields.WriteTo(output);
27481           }
27482         #endif
27483         }
27484 
27485         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27486         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27487         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)27488         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27489           field1_.WriteTo(ref output, _repeated_field1_codec);
27490           field2_.WriteTo(ref output, _repeated_field2_codec);
27491           field3_.WriteTo(ref output, _repeated_field3_codec);
27492           group1_.WriteTo(ref output, _repeated_group1_codec);
27493           group2_.WriteTo(ref output, _repeated_group2_codec);
27494           ext1_.WriteTo(ref output, _repeated_ext1_codec);
27495           ext2_.WriteTo(ref output, _repeated_ext2_codec);
27496           if (_unknownFields != null) {
27497             _unknownFields.WriteTo(ref output);
27498           }
27499         }
27500         #endif
27501 
27502         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27503         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()27504         public int CalculateSize() {
27505           int size = 0;
27506           size += field1_.CalculateSize(_repeated_field1_codec);
27507           size += field2_.CalculateSize(_repeated_field2_codec);
27508           size += field3_.CalculateSize(_repeated_field3_codec);
27509           size += group1_.CalculateSize(_repeated_group1_codec);
27510           size += group2_.CalculateSize(_repeated_group2_codec);
27511           size += ext1_.CalculateSize(_repeated_ext1_codec);
27512           size += ext2_.CalculateSize(_repeated_ext2_codec);
27513           if (_unknownFields != null) {
27514             size += _unknownFields.CalculateSize();
27515           }
27516           return size;
27517         }
27518 
27519         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27520         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(RepeatedFieldsGenerator other)27521         public void MergeFrom(RepeatedFieldsGenerator other) {
27522           if (other == null) {
27523             return;
27524           }
27525           field1_.Add(other.field1_);
27526           field2_.Add(other.field2_);
27527           field3_.Add(other.field3_);
27528           group1_.Add(other.group1_);
27529           group2_.Add(other.group2_);
27530           ext1_.Add(other.ext1_);
27531           ext2_.Add(other.ext2_);
27532           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27533         }
27534 
27535         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27536         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)27537         public void MergeFrom(pb::CodedInputStream input) {
27538         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27539           input.ReadRawMessage(this);
27540         #else
27541           uint tag;
27542           while ((tag = input.ReadTag()) != 0) {
27543             switch(tag) {
27544               default:
27545                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27546                 break;
27547               case 10: {
27548                 field1_.AddEntriesFrom(input, _repeated_field1_codec);
27549                 break;
27550               }
27551               case 18: {
27552                 field2_.AddEntriesFrom(input, _repeated_field2_codec);
27553                 break;
27554               }
27555               case 26: {
27556                 field3_.AddEntriesFrom(input, _repeated_field3_codec);
27557                 break;
27558               }
27559               case 83: {
27560                 group1_.AddEntriesFrom(input, _repeated_group1_codec);
27561                 break;
27562               }
27563               case 163: {
27564                 group2_.AddEntriesFrom(input, _repeated_group2_codec);
27565                 break;
27566               }
27567               case 8002: {
27568                 ext1_.AddEntriesFrom(input, _repeated_ext1_codec);
27569                 break;
27570               }
27571               case 8010: {
27572                 ext2_.AddEntriesFrom(input, _repeated_ext2_codec);
27573                 break;
27574               }
27575             }
27576           }
27577         #endif
27578         }
27579 
27580         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27581         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27582         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)27583         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
27584           uint tag;
27585           while ((tag = input.ReadTag()) != 0) {
27586             switch(tag) {
27587               default:
27588                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
27589                 break;
27590               case 10: {
27591                 field1_.AddEntriesFrom(ref input, _repeated_field1_codec);
27592                 break;
27593               }
27594               case 18: {
27595                 field2_.AddEntriesFrom(ref input, _repeated_field2_codec);
27596                 break;
27597               }
27598               case 26: {
27599                 field3_.AddEntriesFrom(ref input, _repeated_field3_codec);
27600                 break;
27601               }
27602               case 83: {
27603                 group1_.AddEntriesFrom(ref input, _repeated_group1_codec);
27604                 break;
27605               }
27606               case 163: {
27607                 group2_.AddEntriesFrom(ref input, _repeated_group2_codec);
27608                 break;
27609               }
27610               case 8002: {
27611                 ext1_.AddEntriesFrom(ref input, _repeated_ext1_codec);
27612                 break;
27613               }
27614               case 8010: {
27615                 ext2_.AddEntriesFrom(ref input, _repeated_ext2_codec);
27616                 break;
27617               }
27618             }
27619           }
27620         }
27621         #endif
27622 
27623         #region Nested types
27624         /// <summary>Container for nested types declared in the RepeatedFieldsGenerator message type.</summary>
27625         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27626         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27627         public static partial class Types {
27628           public sealed partial class Group1 : pb::IMessage<Group1>
27629           #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27630               , pb::IBufferMessage
27631           #endif
27632           {
27633             private static readonly pb::MessageParser<Group1> _parser = new pb::MessageParser<Group1>(() => new Group1());
27634             private pb::UnknownFieldSet _unknownFields;
27635             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27636             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27637             public static pb::MessageParser<Group1> Parser { get { return _parser; } }
27638 
27639             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27640             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27641             public static pbr::MessageDescriptor Descriptor {
27642               get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[0]; }
27643             }
27644 
27645             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27646             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27647             pbr::MessageDescriptor pb::IMessage.Descriptor {
27648               get { return Descriptor; }
27649             }
27650 
27651             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27652             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Group1()27653             public Group1() {
27654               OnConstruction();
27655             }
27656 
OnConstruction()27657             partial void OnConstruction();
27658 
27659             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27660             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Group1(Group1 other)27661             public Group1(Group1 other) : this() {
27662               field1_ = other.field1_ != null ? other.field1_.Clone() : null;
27663               _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
27664             }
27665 
27666             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27667             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()27668             public Group1 Clone() {
27669               return new Group1(this);
27670             }
27671 
27672             /// <summary>Field number for the "field1" field.</summary>
27673             public const int Field1FieldNumber = 11;
27674             private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
27675             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27676             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27677             public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
27678               get { return field1_; }
27679               set {
27680                 field1_ = value;
27681               }
27682             }
27683 
27684             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27685             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)27686             public override bool Equals(object other) {
27687               return Equals(other as Group1);
27688             }
27689 
27690             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27691             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Group1 other)27692             public bool Equals(Group1 other) {
27693               if (ReferenceEquals(other, null)) {
27694                 return false;
27695               }
27696               if (ReferenceEquals(other, this)) {
27697                 return true;
27698               }
27699               if (!object.Equals(Field1, other.Field1)) return false;
27700               return Equals(_unknownFields, other._unknownFields);
27701             }
27702 
27703             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27704             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()27705             public override int GetHashCode() {
27706               int hash = 1;
27707               if (field1_ != null) hash ^= Field1.GetHashCode();
27708               if (_unknownFields != null) {
27709                 hash ^= _unknownFields.GetHashCode();
27710               }
27711               return hash;
27712             }
27713 
27714             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27715             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()27716             public override string ToString() {
27717               return pb::JsonFormatter.ToDiagnosticString(this);
27718             }
27719 
27720             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27721             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)27722             public void WriteTo(pb::CodedOutputStream output) {
27723             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27724               output.WriteRawMessage(this);
27725             #else
27726               if (field1_ != null) {
27727                 output.WriteRawTag(90);
27728                 output.WriteMessage(Field1);
27729               }
27730               if (_unknownFields != null) {
27731                 _unknownFields.WriteTo(output);
27732               }
27733             #endif
27734             }
27735 
27736             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27737             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27738             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)27739             void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27740               if (field1_ != null) {
27741                 output.WriteRawTag(90);
27742                 output.WriteMessage(Field1);
27743               }
27744               if (_unknownFields != null) {
27745                 _unknownFields.WriteTo(ref output);
27746               }
27747             }
27748             #endif
27749 
27750             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27751             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()27752             public int CalculateSize() {
27753               int size = 0;
27754               if (field1_ != null) {
27755                 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Field1);
27756               }
27757               if (_unknownFields != null) {
27758                 size += _unknownFields.CalculateSize();
27759               }
27760               return size;
27761             }
27762 
27763             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27764             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Group1 other)27765             public void MergeFrom(Group1 other) {
27766               if (other == null) {
27767                 return;
27768               }
27769               if (other.field1_ != null) {
27770                 if (field1_ == null) {
27771                   Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27772                 }
27773                 Field1.MergeFrom(other.Field1);
27774               }
27775               _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27776             }
27777 
27778             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27779             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)27780             public void MergeFrom(pb::CodedInputStream input) {
27781             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27782               input.ReadRawMessage(this);
27783             #else
27784               uint tag;
27785               while ((tag = input.ReadTag()) != 0) {
27786                 switch(tag) {
27787                   case 84:
27788                     return;
27789                   default:
27790                     _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27791                     break;
27792                   case 90: {
27793                     if (field1_ == null) {
27794                       Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27795                     }
27796                     input.ReadMessage(Field1);
27797                     break;
27798                   }
27799                 }
27800               }
27801             #endif
27802             }
27803 
27804             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27805             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27806             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)27807             void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
27808               uint tag;
27809               while ((tag = input.ReadTag()) != 0) {
27810                 switch(tag) {
27811                   case 84:
27812                     return;
27813                   default:
27814                     _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
27815                     break;
27816                   case 90: {
27817                     if (field1_ == null) {
27818                       Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27819                     }
27820                     input.ReadMessage(Field1);
27821                     break;
27822                   }
27823                 }
27824               }
27825             }
27826             #endif
27827 
27828           }
27829 
27830           public sealed partial class Group2 : pb::IMessage<Group2>
27831           #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27832               , pb::IBufferMessage
27833           #endif
27834           {
27835             private static readonly pb::MessageParser<Group2> _parser = new pb::MessageParser<Group2>(() => new Group2());
27836             private pb::UnknownFieldSet _unknownFields;
27837             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27838             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27839             public static pb::MessageParser<Group2> Parser { get { return _parser; } }
27840 
27841             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27842             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27843             public static pbr::MessageDescriptor Descriptor {
27844               get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[1]; }
27845             }
27846 
27847             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27848             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27849             pbr::MessageDescriptor pb::IMessage.Descriptor {
27850               get { return Descriptor; }
27851             }
27852 
27853             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27854             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Group2()27855             public Group2() {
27856               OnConstruction();
27857             }
27858 
OnConstruction()27859             partial void OnConstruction();
27860 
27861             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27862             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Group2(Group2 other)27863             public Group2(Group2 other) : this() {
27864               field1_ = other.field1_ != null ? other.field1_.Clone() : null;
27865               _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
27866             }
27867 
27868             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27869             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()27870             public Group2 Clone() {
27871               return new Group2(this);
27872             }
27873 
27874             /// <summary>Field number for the "field1" field.</summary>
27875             public const int Field1FieldNumber = 21;
27876             private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
27877             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27878             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
27879             public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
27880               get { return field1_; }
27881               set {
27882                 field1_ = value;
27883               }
27884             }
27885 
27886             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27887             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)27888             public override bool Equals(object other) {
27889               return Equals(other as Group2);
27890             }
27891 
27892             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27893             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Group2 other)27894             public bool Equals(Group2 other) {
27895               if (ReferenceEquals(other, null)) {
27896                 return false;
27897               }
27898               if (ReferenceEquals(other, this)) {
27899                 return true;
27900               }
27901               if (!object.Equals(Field1, other.Field1)) return false;
27902               return Equals(_unknownFields, other._unknownFields);
27903             }
27904 
27905             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27906             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()27907             public override int GetHashCode() {
27908               int hash = 1;
27909               if (field1_ != null) hash ^= Field1.GetHashCode();
27910               if (_unknownFields != null) {
27911                 hash ^= _unknownFields.GetHashCode();
27912               }
27913               return hash;
27914             }
27915 
27916             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27917             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()27918             public override string ToString() {
27919               return pb::JsonFormatter.ToDiagnosticString(this);
27920             }
27921 
27922             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27923             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)27924             public void WriteTo(pb::CodedOutputStream output) {
27925             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27926               output.WriteRawMessage(this);
27927             #else
27928               if (field1_ != null) {
27929                 output.WriteRawTag(170, 1);
27930                 output.WriteMessage(Field1);
27931               }
27932               if (_unknownFields != null) {
27933                 _unknownFields.WriteTo(output);
27934               }
27935             #endif
27936             }
27937 
27938             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27939             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27940             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)27941             void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27942               if (field1_ != null) {
27943                 output.WriteRawTag(170, 1);
27944                 output.WriteMessage(Field1);
27945               }
27946               if (_unknownFields != null) {
27947                 _unknownFields.WriteTo(ref output);
27948               }
27949             }
27950             #endif
27951 
27952             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27953             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()27954             public int CalculateSize() {
27955               int size = 0;
27956               if (field1_ != null) {
27957                 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Field1);
27958               }
27959               if (_unknownFields != null) {
27960                 size += _unknownFields.CalculateSize();
27961               }
27962               return size;
27963             }
27964 
27965             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27966             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Group2 other)27967             public void MergeFrom(Group2 other) {
27968               if (other == null) {
27969                 return;
27970               }
27971               if (other.field1_ != null) {
27972                 if (field1_ == null) {
27973                   Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27974                 }
27975                 Field1.MergeFrom(other.Field1);
27976               }
27977               _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27978             }
27979 
27980             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
27981             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)27982             public void MergeFrom(pb::CodedInputStream input) {
27983             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27984               input.ReadRawMessage(this);
27985             #else
27986               uint tag;
27987               while ((tag = input.ReadTag()) != 0) {
27988                 switch(tag) {
27989                   case 164:
27990                     return;
27991                   default:
27992                     _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27993                     break;
27994                   case 170: {
27995                     if (field1_ == null) {
27996                       Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27997                     }
27998                     input.ReadMessage(Field1);
27999                     break;
28000                   }
28001                 }
28002               }
28003             #endif
28004             }
28005 
28006             #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28007             [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28008             [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28009             void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
28010               uint tag;
28011               while ((tag = input.ReadTag()) != 0) {
28012                 switch(tag) {
28013                   case 164:
28014                     return;
28015                   default:
28016                     _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
28017                     break;
28018                   case 170: {
28019                     if (field1_ == null) {
28020                       Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28021                     }
28022                     input.ReadMessage(Field1);
28023                     break;
28024                   }
28025                 }
28026               }
28027             }
28028             #endif
28029 
28030           }
28031 
28032         }
28033         #endregion
28034 
28035       }
28036 
28037       public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
28038       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28039           , pb::IBufferMessage
28040       #endif
28041       {
28042         private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
28043         private pb::UnknownFieldSet _unknownFields;
28044         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28045         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28046         public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
28047 
28048         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28049         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28050         public static pbr::MessageDescriptor Descriptor {
28051           get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[1]; }
28052         }
28053 
28054         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28055         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28056         pbr::MessageDescriptor pb::IMessage.Descriptor {
28057           get { return Descriptor; }
28058         }
28059 
28060         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28061         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup()28062         public OptionalGroup() {
28063           OnConstruction();
28064         }
28065 
OnConstruction()28066         partial void OnConstruction();
28067 
28068         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28069         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup(OptionalGroup other)28070         public OptionalGroup(OptionalGroup other) : this() {
28071           optionalGroupAllTypes_ = other.optionalGroupAllTypes_ != null ? other.optionalGroupAllTypes_.Clone() : null;
28072           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28073         }
28074 
28075         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28076         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()28077         public OptionalGroup Clone() {
28078           return new OptionalGroup(this);
28079         }
28080 
28081         /// <summary>Field number for the "optional_group_all_types" field.</summary>
28082         public const int OptionalGroupAllTypesFieldNumber = 11;
28083         private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalGroupAllTypes_;
28084         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28085         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28086         public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalGroupAllTypes {
28087           get { return optionalGroupAllTypes_; }
28088           set {
28089             optionalGroupAllTypes_ = value;
28090           }
28091         }
28092 
28093         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28094         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)28095         public override bool Equals(object other) {
28096           return Equals(other as OptionalGroup);
28097         }
28098 
28099         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28100         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup other)28101         public bool Equals(OptionalGroup other) {
28102           if (ReferenceEquals(other, null)) {
28103             return false;
28104           }
28105           if (ReferenceEquals(other, this)) {
28106             return true;
28107           }
28108           if (!object.Equals(OptionalGroupAllTypes, other.OptionalGroupAllTypes)) return false;
28109           return Equals(_unknownFields, other._unknownFields);
28110         }
28111 
28112         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28113         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()28114         public override int GetHashCode() {
28115           int hash = 1;
28116           if (optionalGroupAllTypes_ != null) hash ^= OptionalGroupAllTypes.GetHashCode();
28117           if (_unknownFields != null) {
28118             hash ^= _unknownFields.GetHashCode();
28119           }
28120           return hash;
28121         }
28122 
28123         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28124         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()28125         public override string ToString() {
28126           return pb::JsonFormatter.ToDiagnosticString(this);
28127         }
28128 
28129         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28130         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)28131         public void WriteTo(pb::CodedOutputStream output) {
28132         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28133           output.WriteRawMessage(this);
28134         #else
28135           if (optionalGroupAllTypes_ != null) {
28136             output.WriteRawTag(90);
28137             output.WriteMessage(OptionalGroupAllTypes);
28138           }
28139           if (_unknownFields != null) {
28140             _unknownFields.WriteTo(output);
28141           }
28142         #endif
28143         }
28144 
28145         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28146         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28147         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28148         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28149           if (optionalGroupAllTypes_ != null) {
28150             output.WriteRawTag(90);
28151             output.WriteMessage(OptionalGroupAllTypes);
28152           }
28153           if (_unknownFields != null) {
28154             _unknownFields.WriteTo(ref output);
28155           }
28156         }
28157         #endif
28158 
28159         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28160         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()28161         public int CalculateSize() {
28162           int size = 0;
28163           if (optionalGroupAllTypes_ != null) {
28164             size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalGroupAllTypes);
28165           }
28166           if (_unknownFields != null) {
28167             size += _unknownFields.CalculateSize();
28168           }
28169           return size;
28170         }
28171 
28172         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28173         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup other)28174         public void MergeFrom(OptionalGroup other) {
28175           if (other == null) {
28176             return;
28177           }
28178           if (other.optionalGroupAllTypes_ != null) {
28179             if (optionalGroupAllTypes_ == null) {
28180               OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28181             }
28182             OptionalGroupAllTypes.MergeFrom(other.OptionalGroupAllTypes);
28183           }
28184           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28185         }
28186 
28187         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28188         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)28189         public void MergeFrom(pb::CodedInputStream input) {
28190         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28191           input.ReadRawMessage(this);
28192         #else
28193           uint tag;
28194           while ((tag = input.ReadTag()) != 0) {
28195             switch(tag) {
28196               case 84:
28197                 return;
28198               default:
28199                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28200                 break;
28201               case 90: {
28202                 if (optionalGroupAllTypes_ == null) {
28203                   OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28204                 }
28205                 input.ReadMessage(OptionalGroupAllTypes);
28206                 break;
28207               }
28208             }
28209           }
28210         #endif
28211         }
28212 
28213         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28214         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28215         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28216         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
28217           uint tag;
28218           while ((tag = input.ReadTag()) != 0) {
28219             switch(tag) {
28220               case 84:
28221                 return;
28222               default:
28223                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
28224                 break;
28225               case 90: {
28226                 if (optionalGroupAllTypes_ == null) {
28227                   OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28228                 }
28229                 input.ReadMessage(OptionalGroupAllTypes);
28230                 break;
28231               }
28232             }
28233           }
28234         }
28235         #endif
28236 
28237       }
28238 
28239       public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup>
28240       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28241           , pb::IBufferMessage
28242       #endif
28243       {
28244         private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
28245         private pb::UnknownFieldSet _unknownFields;
28246         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28247         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28248         public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
28249 
28250         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28251         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28252         public static pbr::MessageDescriptor Descriptor {
28253           get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[2]; }
28254         }
28255 
28256         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28257         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28258         pbr::MessageDescriptor pb::IMessage.Descriptor {
28259           get { return Descriptor; }
28260         }
28261 
28262         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28263         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedGroup()28264         public RepeatedGroup() {
28265           OnConstruction();
28266         }
28267 
OnConstruction()28268         partial void OnConstruction();
28269 
28270         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28271         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
RepeatedGroup(RepeatedGroup other)28272         public RepeatedGroup(RepeatedGroup other) : this() {
28273           repeatedGroupAllTypes_ = other.repeatedGroupAllTypes_ != null ? other.repeatedGroupAllTypes_.Clone() : null;
28274           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28275         }
28276 
28277         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28278         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()28279         public RepeatedGroup Clone() {
28280           return new RepeatedGroup(this);
28281         }
28282 
28283         /// <summary>Field number for the "repeated_group_all_types" field.</summary>
28284         public const int RepeatedGroupAllTypesFieldNumber = 21;
28285         private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes repeatedGroupAllTypes_;
28286         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28287         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28288         public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RepeatedGroupAllTypes {
28289           get { return repeatedGroupAllTypes_; }
28290           set {
28291             repeatedGroupAllTypes_ = value;
28292           }
28293         }
28294 
28295         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28296         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)28297         public override bool Equals(object other) {
28298           return Equals(other as RepeatedGroup);
28299         }
28300 
28301         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28302         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(RepeatedGroup other)28303         public bool Equals(RepeatedGroup other) {
28304           if (ReferenceEquals(other, null)) {
28305             return false;
28306           }
28307           if (ReferenceEquals(other, this)) {
28308             return true;
28309           }
28310           if (!object.Equals(RepeatedGroupAllTypes, other.RepeatedGroupAllTypes)) return false;
28311           return Equals(_unknownFields, other._unknownFields);
28312         }
28313 
28314         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28315         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()28316         public override int GetHashCode() {
28317           int hash = 1;
28318           if (repeatedGroupAllTypes_ != null) hash ^= RepeatedGroupAllTypes.GetHashCode();
28319           if (_unknownFields != null) {
28320             hash ^= _unknownFields.GetHashCode();
28321           }
28322           return hash;
28323         }
28324 
28325         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28326         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()28327         public override string ToString() {
28328           return pb::JsonFormatter.ToDiagnosticString(this);
28329         }
28330 
28331         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28332         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)28333         public void WriteTo(pb::CodedOutputStream output) {
28334         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28335           output.WriteRawMessage(this);
28336         #else
28337           if (repeatedGroupAllTypes_ != null) {
28338             output.WriteRawTag(170, 1);
28339             output.WriteMessage(RepeatedGroupAllTypes);
28340           }
28341           if (_unknownFields != null) {
28342             _unknownFields.WriteTo(output);
28343           }
28344         #endif
28345         }
28346 
28347         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28348         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28349         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28350         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28351           if (repeatedGroupAllTypes_ != null) {
28352             output.WriteRawTag(170, 1);
28353             output.WriteMessage(RepeatedGroupAllTypes);
28354           }
28355           if (_unknownFields != null) {
28356             _unknownFields.WriteTo(ref output);
28357           }
28358         }
28359         #endif
28360 
28361         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28362         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()28363         public int CalculateSize() {
28364           int size = 0;
28365           if (repeatedGroupAllTypes_ != null) {
28366             size += 2 + pb::CodedOutputStream.ComputeMessageSize(RepeatedGroupAllTypes);
28367           }
28368           if (_unknownFields != null) {
28369             size += _unknownFields.CalculateSize();
28370           }
28371           return size;
28372         }
28373 
28374         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28375         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(RepeatedGroup other)28376         public void MergeFrom(RepeatedGroup other) {
28377           if (other == null) {
28378             return;
28379           }
28380           if (other.repeatedGroupAllTypes_ != null) {
28381             if (repeatedGroupAllTypes_ == null) {
28382               RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28383             }
28384             RepeatedGroupAllTypes.MergeFrom(other.RepeatedGroupAllTypes);
28385           }
28386           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28387         }
28388 
28389         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28390         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)28391         public void MergeFrom(pb::CodedInputStream input) {
28392         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28393           input.ReadRawMessage(this);
28394         #else
28395           uint tag;
28396           while ((tag = input.ReadTag()) != 0) {
28397             switch(tag) {
28398               case 164:
28399                 return;
28400               default:
28401                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28402                 break;
28403               case 170: {
28404                 if (repeatedGroupAllTypes_ == null) {
28405                   RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28406                 }
28407                 input.ReadMessage(RepeatedGroupAllTypes);
28408                 break;
28409               }
28410             }
28411           }
28412         #endif
28413         }
28414 
28415         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28416         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28417         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28418         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
28419           uint tag;
28420           while ((tag = input.ReadTag()) != 0) {
28421             switch(tag) {
28422               case 164:
28423                 return;
28424               default:
28425                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
28426                 break;
28427               case 170: {
28428                 if (repeatedGroupAllTypes_ == null) {
28429                   RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28430                 }
28431                 input.ReadMessage(RepeatedGroupAllTypes);
28432                 break;
28433               }
28434             }
28435           }
28436         }
28437         #endif
28438 
28439       }
28440 
28441     }
28442     #endregion
28443 
28444     #region Extensions
28445     /// <summary>Container for extensions for other messages declared in the TestParsingMerge message type.</summary>
28446     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28447     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28448     public static partial class Extensions {
28449       public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> OptionalExt =
28450         new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(1000, pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
28451       public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedExt =
28452         new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(1001, pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
28453     }
28454     #endregion
28455 
28456   }
28457 
28458   public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage>
28459   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28460       , pb::IBufferMessage
28461   #endif
28462   {
28463     private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage());
28464     private pb::UnknownFieldSet _unknownFields;
28465     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28466     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28467     public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } }
28468 
28469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28471     public static pbr::MessageDescriptor Descriptor {
28472       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[55]; }
28473     }
28474 
28475     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28476     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28477     pbr::MessageDescriptor pb::IMessage.Descriptor {
28478       get { return Descriptor; }
28479     }
28480 
28481     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28482     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestCommentInjectionMessage()28483     public TestCommentInjectionMessage() {
28484       OnConstruction();
28485     }
28486 
OnConstruction()28487     partial void OnConstruction();
28488 
28489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28490     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestCommentInjectionMessage(TestCommentInjectionMessage other)28491     public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() {
28492       a_ = other.a_;
28493       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28494     }
28495 
28496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28497     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()28498     public TestCommentInjectionMessage Clone() {
28499       return new TestCommentInjectionMessage(this);
28500     }
28501 
28502     /// <summary>Field number for the "a" field.</summary>
28503     public const int AFieldNumber = 1;
28504     private readonly static string ADefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Ki8gPC0gTmVpdGhlciBzaG91bGQgdGhpcy4="), 0, 26);
28505 
28506     private string a_;
28507     /// <summary>
28508     /// */ &lt;- This should not close the generated doc comment
28509     /// </summary>
28510     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28511     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28512     public string A {
28513       get { return a_ ?? ADefaultValue; }
28514       set {
28515         a_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
28516       }
28517     }
28518     /// <summary>Gets whether the "a" field is set</summary>
28519     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28520     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28521     public bool HasA {
28522       get { return a_ != null; }
28523     }
28524     /// <summary>Clears the value of the "a" field</summary>
28525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28526     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()28527     public void ClearA() {
28528       a_ = null;
28529     }
28530 
28531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)28533     public override bool Equals(object other) {
28534       return Equals(other as TestCommentInjectionMessage);
28535     }
28536 
28537     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28538     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestCommentInjectionMessage other)28539     public bool Equals(TestCommentInjectionMessage other) {
28540       if (ReferenceEquals(other, null)) {
28541         return false;
28542       }
28543       if (ReferenceEquals(other, this)) {
28544         return true;
28545       }
28546       if (A != other.A) return false;
28547       return Equals(_unknownFields, other._unknownFields);
28548     }
28549 
28550     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28551     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()28552     public override int GetHashCode() {
28553       int hash = 1;
28554       if (HasA) hash ^= A.GetHashCode();
28555       if (_unknownFields != null) {
28556         hash ^= _unknownFields.GetHashCode();
28557       }
28558       return hash;
28559     }
28560 
28561     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28562     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()28563     public override string ToString() {
28564       return pb::JsonFormatter.ToDiagnosticString(this);
28565     }
28566 
28567     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28568     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)28569     public void WriteTo(pb::CodedOutputStream output) {
28570     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28571       output.WriteRawMessage(this);
28572     #else
28573       if (HasA) {
28574         output.WriteRawTag(10);
28575         output.WriteString(A);
28576       }
28577       if (_unknownFields != null) {
28578         _unknownFields.WriteTo(output);
28579       }
28580     #endif
28581     }
28582 
28583     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28584     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28585     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28586     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28587       if (HasA) {
28588         output.WriteRawTag(10);
28589         output.WriteString(A);
28590       }
28591       if (_unknownFields != null) {
28592         _unknownFields.WriteTo(ref output);
28593       }
28594     }
28595     #endif
28596 
28597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28598     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()28599     public int CalculateSize() {
28600       int size = 0;
28601       if (HasA) {
28602         size += 1 + pb::CodedOutputStream.ComputeStringSize(A);
28603       }
28604       if (_unknownFields != null) {
28605         size += _unknownFields.CalculateSize();
28606       }
28607       return size;
28608     }
28609 
28610     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28611     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestCommentInjectionMessage other)28612     public void MergeFrom(TestCommentInjectionMessage other) {
28613       if (other == null) {
28614         return;
28615       }
28616       if (other.HasA) {
28617         A = other.A;
28618       }
28619       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28620     }
28621 
28622     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28623     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)28624     public void MergeFrom(pb::CodedInputStream input) {
28625     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28626       input.ReadRawMessage(this);
28627     #else
28628       uint tag;
28629       while ((tag = input.ReadTag()) != 0) {
28630         switch(tag) {
28631           default:
28632             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28633             break;
28634           case 10: {
28635             A = input.ReadString();
28636             break;
28637           }
28638         }
28639       }
28640     #endif
28641     }
28642 
28643     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28645     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28646     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
28647       uint tag;
28648       while ((tag = input.ReadTag()) != 0) {
28649         switch(tag) {
28650           default:
28651             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
28652             break;
28653           case 10: {
28654             A = input.ReadString();
28655             break;
28656           }
28657         }
28658       }
28659     }
28660     #endif
28661 
28662   }
28663 
28664   /// <summary>
28665   /// Test that RPC services work.
28666   /// </summary>
28667   public sealed partial class FooRequest : pb::IMessage<FooRequest>
28668   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28669       , pb::IBufferMessage
28670   #endif
28671   {
28672     private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest());
28673     private pb::UnknownFieldSet _unknownFields;
28674     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28675     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28676     public static pb::MessageParser<FooRequest> Parser { get { return _parser; } }
28677 
28678     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28679     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28680     public static pbr::MessageDescriptor Descriptor {
28681       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[56]; }
28682     }
28683 
28684     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28685     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28686     pbr::MessageDescriptor pb::IMessage.Descriptor {
28687       get { return Descriptor; }
28688     }
28689 
28690     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28691     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooRequest()28692     public FooRequest() {
28693       OnConstruction();
28694     }
28695 
OnConstruction()28696     partial void OnConstruction();
28697 
28698     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28699     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooRequest(FooRequest other)28700     public FooRequest(FooRequest other) : this() {
28701       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28702     }
28703 
28704     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28705     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()28706     public FooRequest Clone() {
28707       return new FooRequest(this);
28708     }
28709 
28710     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28711     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)28712     public override bool Equals(object other) {
28713       return Equals(other as FooRequest);
28714     }
28715 
28716     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28717     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FooRequest other)28718     public bool Equals(FooRequest other) {
28719       if (ReferenceEquals(other, null)) {
28720         return false;
28721       }
28722       if (ReferenceEquals(other, this)) {
28723         return true;
28724       }
28725       return Equals(_unknownFields, other._unknownFields);
28726     }
28727 
28728     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28729     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()28730     public override int GetHashCode() {
28731       int hash = 1;
28732       if (_unknownFields != null) {
28733         hash ^= _unknownFields.GetHashCode();
28734       }
28735       return hash;
28736     }
28737 
28738     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28739     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()28740     public override string ToString() {
28741       return pb::JsonFormatter.ToDiagnosticString(this);
28742     }
28743 
28744     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28745     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)28746     public void WriteTo(pb::CodedOutputStream output) {
28747     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28748       output.WriteRawMessage(this);
28749     #else
28750       if (_unknownFields != null) {
28751         _unknownFields.WriteTo(output);
28752       }
28753     #endif
28754     }
28755 
28756     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28757     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28758     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28759     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28760       if (_unknownFields != null) {
28761         _unknownFields.WriteTo(ref output);
28762       }
28763     }
28764     #endif
28765 
28766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28767     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()28768     public int CalculateSize() {
28769       int size = 0;
28770       if (_unknownFields != null) {
28771         size += _unknownFields.CalculateSize();
28772       }
28773       return size;
28774     }
28775 
28776     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28777     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FooRequest other)28778     public void MergeFrom(FooRequest other) {
28779       if (other == null) {
28780         return;
28781       }
28782       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28783     }
28784 
28785     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28786     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)28787     public void MergeFrom(pb::CodedInputStream input) {
28788     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28789       input.ReadRawMessage(this);
28790     #else
28791       uint tag;
28792       while ((tag = input.ReadTag()) != 0) {
28793         switch(tag) {
28794           default:
28795             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28796             break;
28797         }
28798       }
28799     #endif
28800     }
28801 
28802     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28803     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28804     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28805     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
28806       uint tag;
28807       while ((tag = input.ReadTag()) != 0) {
28808         switch(tag) {
28809           default:
28810             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
28811             break;
28812         }
28813       }
28814     }
28815     #endif
28816 
28817   }
28818 
28819   public sealed partial class FooResponse : pb::IMessage<FooResponse>
28820   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28821       , pb::IBufferMessage
28822   #endif
28823   {
28824     private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse());
28825     private pb::UnknownFieldSet _unknownFields;
28826     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28827     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28828     public static pb::MessageParser<FooResponse> Parser { get { return _parser; } }
28829 
28830     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28831     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28832     public static pbr::MessageDescriptor Descriptor {
28833       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[57]; }
28834     }
28835 
28836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28837     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28838     pbr::MessageDescriptor pb::IMessage.Descriptor {
28839       get { return Descriptor; }
28840     }
28841 
28842     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28843     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooResponse()28844     public FooResponse() {
28845       OnConstruction();
28846     }
28847 
OnConstruction()28848     partial void OnConstruction();
28849 
28850     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28851     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooResponse(FooResponse other)28852     public FooResponse(FooResponse other) : this() {
28853       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28854     }
28855 
28856     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28857     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()28858     public FooResponse Clone() {
28859       return new FooResponse(this);
28860     }
28861 
28862     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28863     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)28864     public override bool Equals(object other) {
28865       return Equals(other as FooResponse);
28866     }
28867 
28868     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28869     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FooResponse other)28870     public bool Equals(FooResponse other) {
28871       if (ReferenceEquals(other, null)) {
28872         return false;
28873       }
28874       if (ReferenceEquals(other, this)) {
28875         return true;
28876       }
28877       return Equals(_unknownFields, other._unknownFields);
28878     }
28879 
28880     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28881     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()28882     public override int GetHashCode() {
28883       int hash = 1;
28884       if (_unknownFields != null) {
28885         hash ^= _unknownFields.GetHashCode();
28886       }
28887       return hash;
28888     }
28889 
28890     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28891     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()28892     public override string ToString() {
28893       return pb::JsonFormatter.ToDiagnosticString(this);
28894     }
28895 
28896     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28897     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)28898     public void WriteTo(pb::CodedOutputStream output) {
28899     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28900       output.WriteRawMessage(this);
28901     #else
28902       if (_unknownFields != null) {
28903         _unknownFields.WriteTo(output);
28904       }
28905     #endif
28906     }
28907 
28908     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28909     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28910     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28911     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28912       if (_unknownFields != null) {
28913         _unknownFields.WriteTo(ref output);
28914       }
28915     }
28916     #endif
28917 
28918     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28919     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()28920     public int CalculateSize() {
28921       int size = 0;
28922       if (_unknownFields != null) {
28923         size += _unknownFields.CalculateSize();
28924       }
28925       return size;
28926     }
28927 
28928     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28929     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FooResponse other)28930     public void MergeFrom(FooResponse other) {
28931       if (other == null) {
28932         return;
28933       }
28934       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28935     }
28936 
28937     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28938     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)28939     public void MergeFrom(pb::CodedInputStream input) {
28940     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28941       input.ReadRawMessage(this);
28942     #else
28943       uint tag;
28944       while ((tag = input.ReadTag()) != 0) {
28945         switch(tag) {
28946           default:
28947             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28948             break;
28949         }
28950       }
28951     #endif
28952     }
28953 
28954     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28956     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28957     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
28958       uint tag;
28959       while ((tag = input.ReadTag()) != 0) {
28960         switch(tag) {
28961           default:
28962             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
28963             break;
28964         }
28965       }
28966     }
28967     #endif
28968 
28969   }
28970 
28971   public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage>
28972   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28973       , pb::IBufferMessage
28974   #endif
28975   {
28976     private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage());
28977     private pb::UnknownFieldSet _unknownFields;
28978     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28979     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28980     public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } }
28981 
28982     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28983     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28984     public static pbr::MessageDescriptor Descriptor {
28985       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[58]; }
28986     }
28987 
28988     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28989     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
28990     pbr::MessageDescriptor pb::IMessage.Descriptor {
28991       get { return Descriptor; }
28992     }
28993 
28994     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
28995     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooClientMessage()28996     public FooClientMessage() {
28997       OnConstruction();
28998     }
28999 
OnConstruction()29000     partial void OnConstruction();
29001 
29002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29003     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooClientMessage(FooClientMessage other)29004     public FooClientMessage(FooClientMessage other) : this() {
29005       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29006     }
29007 
29008     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29009     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()29010     public FooClientMessage Clone() {
29011       return new FooClientMessage(this);
29012     }
29013 
29014     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29015     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)29016     public override bool Equals(object other) {
29017       return Equals(other as FooClientMessage);
29018     }
29019 
29020     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29021     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FooClientMessage other)29022     public bool Equals(FooClientMessage other) {
29023       if (ReferenceEquals(other, null)) {
29024         return false;
29025       }
29026       if (ReferenceEquals(other, this)) {
29027         return true;
29028       }
29029       return Equals(_unknownFields, other._unknownFields);
29030     }
29031 
29032     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29033     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()29034     public override int GetHashCode() {
29035       int hash = 1;
29036       if (_unknownFields != null) {
29037         hash ^= _unknownFields.GetHashCode();
29038       }
29039       return hash;
29040     }
29041 
29042     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29043     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()29044     public override string ToString() {
29045       return pb::JsonFormatter.ToDiagnosticString(this);
29046     }
29047 
29048     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29049     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)29050     public void WriteTo(pb::CodedOutputStream output) {
29051     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29052       output.WriteRawMessage(this);
29053     #else
29054       if (_unknownFields != null) {
29055         _unknownFields.WriteTo(output);
29056       }
29057     #endif
29058     }
29059 
29060     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29061     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29062     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29063     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29064       if (_unknownFields != null) {
29065         _unknownFields.WriteTo(ref output);
29066       }
29067     }
29068     #endif
29069 
29070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29071     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()29072     public int CalculateSize() {
29073       int size = 0;
29074       if (_unknownFields != null) {
29075         size += _unknownFields.CalculateSize();
29076       }
29077       return size;
29078     }
29079 
29080     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29081     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FooClientMessage other)29082     public void MergeFrom(FooClientMessage other) {
29083       if (other == null) {
29084         return;
29085       }
29086       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29087     }
29088 
29089     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29090     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)29091     public void MergeFrom(pb::CodedInputStream input) {
29092     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29093       input.ReadRawMessage(this);
29094     #else
29095       uint tag;
29096       while ((tag = input.ReadTag()) != 0) {
29097         switch(tag) {
29098           default:
29099             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29100             break;
29101         }
29102       }
29103     #endif
29104     }
29105 
29106     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29107     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29108     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29109     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
29110       uint tag;
29111       while ((tag = input.ReadTag()) != 0) {
29112         switch(tag) {
29113           default:
29114             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
29115             break;
29116         }
29117       }
29118     }
29119     #endif
29120 
29121   }
29122 
29123   public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage>
29124   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29125       , pb::IBufferMessage
29126   #endif
29127   {
29128     private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage());
29129     private pb::UnknownFieldSet _unknownFields;
29130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29131     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29132     public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } }
29133 
29134     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29135     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29136     public static pbr::MessageDescriptor Descriptor {
29137       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[59]; }
29138     }
29139 
29140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29141     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29142     pbr::MessageDescriptor pb::IMessage.Descriptor {
29143       get { return Descriptor; }
29144     }
29145 
29146     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29147     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooServerMessage()29148     public FooServerMessage() {
29149       OnConstruction();
29150     }
29151 
OnConstruction()29152     partial void OnConstruction();
29153 
29154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29155     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FooServerMessage(FooServerMessage other)29156     public FooServerMessage(FooServerMessage other) : this() {
29157       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29158     }
29159 
29160     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29161     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()29162     public FooServerMessage Clone() {
29163       return new FooServerMessage(this);
29164     }
29165 
29166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29167     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)29168     public override bool Equals(object other) {
29169       return Equals(other as FooServerMessage);
29170     }
29171 
29172     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29173     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FooServerMessage other)29174     public bool Equals(FooServerMessage other) {
29175       if (ReferenceEquals(other, null)) {
29176         return false;
29177       }
29178       if (ReferenceEquals(other, this)) {
29179         return true;
29180       }
29181       return Equals(_unknownFields, other._unknownFields);
29182     }
29183 
29184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29185     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()29186     public override int GetHashCode() {
29187       int hash = 1;
29188       if (_unknownFields != null) {
29189         hash ^= _unknownFields.GetHashCode();
29190       }
29191       return hash;
29192     }
29193 
29194     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29195     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()29196     public override string ToString() {
29197       return pb::JsonFormatter.ToDiagnosticString(this);
29198     }
29199 
29200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)29202     public void WriteTo(pb::CodedOutputStream output) {
29203     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29204       output.WriteRawMessage(this);
29205     #else
29206       if (_unknownFields != null) {
29207         _unknownFields.WriteTo(output);
29208       }
29209     #endif
29210     }
29211 
29212     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29213     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29214     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29215     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29216       if (_unknownFields != null) {
29217         _unknownFields.WriteTo(ref output);
29218       }
29219     }
29220     #endif
29221 
29222     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29223     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()29224     public int CalculateSize() {
29225       int size = 0;
29226       if (_unknownFields != null) {
29227         size += _unknownFields.CalculateSize();
29228       }
29229       return size;
29230     }
29231 
29232     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29233     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FooServerMessage other)29234     public void MergeFrom(FooServerMessage other) {
29235       if (other == null) {
29236         return;
29237       }
29238       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29239     }
29240 
29241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29242     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)29243     public void MergeFrom(pb::CodedInputStream input) {
29244     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29245       input.ReadRawMessage(this);
29246     #else
29247       uint tag;
29248       while ((tag = input.ReadTag()) != 0) {
29249         switch(tag) {
29250           default:
29251             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29252             break;
29253         }
29254       }
29255     #endif
29256     }
29257 
29258     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29259     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29260     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29261     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
29262       uint tag;
29263       while ((tag = input.ReadTag()) != 0) {
29264         switch(tag) {
29265           default:
29266             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
29267             break;
29268         }
29269       }
29270     }
29271     #endif
29272 
29273   }
29274 
29275   public sealed partial class BarRequest : pb::IMessage<BarRequest>
29276   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29277       , pb::IBufferMessage
29278   #endif
29279   {
29280     private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest());
29281     private pb::UnknownFieldSet _unknownFields;
29282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29283     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29284     public static pb::MessageParser<BarRequest> Parser { get { return _parser; } }
29285 
29286     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29287     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29288     public static pbr::MessageDescriptor Descriptor {
29289       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[60]; }
29290     }
29291 
29292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29293     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29294     pbr::MessageDescriptor pb::IMessage.Descriptor {
29295       get { return Descriptor; }
29296     }
29297 
29298     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29299     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
BarRequest()29300     public BarRequest() {
29301       OnConstruction();
29302     }
29303 
OnConstruction()29304     partial void OnConstruction();
29305 
29306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29307     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
BarRequest(BarRequest other)29308     public BarRequest(BarRequest other) : this() {
29309       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29310     }
29311 
29312     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29313     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()29314     public BarRequest Clone() {
29315       return new BarRequest(this);
29316     }
29317 
29318     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29319     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)29320     public override bool Equals(object other) {
29321       return Equals(other as BarRequest);
29322     }
29323 
29324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29325     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(BarRequest other)29326     public bool Equals(BarRequest other) {
29327       if (ReferenceEquals(other, null)) {
29328         return false;
29329       }
29330       if (ReferenceEquals(other, this)) {
29331         return true;
29332       }
29333       return Equals(_unknownFields, other._unknownFields);
29334     }
29335 
29336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29337     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()29338     public override int GetHashCode() {
29339       int hash = 1;
29340       if (_unknownFields != null) {
29341         hash ^= _unknownFields.GetHashCode();
29342       }
29343       return hash;
29344     }
29345 
29346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()29348     public override string ToString() {
29349       return pb::JsonFormatter.ToDiagnosticString(this);
29350     }
29351 
29352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)29354     public void WriteTo(pb::CodedOutputStream output) {
29355     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29356       output.WriteRawMessage(this);
29357     #else
29358       if (_unknownFields != null) {
29359         _unknownFields.WriteTo(output);
29360       }
29361     #endif
29362     }
29363 
29364     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29365     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29366     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29367     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29368       if (_unknownFields != null) {
29369         _unknownFields.WriteTo(ref output);
29370       }
29371     }
29372     #endif
29373 
29374     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29375     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()29376     public int CalculateSize() {
29377       int size = 0;
29378       if (_unknownFields != null) {
29379         size += _unknownFields.CalculateSize();
29380       }
29381       return size;
29382     }
29383 
29384     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29385     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(BarRequest other)29386     public void MergeFrom(BarRequest other) {
29387       if (other == null) {
29388         return;
29389       }
29390       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29391     }
29392 
29393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29394     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)29395     public void MergeFrom(pb::CodedInputStream input) {
29396     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29397       input.ReadRawMessage(this);
29398     #else
29399       uint tag;
29400       while ((tag = input.ReadTag()) != 0) {
29401         switch(tag) {
29402           default:
29403             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29404             break;
29405         }
29406       }
29407     #endif
29408     }
29409 
29410     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29411     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29412     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29413     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
29414       uint tag;
29415       while ((tag = input.ReadTag()) != 0) {
29416         switch(tag) {
29417           default:
29418             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
29419             break;
29420         }
29421       }
29422     }
29423     #endif
29424 
29425   }
29426 
29427   public sealed partial class BarResponse : pb::IMessage<BarResponse>
29428   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29429       , pb::IBufferMessage
29430   #endif
29431   {
29432     private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse());
29433     private pb::UnknownFieldSet _unknownFields;
29434     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29435     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29436     public static pb::MessageParser<BarResponse> Parser { get { return _parser; } }
29437 
29438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29439     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29440     public static pbr::MessageDescriptor Descriptor {
29441       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[61]; }
29442     }
29443 
29444     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29445     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29446     pbr::MessageDescriptor pb::IMessage.Descriptor {
29447       get { return Descriptor; }
29448     }
29449 
29450     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29451     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
BarResponse()29452     public BarResponse() {
29453       OnConstruction();
29454     }
29455 
OnConstruction()29456     partial void OnConstruction();
29457 
29458     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29459     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
BarResponse(BarResponse other)29460     public BarResponse(BarResponse other) : this() {
29461       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29462     }
29463 
29464     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29465     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()29466     public BarResponse Clone() {
29467       return new BarResponse(this);
29468     }
29469 
29470     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29471     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)29472     public override bool Equals(object other) {
29473       return Equals(other as BarResponse);
29474     }
29475 
29476     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29477     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(BarResponse other)29478     public bool Equals(BarResponse other) {
29479       if (ReferenceEquals(other, null)) {
29480         return false;
29481       }
29482       if (ReferenceEquals(other, this)) {
29483         return true;
29484       }
29485       return Equals(_unknownFields, other._unknownFields);
29486     }
29487 
29488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29489     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()29490     public override int GetHashCode() {
29491       int hash = 1;
29492       if (_unknownFields != null) {
29493         hash ^= _unknownFields.GetHashCode();
29494       }
29495       return hash;
29496     }
29497 
29498     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29499     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()29500     public override string ToString() {
29501       return pb::JsonFormatter.ToDiagnosticString(this);
29502     }
29503 
29504     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29505     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)29506     public void WriteTo(pb::CodedOutputStream output) {
29507     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29508       output.WriteRawMessage(this);
29509     #else
29510       if (_unknownFields != null) {
29511         _unknownFields.WriteTo(output);
29512       }
29513     #endif
29514     }
29515 
29516     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29517     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29518     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29519     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29520       if (_unknownFields != null) {
29521         _unknownFields.WriteTo(ref output);
29522       }
29523     }
29524     #endif
29525 
29526     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29527     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()29528     public int CalculateSize() {
29529       int size = 0;
29530       if (_unknownFields != null) {
29531         size += _unknownFields.CalculateSize();
29532       }
29533       return size;
29534     }
29535 
29536     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29537     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(BarResponse other)29538     public void MergeFrom(BarResponse other) {
29539       if (other == null) {
29540         return;
29541       }
29542       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29543     }
29544 
29545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)29547     public void MergeFrom(pb::CodedInputStream input) {
29548     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29549       input.ReadRawMessage(this);
29550     #else
29551       uint tag;
29552       while ((tag = input.ReadTag()) != 0) {
29553         switch(tag) {
29554           default:
29555             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29556             break;
29557         }
29558       }
29559     #endif
29560     }
29561 
29562     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29564     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29565     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
29566       uint tag;
29567       while ((tag = input.ReadTag()) != 0) {
29568         switch(tag) {
29569           default:
29570             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
29571             break;
29572         }
29573       }
29574     }
29575     #endif
29576 
29577   }
29578 
29579   public sealed partial class TestJsonName : pb::IMessage<TestJsonName>
29580   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29581       , pb::IBufferMessage
29582   #endif
29583   {
29584     private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName());
29585     private pb::UnknownFieldSet _unknownFields;
29586     private int _hasBits0;
29587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29589     public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } }
29590 
29591     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29592     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29593     public static pbr::MessageDescriptor Descriptor {
29594       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[62]; }
29595     }
29596 
29597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29598     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29599     pbr::MessageDescriptor pb::IMessage.Descriptor {
29600       get { return Descriptor; }
29601     }
29602 
29603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29604     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestJsonName()29605     public TestJsonName() {
29606       OnConstruction();
29607     }
29608 
OnConstruction()29609     partial void OnConstruction();
29610 
29611     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29612     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestJsonName(TestJsonName other)29613     public TestJsonName(TestJsonName other) : this() {
29614       _hasBits0 = other._hasBits0;
29615       fieldName1_ = other.fieldName1_;
29616       fieldName2_ = other.fieldName2_;
29617       fieldName3_ = other.fieldName3_;
29618       FieldName4_ = other.FieldName4_;
29619       fIELDNAME5_ = other.fIELDNAME5_;
29620       fieldName6_ = other.fieldName6_;
29621       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29622     }
29623 
29624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29625     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()29626     public TestJsonName Clone() {
29627       return new TestJsonName(this);
29628     }
29629 
29630     /// <summary>Field number for the "field_name1" field.</summary>
29631     public const int FieldName1FieldNumber = 1;
29632     private readonly static int FieldName1DefaultValue = 0;
29633 
29634     private int fieldName1_;
29635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29636     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29637     public int FieldName1 {
29638       get { if ((_hasBits0 & 1) != 0) { return fieldName1_; } else { return FieldName1DefaultValue; } }
29639       set {
29640         _hasBits0 |= 1;
29641         fieldName1_ = value;
29642       }
29643     }
29644     /// <summary>Gets whether the "field_name1" field is set</summary>
29645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29646     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29647     public bool HasFieldName1 {
29648       get { return (_hasBits0 & 1) != 0; }
29649     }
29650     /// <summary>Clears the value of the "field_name1" field</summary>
29651     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29652     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName1()29653     public void ClearFieldName1() {
29654       _hasBits0 &= ~1;
29655     }
29656 
29657     /// <summary>Field number for the "fieldName2" field.</summary>
29658     public const int FieldName2FieldNumber = 2;
29659     private readonly static int FieldName2DefaultValue = 0;
29660 
29661     private int fieldName2_;
29662     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29663     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29664     public int FieldName2 {
29665       get { if ((_hasBits0 & 2) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } }
29666       set {
29667         _hasBits0 |= 2;
29668         fieldName2_ = value;
29669       }
29670     }
29671     /// <summary>Gets whether the "fieldName2" field is set</summary>
29672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29673     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29674     public bool HasFieldName2 {
29675       get { return (_hasBits0 & 2) != 0; }
29676     }
29677     /// <summary>Clears the value of the "fieldName2" field</summary>
29678     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29679     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName2()29680     public void ClearFieldName2() {
29681       _hasBits0 &= ~2;
29682     }
29683 
29684     /// <summary>Field number for the "FieldName3" field.</summary>
29685     public const int FieldName3FieldNumber = 3;
29686     private readonly static int FieldName3DefaultValue = 0;
29687 
29688     private int fieldName3_;
29689     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29690     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29691     public int FieldName3 {
29692       get { if ((_hasBits0 & 4) != 0) { return fieldName3_; } else { return FieldName3DefaultValue; } }
29693       set {
29694         _hasBits0 |= 4;
29695         fieldName3_ = value;
29696       }
29697     }
29698     /// <summary>Gets whether the "FieldName3" field is set</summary>
29699     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29700     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29701     public bool HasFieldName3 {
29702       get { return (_hasBits0 & 4) != 0; }
29703     }
29704     /// <summary>Clears the value of the "FieldName3" field</summary>
29705     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29706     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName3()29707     public void ClearFieldName3() {
29708       _hasBits0 &= ~4;
29709     }
29710 
29711     /// <summary>Field number for the "_field_name4" field.</summary>
29712     public const int FieldName4FieldNumber = 4;
29713     private readonly static int FieldName4DefaultValue = 0;
29714 
29715     private int FieldName4_;
29716     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29717     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29718     public int FieldName4 {
29719       get { if ((_hasBits0 & 8) != 0) { return FieldName4_; } else { return FieldName4DefaultValue; } }
29720       set {
29721         _hasBits0 |= 8;
29722         FieldName4_ = value;
29723       }
29724     }
29725     /// <summary>Gets whether the "_field_name4" field is set</summary>
29726     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29727     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29728     public bool HasFieldName4 {
29729       get { return (_hasBits0 & 8) != 0; }
29730     }
29731     /// <summary>Clears the value of the "_field_name4" field</summary>
29732     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29733     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName4()29734     public void ClearFieldName4() {
29735       _hasBits0 &= ~8;
29736     }
29737 
29738     /// <summary>Field number for the "FIELD_NAME5" field.</summary>
29739     public const int FIELDNAME5FieldNumber = 5;
29740     private readonly static int FIELDNAME5DefaultValue = 0;
29741 
29742     private int fIELDNAME5_;
29743     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29744     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29745     public int FIELDNAME5 {
29746       get { if ((_hasBits0 & 16) != 0) { return fIELDNAME5_; } else { return FIELDNAME5DefaultValue; } }
29747       set {
29748         _hasBits0 |= 16;
29749         fIELDNAME5_ = value;
29750       }
29751     }
29752     /// <summary>Gets whether the "FIELD_NAME5" field is set</summary>
29753     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29754     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29755     public bool HasFIELDNAME5 {
29756       get { return (_hasBits0 & 16) != 0; }
29757     }
29758     /// <summary>Clears the value of the "FIELD_NAME5" field</summary>
29759     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29760     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFIELDNAME5()29761     public void ClearFIELDNAME5() {
29762       _hasBits0 &= ~16;
29763     }
29764 
29765     /// <summary>Field number for the "field_name6" field.</summary>
29766     public const int FieldName6FieldNumber = 6;
29767     private readonly static int FieldName6DefaultValue = 0;
29768 
29769     private int fieldName6_;
29770     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29771     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29772     public int FieldName6 {
29773       get { if ((_hasBits0 & 32) != 0) { return fieldName6_; } else { return FieldName6DefaultValue; } }
29774       set {
29775         _hasBits0 |= 32;
29776         fieldName6_ = value;
29777       }
29778     }
29779     /// <summary>Gets whether the "field_name6" field is set</summary>
29780     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29781     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
29782     public bool HasFieldName6 {
29783       get { return (_hasBits0 & 32) != 0; }
29784     }
29785     /// <summary>Clears the value of the "field_name6" field</summary>
29786     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29787     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName6()29788     public void ClearFieldName6() {
29789       _hasBits0 &= ~32;
29790     }
29791 
29792     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29793     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)29794     public override bool Equals(object other) {
29795       return Equals(other as TestJsonName);
29796     }
29797 
29798     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29799     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestJsonName other)29800     public bool Equals(TestJsonName other) {
29801       if (ReferenceEquals(other, null)) {
29802         return false;
29803       }
29804       if (ReferenceEquals(other, this)) {
29805         return true;
29806       }
29807       if (FieldName1 != other.FieldName1) return false;
29808       if (FieldName2 != other.FieldName2) return false;
29809       if (FieldName3 != other.FieldName3) return false;
29810       if (FieldName4 != other.FieldName4) return false;
29811       if (FIELDNAME5 != other.FIELDNAME5) return false;
29812       if (FieldName6 != other.FieldName6) return false;
29813       return Equals(_unknownFields, other._unknownFields);
29814     }
29815 
29816     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29817     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()29818     public override int GetHashCode() {
29819       int hash = 1;
29820       if (HasFieldName1) hash ^= FieldName1.GetHashCode();
29821       if (HasFieldName2) hash ^= FieldName2.GetHashCode();
29822       if (HasFieldName3) hash ^= FieldName3.GetHashCode();
29823       if (HasFieldName4) hash ^= FieldName4.GetHashCode();
29824       if (HasFIELDNAME5) hash ^= FIELDNAME5.GetHashCode();
29825       if (HasFieldName6) hash ^= FieldName6.GetHashCode();
29826       if (_unknownFields != null) {
29827         hash ^= _unknownFields.GetHashCode();
29828       }
29829       return hash;
29830     }
29831 
29832     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29833     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()29834     public override string ToString() {
29835       return pb::JsonFormatter.ToDiagnosticString(this);
29836     }
29837 
29838     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29839     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)29840     public void WriteTo(pb::CodedOutputStream output) {
29841     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29842       output.WriteRawMessage(this);
29843     #else
29844       if (HasFieldName1) {
29845         output.WriteRawTag(8);
29846         output.WriteInt32(FieldName1);
29847       }
29848       if (HasFieldName2) {
29849         output.WriteRawTag(16);
29850         output.WriteInt32(FieldName2);
29851       }
29852       if (HasFieldName3) {
29853         output.WriteRawTag(24);
29854         output.WriteInt32(FieldName3);
29855       }
29856       if (HasFieldName4) {
29857         output.WriteRawTag(32);
29858         output.WriteInt32(FieldName4);
29859       }
29860       if (HasFIELDNAME5) {
29861         output.WriteRawTag(40);
29862         output.WriteInt32(FIELDNAME5);
29863       }
29864       if (HasFieldName6) {
29865         output.WriteRawTag(48);
29866         output.WriteInt32(FieldName6);
29867       }
29868       if (_unknownFields != null) {
29869         _unknownFields.WriteTo(output);
29870       }
29871     #endif
29872     }
29873 
29874     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29875     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29876     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29877     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29878       if (HasFieldName1) {
29879         output.WriteRawTag(8);
29880         output.WriteInt32(FieldName1);
29881       }
29882       if (HasFieldName2) {
29883         output.WriteRawTag(16);
29884         output.WriteInt32(FieldName2);
29885       }
29886       if (HasFieldName3) {
29887         output.WriteRawTag(24);
29888         output.WriteInt32(FieldName3);
29889       }
29890       if (HasFieldName4) {
29891         output.WriteRawTag(32);
29892         output.WriteInt32(FieldName4);
29893       }
29894       if (HasFIELDNAME5) {
29895         output.WriteRawTag(40);
29896         output.WriteInt32(FIELDNAME5);
29897       }
29898       if (HasFieldName6) {
29899         output.WriteRawTag(48);
29900         output.WriteInt32(FieldName6);
29901       }
29902       if (_unknownFields != null) {
29903         _unknownFields.WriteTo(ref output);
29904       }
29905     }
29906     #endif
29907 
29908     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29909     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()29910     public int CalculateSize() {
29911       int size = 0;
29912       if (HasFieldName1) {
29913         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName1);
29914       }
29915       if (HasFieldName2) {
29916         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
29917       }
29918       if (HasFieldName3) {
29919         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
29920       }
29921       if (HasFieldName4) {
29922         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
29923       }
29924       if (HasFIELDNAME5) {
29925         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME5);
29926       }
29927       if (HasFieldName6) {
29928         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName6);
29929       }
29930       if (_unknownFields != null) {
29931         size += _unknownFields.CalculateSize();
29932       }
29933       return size;
29934     }
29935 
29936     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29937     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestJsonName other)29938     public void MergeFrom(TestJsonName other) {
29939       if (other == null) {
29940         return;
29941       }
29942       if (other.HasFieldName1) {
29943         FieldName1 = other.FieldName1;
29944       }
29945       if (other.HasFieldName2) {
29946         FieldName2 = other.FieldName2;
29947       }
29948       if (other.HasFieldName3) {
29949         FieldName3 = other.FieldName3;
29950       }
29951       if (other.HasFieldName4) {
29952         FieldName4 = other.FieldName4;
29953       }
29954       if (other.HasFIELDNAME5) {
29955         FIELDNAME5 = other.FIELDNAME5;
29956       }
29957       if (other.HasFieldName6) {
29958         FieldName6 = other.FieldName6;
29959       }
29960       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29961     }
29962 
29963     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
29964     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)29965     public void MergeFrom(pb::CodedInputStream input) {
29966     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29967       input.ReadRawMessage(this);
29968     #else
29969       uint tag;
29970       while ((tag = input.ReadTag()) != 0) {
29971         switch(tag) {
29972           default:
29973             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29974             break;
29975           case 8: {
29976             FieldName1 = input.ReadInt32();
29977             break;
29978           }
29979           case 16: {
29980             FieldName2 = input.ReadInt32();
29981             break;
29982           }
29983           case 24: {
29984             FieldName3 = input.ReadInt32();
29985             break;
29986           }
29987           case 32: {
29988             FieldName4 = input.ReadInt32();
29989             break;
29990           }
29991           case 40: {
29992             FIELDNAME5 = input.ReadInt32();
29993             break;
29994           }
29995           case 48: {
29996             FieldName6 = input.ReadInt32();
29997             break;
29998           }
29999         }
30000       }
30001     #endif
30002     }
30003 
30004     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30005     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30006     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)30007     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
30008       uint tag;
30009       while ((tag = input.ReadTag()) != 0) {
30010         switch(tag) {
30011           default:
30012             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
30013             break;
30014           case 8: {
30015             FieldName1 = input.ReadInt32();
30016             break;
30017           }
30018           case 16: {
30019             FieldName2 = input.ReadInt32();
30020             break;
30021           }
30022           case 24: {
30023             FieldName3 = input.ReadInt32();
30024             break;
30025           }
30026           case 32: {
30027             FieldName4 = input.ReadInt32();
30028             break;
30029           }
30030           case 40: {
30031             FIELDNAME5 = input.ReadInt32();
30032             break;
30033           }
30034           case 48: {
30035             FieldName6 = input.ReadInt32();
30036             break;
30037           }
30038         }
30039       }
30040     }
30041     #endif
30042 
30043   }
30044 
30045   public sealed partial class TestHugeFieldNumbers : pb::IExtendableMessage<TestHugeFieldNumbers>
30046   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30047       , pb::IBufferMessage
30048   #endif
30049   {
30050     private static readonly pb::MessageParser<TestHugeFieldNumbers> _parser = new pb::MessageParser<TestHugeFieldNumbers>(() => new TestHugeFieldNumbers());
30051     private pb::UnknownFieldSet _unknownFields;
30052     private pb::ExtensionSet<TestHugeFieldNumbers> _extensions;
30053     private pb::ExtensionSet<TestHugeFieldNumbers> _Extensions { get { return _extensions; } }
30054     private int _hasBits0;
30055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30056     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30057     public static pb::MessageParser<TestHugeFieldNumbers> Parser { get { return _parser; } }
30058 
30059     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30060     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30061     public static pbr::MessageDescriptor Descriptor {
30062       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[63]; }
30063     }
30064 
30065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30066     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30067     pbr::MessageDescriptor pb::IMessage.Descriptor {
30068       get { return Descriptor; }
30069     }
30070 
30071     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30072     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestHugeFieldNumbers()30073     public TestHugeFieldNumbers() {
30074       OnConstruction();
30075     }
30076 
OnConstruction()30077     partial void OnConstruction();
30078 
30079     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30080     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestHugeFieldNumbers(TestHugeFieldNumbers other)30081     public TestHugeFieldNumbers(TestHugeFieldNumbers other) : this() {
30082       _hasBits0 = other._hasBits0;
30083       optionalInt32_ = other.optionalInt32_;
30084       fixed32_ = other.fixed32_;
30085       repeatedInt32_ = other.repeatedInt32_.Clone();
30086       packedInt32_ = other.packedInt32_.Clone();
30087       optionalEnum_ = other.optionalEnum_;
30088       optionalString_ = other.optionalString_;
30089       optionalBytes_ = other.optionalBytes_;
30090       optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
30091       optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
30092       stringStringMap_ = other.stringStringMap_.Clone();
30093       switch (other.OneofFieldCase) {
30094         case OneofFieldOneofCase.OneofUint32:
30095           OneofUint32 = other.OneofUint32;
30096           break;
30097         case OneofFieldOneofCase.OneofTestAllTypes:
30098           OneofTestAllTypes = other.OneofTestAllTypes.Clone();
30099           break;
30100         case OneofFieldOneofCase.OneofString:
30101           OneofString = other.OneofString;
30102           break;
30103         case OneofFieldOneofCase.OneofBytes:
30104           OneofBytes = other.OneofBytes;
30105           break;
30106       }
30107 
30108       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
30109       _extensions = pb::ExtensionSet.Clone(other._extensions);
30110     }
30111 
30112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30113     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()30114     public TestHugeFieldNumbers Clone() {
30115       return new TestHugeFieldNumbers(this);
30116     }
30117 
30118     /// <summary>Field number for the "optional_int32" field.</summary>
30119     public const int OptionalInt32FieldNumber = 536870000;
30120     private readonly static int OptionalInt32DefaultValue = 0;
30121 
30122     private int optionalInt32_;
30123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30124     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30125     public int OptionalInt32 {
30126       get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
30127       set {
30128         _hasBits0 |= 1;
30129         optionalInt32_ = value;
30130       }
30131     }
30132     /// <summary>Gets whether the "optional_int32" field is set</summary>
30133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30134     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30135     public bool HasOptionalInt32 {
30136       get { return (_hasBits0 & 1) != 0; }
30137     }
30138     /// <summary>Clears the value of the "optional_int32" field</summary>
30139     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30140     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt32()30141     public void ClearOptionalInt32() {
30142       _hasBits0 &= ~1;
30143     }
30144 
30145     /// <summary>Field number for the "fixed_32" field.</summary>
30146     public const int Fixed32FieldNumber = 536870001;
30147     private readonly static int Fixed32DefaultValue = 0;
30148 
30149     private int fixed32_;
30150     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30151     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30152     public int Fixed32 {
30153       get { if ((_hasBits0 & 2) != 0) { return fixed32_; } else { return Fixed32DefaultValue; } }
30154       set {
30155         _hasBits0 |= 2;
30156         fixed32_ = value;
30157       }
30158     }
30159     /// <summary>Gets whether the "fixed_32" field is set</summary>
30160     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30161     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30162     public bool HasFixed32 {
30163       get { return (_hasBits0 & 2) != 0; }
30164     }
30165     /// <summary>Clears the value of the "fixed_32" field</summary>
30166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30167     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFixed32()30168     public void ClearFixed32() {
30169       _hasBits0 &= ~2;
30170     }
30171 
30172     /// <summary>Field number for the "repeated_int32" field.</summary>
30173     public const int RepeatedInt32FieldNumber = 536870002;
30174     private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
30175         = pb::FieldCodec.ForInt32(4294960016);
30176     private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
30177     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30178     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30179     public pbc::RepeatedField<int> RepeatedInt32 {
30180       get { return repeatedInt32_; }
30181     }
30182 
30183     /// <summary>Field number for the "packed_int32" field.</summary>
30184     public const int PackedInt32FieldNumber = 536870003;
30185     private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
30186         = pb::FieldCodec.ForInt32(4294960026);
30187     private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
30188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30189     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30190     public pbc::RepeatedField<int> PackedInt32 {
30191       get { return packedInt32_; }
30192     }
30193 
30194     /// <summary>Field number for the "optional_enum" field.</summary>
30195     public const int OptionalEnumFieldNumber = 536870004;
30196     private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
30197 
30198     private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalEnum_;
30199     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30200     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30201     public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnum {
30202       get { if ((_hasBits0 & 4) != 0) { return optionalEnum_; } else { return OptionalEnumDefaultValue; } }
30203       set {
30204         _hasBits0 |= 4;
30205         optionalEnum_ = value;
30206       }
30207     }
30208     /// <summary>Gets whether the "optional_enum" field is set</summary>
30209     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30210     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30211     public bool HasOptionalEnum {
30212       get { return (_hasBits0 & 4) != 0; }
30213     }
30214     /// <summary>Clears the value of the "optional_enum" field</summary>
30215     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30216     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalEnum()30217     public void ClearOptionalEnum() {
30218       _hasBits0 &= ~4;
30219     }
30220 
30221     /// <summary>Field number for the "optional_string" field.</summary>
30222     public const int OptionalStringFieldNumber = 536870005;
30223     private readonly static string OptionalStringDefaultValue = "";
30224 
30225     private string optionalString_;
30226     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30227     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30228     public string OptionalString {
30229       get { return optionalString_ ?? OptionalStringDefaultValue; }
30230       set {
30231         optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30232       }
30233     }
30234     /// <summary>Gets whether the "optional_string" field is set</summary>
30235     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30236     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30237     public bool HasOptionalString {
30238       get { return optionalString_ != null; }
30239     }
30240     /// <summary>Clears the value of the "optional_string" field</summary>
30241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30242     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalString()30243     public void ClearOptionalString() {
30244       optionalString_ = null;
30245     }
30246 
30247     /// <summary>Field number for the "optional_bytes" field.</summary>
30248     public const int OptionalBytesFieldNumber = 536870006;
30249     private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
30250 
30251     private pb::ByteString optionalBytes_;
30252     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30253     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30254     public pb::ByteString OptionalBytes {
30255       get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
30256       set {
30257         optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30258       }
30259     }
30260     /// <summary>Gets whether the "optional_bytes" field is set</summary>
30261     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30262     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30263     public bool HasOptionalBytes {
30264       get { return optionalBytes_ != null; }
30265     }
30266     /// <summary>Clears the value of the "optional_bytes" field</summary>
30267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30268     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBytes()30269     public void ClearOptionalBytes() {
30270       optionalBytes_ = null;
30271     }
30272 
30273     /// <summary>Field number for the "optional_message" field.</summary>
30274     public const int OptionalMessageFieldNumber = 536870007;
30275     private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalMessage_;
30276     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30277     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30278     public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalMessage {
30279       get { return optionalMessage_; }
30280       set {
30281         optionalMessage_ = value;
30282       }
30283     }
30284 
30285     /// <summary>Field number for the "optionalgroup" field.</summary>
30286     public const int OptionalGroupFieldNumber = 536870008;
30287     private global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup optionalGroup_;
30288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30289     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30290     public global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup OptionalGroup {
30291       get { return optionalGroup_; }
30292       set {
30293         optionalGroup_ = value;
30294       }
30295     }
30296     /// <summary>Gets whether the optionalgroup field is set</summary>
30297     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30298     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30299     public bool HasOptionalGroup {
30300       get { return optionalGroup_ != null; }
30301     }
30302     /// <summary>Clears the value of the optionalgroup field</summary>
30303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30304     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalGroup()30305     public void ClearOptionalGroup() {
30306       optionalGroup_ = null;
30307     }
30308 
30309     /// <summary>Field number for the "string_string_map" field.</summary>
30310     public const int StringStringMapFieldNumber = 536870010;
30311     private static readonly pbc::MapField<string, string>.Codec _map_stringStringMap_codec
30312         = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 4294960082);
30313     private readonly pbc::MapField<string, string> stringStringMap_ = new pbc::MapField<string, string>();
30314     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30315     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30316     public pbc::MapField<string, string> StringStringMap {
30317       get { return stringStringMap_; }
30318     }
30319 
30320     /// <summary>Field number for the "oneof_uint32" field.</summary>
30321     public const int OneofUint32FieldNumber = 536870011;
30322     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30323     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30324     public uint OneofUint32 {
30325       get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
30326       set {
30327         oneofField_ = value;
30328         oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
30329       }
30330     }
30331     /// <summary>Gets whether the "oneof_uint32" field is set</summary>
30332     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30333     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30334     public bool HasOneofUint32 {
30335       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
30336     }
30337     /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
30338     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30339     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofUint32()30340     public void ClearOneofUint32() {
30341       if (HasOneofUint32) {
30342         ClearOneofField();
30343       }
30344     }
30345 
30346     /// <summary>Field number for the "oneof_test_all_types" field.</summary>
30347     public const int OneofTestAllTypesFieldNumber = 536870012;
30348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30350     public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OneofTestAllTypes {
30351       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) oneofField_ : null; }
30352       set {
30353         oneofField_ = value;
30354         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofTestAllTypes;
30355       }
30356     }
30357 
30358     /// <summary>Field number for the "oneof_string" field.</summary>
30359     public const int OneofStringFieldNumber = 536870013;
30360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30361     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30362     public string OneofString {
30363       get { return HasOneofString ? (string) oneofField_ : ""; }
30364       set {
30365         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30366         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
30367       }
30368     }
30369     /// <summary>Gets whether the "oneof_string" field is set</summary>
30370     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30371     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30372     public bool HasOneofString {
30373       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
30374     }
30375     /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
30376     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30377     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofString()30378     public void ClearOneofString() {
30379       if (HasOneofString) {
30380         ClearOneofField();
30381       }
30382     }
30383 
30384     /// <summary>Field number for the "oneof_bytes" field.</summary>
30385     public const int OneofBytesFieldNumber = 536870014;
30386     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30387     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30388     public pb::ByteString OneofBytes {
30389       get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
30390       set {
30391         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30392         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
30393       }
30394     }
30395     /// <summary>Gets whether the "oneof_bytes" field is set</summary>
30396     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30397     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30398     public bool HasOneofBytes {
30399       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
30400     }
30401     /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
30402     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30403     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofBytes()30404     public void ClearOneofBytes() {
30405       if (HasOneofBytes) {
30406         ClearOneofField();
30407       }
30408     }
30409 
30410     private object oneofField_;
30411     /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
30412     public enum OneofFieldOneofCase {
30413       None = 0,
30414       OneofUint32 = 536870011,
30415       OneofTestAllTypes = 536870012,
30416       OneofString = 536870013,
30417       OneofBytes = 536870014,
30418     }
30419     private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
30420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30422     public OneofFieldOneofCase OneofFieldCase {
30423       get { return oneofFieldCase_; }
30424     }
30425 
30426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30427     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofField()30428     public void ClearOneofField() {
30429       oneofFieldCase_ = OneofFieldOneofCase.None;
30430       oneofField_ = null;
30431     }
30432 
30433     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30434     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)30435     public override bool Equals(object other) {
30436       return Equals(other as TestHugeFieldNumbers);
30437     }
30438 
30439     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30440     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestHugeFieldNumbers other)30441     public bool Equals(TestHugeFieldNumbers other) {
30442       if (ReferenceEquals(other, null)) {
30443         return false;
30444       }
30445       if (ReferenceEquals(other, this)) {
30446         return true;
30447       }
30448       if (OptionalInt32 != other.OptionalInt32) return false;
30449       if (Fixed32 != other.Fixed32) return false;
30450       if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
30451       if(!packedInt32_.Equals(other.packedInt32_)) return false;
30452       if (OptionalEnum != other.OptionalEnum) return false;
30453       if (OptionalString != other.OptionalString) return false;
30454       if (OptionalBytes != other.OptionalBytes) return false;
30455       if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
30456       if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
30457       if (!StringStringMap.Equals(other.StringStringMap)) return false;
30458       if (OneofUint32 != other.OneofUint32) return false;
30459       if (!object.Equals(OneofTestAllTypes, other.OneofTestAllTypes)) return false;
30460       if (OneofString != other.OneofString) return false;
30461       if (OneofBytes != other.OneofBytes) return false;
30462       if (OneofFieldCase != other.OneofFieldCase) return false;
30463       if (!Equals(_extensions, other._extensions)) {
30464         return false;
30465       }
30466       return Equals(_unknownFields, other._unknownFields);
30467     }
30468 
30469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()30471     public override int GetHashCode() {
30472       int hash = 1;
30473       if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
30474       if (HasFixed32) hash ^= Fixed32.GetHashCode();
30475       hash ^= repeatedInt32_.GetHashCode();
30476       hash ^= packedInt32_.GetHashCode();
30477       if (HasOptionalEnum) hash ^= OptionalEnum.GetHashCode();
30478       if (HasOptionalString) hash ^= OptionalString.GetHashCode();
30479       if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
30480       if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
30481       if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
30482       hash ^= StringStringMap.GetHashCode();
30483       if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
30484       if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) hash ^= OneofTestAllTypes.GetHashCode();
30485       if (HasOneofString) hash ^= OneofString.GetHashCode();
30486       if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
30487       hash ^= (int) oneofFieldCase_;
30488       if (_extensions != null) {
30489         hash ^= _extensions.GetHashCode();
30490       }
30491       if (_unknownFields != null) {
30492         hash ^= _unknownFields.GetHashCode();
30493       }
30494       return hash;
30495     }
30496 
30497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30498     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()30499     public override string ToString() {
30500       return pb::JsonFormatter.ToDiagnosticString(this);
30501     }
30502 
30503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30504     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)30505     public void WriteTo(pb::CodedOutputStream output) {
30506     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30507       output.WriteRawMessage(this);
30508     #else
30509       if (HasOptionalInt32) {
30510         output.WriteRawTag(128, 199, 255, 255, 15);
30511         output.WriteInt32(OptionalInt32);
30512       }
30513       if (HasFixed32) {
30514         output.WriteRawTag(136, 199, 255, 255, 15);
30515         output.WriteInt32(Fixed32);
30516       }
30517       repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
30518       packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
30519       if (HasOptionalEnum) {
30520         output.WriteRawTag(160, 199, 255, 255, 15);
30521         output.WriteEnum((int) OptionalEnum);
30522       }
30523       if (HasOptionalString) {
30524         output.WriteRawTag(170, 199, 255, 255, 15);
30525         output.WriteString(OptionalString);
30526       }
30527       if (HasOptionalBytes) {
30528         output.WriteRawTag(178, 199, 255, 255, 15);
30529         output.WriteBytes(OptionalBytes);
30530       }
30531       if (optionalMessage_ != null) {
30532         output.WriteRawTag(186, 199, 255, 255, 15);
30533         output.WriteMessage(OptionalMessage);
30534       }
30535       if (HasOptionalGroup) {
30536         output.WriteRawTag(195, 199, 255, 255, 15);
30537         output.WriteGroup(OptionalGroup);
30538         output.WriteRawTag(196, 199, 255, 255, 15);
30539       }
30540       stringStringMap_.WriteTo(output, _map_stringStringMap_codec);
30541       if (HasOneofUint32) {
30542         output.WriteRawTag(216, 199, 255, 255, 15);
30543         output.WriteUInt32(OneofUint32);
30544       }
30545       if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
30546         output.WriteRawTag(226, 199, 255, 255, 15);
30547         output.WriteMessage(OneofTestAllTypes);
30548       }
30549       if (HasOneofString) {
30550         output.WriteRawTag(234, 199, 255, 255, 15);
30551         output.WriteString(OneofString);
30552       }
30553       if (HasOneofBytes) {
30554         output.WriteRawTag(242, 199, 255, 255, 15);
30555         output.WriteBytes(OneofBytes);
30556       }
30557       if (_extensions != null) {
30558         _extensions.WriteTo(output);
30559       }
30560       if (_unknownFields != null) {
30561         _unknownFields.WriteTo(output);
30562       }
30563     #endif
30564     }
30565 
30566     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30567     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30568     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)30569     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
30570       if (HasOptionalInt32) {
30571         output.WriteRawTag(128, 199, 255, 255, 15);
30572         output.WriteInt32(OptionalInt32);
30573       }
30574       if (HasFixed32) {
30575         output.WriteRawTag(136, 199, 255, 255, 15);
30576         output.WriteInt32(Fixed32);
30577       }
30578       repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
30579       packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
30580       if (HasOptionalEnum) {
30581         output.WriteRawTag(160, 199, 255, 255, 15);
30582         output.WriteEnum((int) OptionalEnum);
30583       }
30584       if (HasOptionalString) {
30585         output.WriteRawTag(170, 199, 255, 255, 15);
30586         output.WriteString(OptionalString);
30587       }
30588       if (HasOptionalBytes) {
30589         output.WriteRawTag(178, 199, 255, 255, 15);
30590         output.WriteBytes(OptionalBytes);
30591       }
30592       if (optionalMessage_ != null) {
30593         output.WriteRawTag(186, 199, 255, 255, 15);
30594         output.WriteMessage(OptionalMessage);
30595       }
30596       if (HasOptionalGroup) {
30597         output.WriteRawTag(195, 199, 255, 255, 15);
30598         output.WriteGroup(OptionalGroup);
30599         output.WriteRawTag(196, 199, 255, 255, 15);
30600       }
30601       stringStringMap_.WriteTo(ref output, _map_stringStringMap_codec);
30602       if (HasOneofUint32) {
30603         output.WriteRawTag(216, 199, 255, 255, 15);
30604         output.WriteUInt32(OneofUint32);
30605       }
30606       if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
30607         output.WriteRawTag(226, 199, 255, 255, 15);
30608         output.WriteMessage(OneofTestAllTypes);
30609       }
30610       if (HasOneofString) {
30611         output.WriteRawTag(234, 199, 255, 255, 15);
30612         output.WriteString(OneofString);
30613       }
30614       if (HasOneofBytes) {
30615         output.WriteRawTag(242, 199, 255, 255, 15);
30616         output.WriteBytes(OneofBytes);
30617       }
30618       if (_extensions != null) {
30619         _extensions.WriteTo(ref output);
30620       }
30621       if (_unknownFields != null) {
30622         _unknownFields.WriteTo(ref output);
30623       }
30624     }
30625     #endif
30626 
30627     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30628     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()30629     public int CalculateSize() {
30630       int size = 0;
30631       if (HasOptionalInt32) {
30632         size += 5 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
30633       }
30634       if (HasFixed32) {
30635         size += 5 + pb::CodedOutputStream.ComputeInt32Size(Fixed32);
30636       }
30637       size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
30638       size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
30639       if (HasOptionalEnum) {
30640         size += 5 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalEnum);
30641       }
30642       if (HasOptionalString) {
30643         size += 5 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
30644       }
30645       if (HasOptionalBytes) {
30646         size += 5 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
30647       }
30648       if (optionalMessage_ != null) {
30649         size += 5 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
30650       }
30651       if (HasOptionalGroup) {
30652         size += 10 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
30653       }
30654       size += stringStringMap_.CalculateSize(_map_stringStringMap_codec);
30655       if (HasOneofUint32) {
30656         size += 5 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
30657       }
30658       if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
30659         size += 5 + pb::CodedOutputStream.ComputeMessageSize(OneofTestAllTypes);
30660       }
30661       if (HasOneofString) {
30662         size += 5 + pb::CodedOutputStream.ComputeStringSize(OneofString);
30663       }
30664       if (HasOneofBytes) {
30665         size += 5 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
30666       }
30667       if (_extensions != null) {
30668         size += _extensions.CalculateSize();
30669       }
30670       if (_unknownFields != null) {
30671         size += _unknownFields.CalculateSize();
30672       }
30673       return size;
30674     }
30675 
30676     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30677     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestHugeFieldNumbers other)30678     public void MergeFrom(TestHugeFieldNumbers other) {
30679       if (other == null) {
30680         return;
30681       }
30682       if (other.HasOptionalInt32) {
30683         OptionalInt32 = other.OptionalInt32;
30684       }
30685       if (other.HasFixed32) {
30686         Fixed32 = other.Fixed32;
30687       }
30688       repeatedInt32_.Add(other.repeatedInt32_);
30689       packedInt32_.Add(other.packedInt32_);
30690       if (other.HasOptionalEnum) {
30691         OptionalEnum = other.OptionalEnum;
30692       }
30693       if (other.HasOptionalString) {
30694         OptionalString = other.OptionalString;
30695       }
30696       if (other.HasOptionalBytes) {
30697         OptionalBytes = other.OptionalBytes;
30698       }
30699       if (other.optionalMessage_ != null) {
30700         if (optionalMessage_ == null) {
30701           OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
30702         }
30703         OptionalMessage.MergeFrom(other.OptionalMessage);
30704       }
30705       if (other.HasOptionalGroup) {
30706         if (!HasOptionalGroup) {
30707           OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
30708         }
30709         OptionalGroup.MergeFrom(other.OptionalGroup);
30710       }
30711       stringStringMap_.Add(other.stringStringMap_);
30712       switch (other.OneofFieldCase) {
30713         case OneofFieldOneofCase.OneofUint32:
30714           OneofUint32 = other.OneofUint32;
30715           break;
30716         case OneofFieldOneofCase.OneofTestAllTypes:
30717           if (OneofTestAllTypes == null) {
30718             OneofTestAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
30719           }
30720           OneofTestAllTypes.MergeFrom(other.OneofTestAllTypes);
30721           break;
30722         case OneofFieldOneofCase.OneofString:
30723           OneofString = other.OneofString;
30724           break;
30725         case OneofFieldOneofCase.OneofBytes:
30726           OneofBytes = other.OneofBytes;
30727           break;
30728       }
30729 
30730       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
30731       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
30732     }
30733 
30734     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30735     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)30736     public void MergeFrom(pb::CodedInputStream input) {
30737     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30738       input.ReadRawMessage(this);
30739     #else
30740       uint tag;
30741       while ((tag = input.ReadTag()) != 0) {
30742         switch(tag) {
30743           default:
30744             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
30745               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
30746             }
30747             break;
30748           case 4294960000: {
30749             OptionalInt32 = input.ReadInt32();
30750             break;
30751           }
30752           case 4294960008: {
30753             Fixed32 = input.ReadInt32();
30754             break;
30755           }
30756           case 4294960018:
30757           case 4294960016: {
30758             repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
30759             break;
30760           }
30761           case 4294960026:
30762           case 4294960024: {
30763             packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
30764             break;
30765           }
30766           case 4294960032: {
30767             OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
30768             break;
30769           }
30770           case 4294960042: {
30771             OptionalString = input.ReadString();
30772             break;
30773           }
30774           case 4294960050: {
30775             OptionalBytes = input.ReadBytes();
30776             break;
30777           }
30778           case 4294960058: {
30779             if (optionalMessage_ == null) {
30780               OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
30781             }
30782             input.ReadMessage(OptionalMessage);
30783             break;
30784           }
30785           case 4294960067: {
30786             if (!HasOptionalGroup) {
30787               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
30788             }
30789             input.ReadGroup(OptionalGroup);
30790             break;
30791           }
30792           case 4294960082: {
30793             stringStringMap_.AddEntriesFrom(input, _map_stringStringMap_codec);
30794             break;
30795           }
30796           case 4294960088: {
30797             OneofUint32 = input.ReadUInt32();
30798             break;
30799           }
30800           case 4294960098: {
30801             global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
30802             if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
30803               subBuilder.MergeFrom(OneofTestAllTypes);
30804             }
30805             input.ReadMessage(subBuilder);
30806             OneofTestAllTypes = subBuilder;
30807             break;
30808           }
30809           case 4294960106: {
30810             OneofString = input.ReadString();
30811             break;
30812           }
30813           case 4294960114: {
30814             OneofBytes = input.ReadBytes();
30815             break;
30816           }
30817         }
30818       }
30819     #endif
30820     }
30821 
30822     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30823     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30824     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)30825     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
30826       uint tag;
30827       while ((tag = input.ReadTag()) != 0) {
30828         switch(tag) {
30829           default:
30830             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
30831               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
30832             }
30833             break;
30834           case 4294960000: {
30835             OptionalInt32 = input.ReadInt32();
30836             break;
30837           }
30838           case 4294960008: {
30839             Fixed32 = input.ReadInt32();
30840             break;
30841           }
30842           case 4294960018:
30843           case 4294960016: {
30844             repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
30845             break;
30846           }
30847           case 4294960026:
30848           case 4294960024: {
30849             packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
30850             break;
30851           }
30852           case 4294960032: {
30853             OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
30854             break;
30855           }
30856           case 4294960042: {
30857             OptionalString = input.ReadString();
30858             break;
30859           }
30860           case 4294960050: {
30861             OptionalBytes = input.ReadBytes();
30862             break;
30863           }
30864           case 4294960058: {
30865             if (optionalMessage_ == null) {
30866               OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
30867             }
30868             input.ReadMessage(OptionalMessage);
30869             break;
30870           }
30871           case 4294960067: {
30872             if (!HasOptionalGroup) {
30873               OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
30874             }
30875             input.ReadGroup(OptionalGroup);
30876             break;
30877           }
30878           case 4294960082: {
30879             stringStringMap_.AddEntriesFrom(ref input, _map_stringStringMap_codec);
30880             break;
30881           }
30882           case 4294960088: {
30883             OneofUint32 = input.ReadUInt32();
30884             break;
30885           }
30886           case 4294960098: {
30887             global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
30888             if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
30889               subBuilder.MergeFrom(OneofTestAllTypes);
30890             }
30891             input.ReadMessage(subBuilder);
30892             OneofTestAllTypes = subBuilder;
30893             break;
30894           }
30895           case 4294960106: {
30896             OneofString = input.ReadString();
30897             break;
30898           }
30899           case 4294960114: {
30900             OneofBytes = input.ReadBytes();
30901             break;
30902           }
30903         }
30904       }
30905     }
30906     #endif
30907 
GetExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension)30908     public TValue GetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
30909       return pb::ExtensionSet.Get(ref _extensions, extension);
30910     }
GetExtension(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension)30911     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
30912       return pb::ExtensionSet.Get(ref _extensions, extension);
30913     }
GetOrInitializeExtension(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension)30914     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
30915       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
30916     }
SetExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue value)30917     public void SetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue value) {
30918       pb::ExtensionSet.Set(ref _extensions, extension, value);
30919     }
HasExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension)30920     public bool HasExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
30921       return pb::ExtensionSet.Has(ref _extensions, extension);
30922     }
ClearExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension)30923     public void ClearExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
30924       pb::ExtensionSet.Clear(ref _extensions, extension);
30925     }
ClearExtension(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension)30926     public void ClearExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
30927       pb::ExtensionSet.Clear(ref _extensions, extension);
30928     }
30929 
30930     #region Nested types
30931     /// <summary>Container for nested types declared in the TestHugeFieldNumbers message type.</summary>
30932     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30933     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30934     public static partial class Types {
30935       public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
30936       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30937           , pb::IBufferMessage
30938       #endif
30939       {
30940         private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
30941         private pb::UnknownFieldSet _unknownFields;
30942         private int _hasBits0;
30943         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30944         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30945         public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
30946 
30947         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30948         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30949         public static pbr::MessageDescriptor Descriptor {
30950           get { return global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Descriptor.NestedTypes[0]; }
30951         }
30952 
30953         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30954         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30955         pbr::MessageDescriptor pb::IMessage.Descriptor {
30956           get { return Descriptor; }
30957         }
30958 
30959         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30960         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup()30961         public OptionalGroup() {
30962           OnConstruction();
30963         }
30964 
OnConstruction()30965         partial void OnConstruction();
30966 
30967         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30968         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup(OptionalGroup other)30969         public OptionalGroup(OptionalGroup other) : this() {
30970           _hasBits0 = other._hasBits0;
30971           groupA_ = other.groupA_;
30972           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
30973         }
30974 
30975         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30976         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()30977         public OptionalGroup Clone() {
30978           return new OptionalGroup(this);
30979         }
30980 
30981         /// <summary>Field number for the "group_a" field.</summary>
30982         public const int GroupAFieldNumber = 536870009;
30983         private readonly static int GroupADefaultValue = 0;
30984 
30985         private int groupA_;
30986         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30987         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30988         public int GroupA {
30989           get { if ((_hasBits0 & 1) != 0) { return groupA_; } else { return GroupADefaultValue; } }
30990           set {
30991             _hasBits0 |= 1;
30992             groupA_ = value;
30993           }
30994         }
30995         /// <summary>Gets whether the "group_a" field is set</summary>
30996         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
30997         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
30998         public bool HasGroupA {
30999           get { return (_hasBits0 & 1) != 0; }
31000         }
31001         /// <summary>Clears the value of the "group_a" field</summary>
31002         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31003         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupA()31004         public void ClearGroupA() {
31005           _hasBits0 &= ~1;
31006         }
31007 
31008         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31009         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)31010         public override bool Equals(object other) {
31011           return Equals(other as OptionalGroup);
31012         }
31013 
31014         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31015         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup other)31016         public bool Equals(OptionalGroup other) {
31017           if (ReferenceEquals(other, null)) {
31018             return false;
31019           }
31020           if (ReferenceEquals(other, this)) {
31021             return true;
31022           }
31023           if (GroupA != other.GroupA) return false;
31024           return Equals(_unknownFields, other._unknownFields);
31025         }
31026 
31027         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31028         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()31029         public override int GetHashCode() {
31030           int hash = 1;
31031           if (HasGroupA) hash ^= GroupA.GetHashCode();
31032           if (_unknownFields != null) {
31033             hash ^= _unknownFields.GetHashCode();
31034           }
31035           return hash;
31036         }
31037 
31038         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31039         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()31040         public override string ToString() {
31041           return pb::JsonFormatter.ToDiagnosticString(this);
31042         }
31043 
31044         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31045         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)31046         public void WriteTo(pb::CodedOutputStream output) {
31047         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31048           output.WriteRawMessage(this);
31049         #else
31050           if (HasGroupA) {
31051             output.WriteRawTag(200, 199, 255, 255, 15);
31052             output.WriteInt32(GroupA);
31053           }
31054           if (_unknownFields != null) {
31055             _unknownFields.WriteTo(output);
31056           }
31057         #endif
31058         }
31059 
31060         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31061         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31062         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)31063         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
31064           if (HasGroupA) {
31065             output.WriteRawTag(200, 199, 255, 255, 15);
31066             output.WriteInt32(GroupA);
31067           }
31068           if (_unknownFields != null) {
31069             _unknownFields.WriteTo(ref output);
31070           }
31071         }
31072         #endif
31073 
31074         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31075         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()31076         public int CalculateSize() {
31077           int size = 0;
31078           if (HasGroupA) {
31079             size += 5 + pb::CodedOutputStream.ComputeInt32Size(GroupA);
31080           }
31081           if (_unknownFields != null) {
31082             size += _unknownFields.CalculateSize();
31083           }
31084           return size;
31085         }
31086 
31087         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31088         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup other)31089         public void MergeFrom(OptionalGroup other) {
31090           if (other == null) {
31091             return;
31092           }
31093           if (other.HasGroupA) {
31094             GroupA = other.GroupA;
31095           }
31096           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
31097         }
31098 
31099         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31100         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)31101         public void MergeFrom(pb::CodedInputStream input) {
31102         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31103           input.ReadRawMessage(this);
31104         #else
31105           uint tag;
31106           while ((tag = input.ReadTag()) != 0) {
31107             switch(tag) {
31108               case 4294960068:
31109                 return;
31110               default:
31111                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
31112                 break;
31113               case 4294960072: {
31114                 GroupA = input.ReadInt32();
31115                 break;
31116               }
31117             }
31118           }
31119         #endif
31120         }
31121 
31122         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31123         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31124         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)31125         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
31126           uint tag;
31127           while ((tag = input.ReadTag()) != 0) {
31128             switch(tag) {
31129               case 4294960068:
31130                 return;
31131               default:
31132                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
31133                 break;
31134               case 4294960072: {
31135                 GroupA = input.ReadInt32();
31136                 break;
31137               }
31138             }
31139           }
31140         }
31141         #endif
31142 
31143       }
31144 
31145     }
31146     #endregion
31147 
31148   }
31149 
31150   public sealed partial class TestExtensionInsideTable : pb::IExtendableMessage<TestExtensionInsideTable>
31151   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31152       , pb::IBufferMessage
31153   #endif
31154   {
31155     private static readonly pb::MessageParser<TestExtensionInsideTable> _parser = new pb::MessageParser<TestExtensionInsideTable>(() => new TestExtensionInsideTable());
31156     private pb::UnknownFieldSet _unknownFields;
31157     private pb::ExtensionSet<TestExtensionInsideTable> _extensions;
31158     private pb::ExtensionSet<TestExtensionInsideTable> _Extensions { get { return _extensions; } }
31159     private int _hasBits0;
31160     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31161     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31162     public static pb::MessageParser<TestExtensionInsideTable> Parser { get { return _parser; } }
31163 
31164     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31165     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31166     public static pbr::MessageDescriptor Descriptor {
31167       get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[64]; }
31168     }
31169 
31170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31171     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31172     pbr::MessageDescriptor pb::IMessage.Descriptor {
31173       get { return Descriptor; }
31174     }
31175 
31176     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31177     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionInsideTable()31178     public TestExtensionInsideTable() {
31179       OnConstruction();
31180     }
31181 
OnConstruction()31182     partial void OnConstruction();
31183 
31184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31185     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestExtensionInsideTable(TestExtensionInsideTable other)31186     public TestExtensionInsideTable(TestExtensionInsideTable other) : this() {
31187       _hasBits0 = other._hasBits0;
31188       field1_ = other.field1_;
31189       field2_ = other.field2_;
31190       field3_ = other.field3_;
31191       field4_ = other.field4_;
31192       field6_ = other.field6_;
31193       field7_ = other.field7_;
31194       field8_ = other.field8_;
31195       field9_ = other.field9_;
31196       field10_ = other.field10_;
31197       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
31198       _extensions = pb::ExtensionSet.Clone(other._extensions);
31199     }
31200 
31201     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31202     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()31203     public TestExtensionInsideTable Clone() {
31204       return new TestExtensionInsideTable(this);
31205     }
31206 
31207     /// <summary>Field number for the "field1" field.</summary>
31208     public const int Field1FieldNumber = 1;
31209     private readonly static int Field1DefaultValue = 0;
31210 
31211     private int field1_;
31212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31213     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31214     public int Field1 {
31215       get { if ((_hasBits0 & 1) != 0) { return field1_; } else { return Field1DefaultValue; } }
31216       set {
31217         _hasBits0 |= 1;
31218         field1_ = value;
31219       }
31220     }
31221     /// <summary>Gets whether the "field1" field is set</summary>
31222     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31223     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31224     public bool HasField1 {
31225       get { return (_hasBits0 & 1) != 0; }
31226     }
31227     /// <summary>Clears the value of the "field1" field</summary>
31228     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31229     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField1()31230     public void ClearField1() {
31231       _hasBits0 &= ~1;
31232     }
31233 
31234     /// <summary>Field number for the "field2" field.</summary>
31235     public const int Field2FieldNumber = 2;
31236     private readonly static int Field2DefaultValue = 0;
31237 
31238     private int field2_;
31239     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31240     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31241     public int Field2 {
31242       get { if ((_hasBits0 & 2) != 0) { return field2_; } else { return Field2DefaultValue; } }
31243       set {
31244         _hasBits0 |= 2;
31245         field2_ = value;
31246       }
31247     }
31248     /// <summary>Gets whether the "field2" field is set</summary>
31249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31250     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31251     public bool HasField2 {
31252       get { return (_hasBits0 & 2) != 0; }
31253     }
31254     /// <summary>Clears the value of the "field2" field</summary>
31255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField2()31257     public void ClearField2() {
31258       _hasBits0 &= ~2;
31259     }
31260 
31261     /// <summary>Field number for the "field3" field.</summary>
31262     public const int Field3FieldNumber = 3;
31263     private readonly static int Field3DefaultValue = 0;
31264 
31265     private int field3_;
31266     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31267     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31268     public int Field3 {
31269       get { if ((_hasBits0 & 4) != 0) { return field3_; } else { return Field3DefaultValue; } }
31270       set {
31271         _hasBits0 |= 4;
31272         field3_ = value;
31273       }
31274     }
31275     /// <summary>Gets whether the "field3" field is set</summary>
31276     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31277     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31278     public bool HasField3 {
31279       get { return (_hasBits0 & 4) != 0; }
31280     }
31281     /// <summary>Clears the value of the "field3" field</summary>
31282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31283     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField3()31284     public void ClearField3() {
31285       _hasBits0 &= ~4;
31286     }
31287 
31288     /// <summary>Field number for the "field4" field.</summary>
31289     public const int Field4FieldNumber = 4;
31290     private readonly static int Field4DefaultValue = 0;
31291 
31292     private int field4_;
31293     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31294     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31295     public int Field4 {
31296       get { if ((_hasBits0 & 8) != 0) { return field4_; } else { return Field4DefaultValue; } }
31297       set {
31298         _hasBits0 |= 8;
31299         field4_ = value;
31300       }
31301     }
31302     /// <summary>Gets whether the "field4" field is set</summary>
31303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31304     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31305     public bool HasField4 {
31306       get { return (_hasBits0 & 8) != 0; }
31307     }
31308     /// <summary>Clears the value of the "field4" field</summary>
31309     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31310     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField4()31311     public void ClearField4() {
31312       _hasBits0 &= ~8;
31313     }
31314 
31315     /// <summary>Field number for the "field6" field.</summary>
31316     public const int Field6FieldNumber = 6;
31317     private readonly static int Field6DefaultValue = 0;
31318 
31319     private int field6_;
31320     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31321     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31322     public int Field6 {
31323       get { if ((_hasBits0 & 16) != 0) { return field6_; } else { return Field6DefaultValue; } }
31324       set {
31325         _hasBits0 |= 16;
31326         field6_ = value;
31327       }
31328     }
31329     /// <summary>Gets whether the "field6" field is set</summary>
31330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31331     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31332     public bool HasField6 {
31333       get { return (_hasBits0 & 16) != 0; }
31334     }
31335     /// <summary>Clears the value of the "field6" field</summary>
31336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31337     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField6()31338     public void ClearField6() {
31339       _hasBits0 &= ~16;
31340     }
31341 
31342     /// <summary>Field number for the "field7" field.</summary>
31343     public const int Field7FieldNumber = 7;
31344     private readonly static int Field7DefaultValue = 0;
31345 
31346     private int field7_;
31347     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31348     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31349     public int Field7 {
31350       get { if ((_hasBits0 & 32) != 0) { return field7_; } else { return Field7DefaultValue; } }
31351       set {
31352         _hasBits0 |= 32;
31353         field7_ = value;
31354       }
31355     }
31356     /// <summary>Gets whether the "field7" field is set</summary>
31357     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31358     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31359     public bool HasField7 {
31360       get { return (_hasBits0 & 32) != 0; }
31361     }
31362     /// <summary>Clears the value of the "field7" field</summary>
31363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField7()31365     public void ClearField7() {
31366       _hasBits0 &= ~32;
31367     }
31368 
31369     /// <summary>Field number for the "field8" field.</summary>
31370     public const int Field8FieldNumber = 8;
31371     private readonly static int Field8DefaultValue = 0;
31372 
31373     private int field8_;
31374     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31375     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31376     public int Field8 {
31377       get { if ((_hasBits0 & 64) != 0) { return field8_; } else { return Field8DefaultValue; } }
31378       set {
31379         _hasBits0 |= 64;
31380         field8_ = value;
31381       }
31382     }
31383     /// <summary>Gets whether the "field8" field is set</summary>
31384     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31385     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31386     public bool HasField8 {
31387       get { return (_hasBits0 & 64) != 0; }
31388     }
31389     /// <summary>Clears the value of the "field8" field</summary>
31390     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31391     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField8()31392     public void ClearField8() {
31393       _hasBits0 &= ~64;
31394     }
31395 
31396     /// <summary>Field number for the "field9" field.</summary>
31397     public const int Field9FieldNumber = 9;
31398     private readonly static int Field9DefaultValue = 0;
31399 
31400     private int field9_;
31401     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31402     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31403     public int Field9 {
31404       get { if ((_hasBits0 & 128) != 0) { return field9_; } else { return Field9DefaultValue; } }
31405       set {
31406         _hasBits0 |= 128;
31407         field9_ = value;
31408       }
31409     }
31410     /// <summary>Gets whether the "field9" field is set</summary>
31411     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31412     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31413     public bool HasField9 {
31414       get { return (_hasBits0 & 128) != 0; }
31415     }
31416     /// <summary>Clears the value of the "field9" field</summary>
31417     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31418     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField9()31419     public void ClearField9() {
31420       _hasBits0 &= ~128;
31421     }
31422 
31423     /// <summary>Field number for the "field10" field.</summary>
31424     public const int Field10FieldNumber = 10;
31425     private readonly static int Field10DefaultValue = 0;
31426 
31427     private int field10_;
31428     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31429     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31430     public int Field10 {
31431       get { if ((_hasBits0 & 256) != 0) { return field10_; } else { return Field10DefaultValue; } }
31432       set {
31433         _hasBits0 |= 256;
31434         field10_ = value;
31435       }
31436     }
31437     /// <summary>Gets whether the "field10" field is set</summary>
31438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31439     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
31440     public bool HasField10 {
31441       get { return (_hasBits0 & 256) != 0; }
31442     }
31443     /// <summary>Clears the value of the "field10" field</summary>
31444     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31445     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField10()31446     public void ClearField10() {
31447       _hasBits0 &= ~256;
31448     }
31449 
31450     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31451     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)31452     public override bool Equals(object other) {
31453       return Equals(other as TestExtensionInsideTable);
31454     }
31455 
31456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31457     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestExtensionInsideTable other)31458     public bool Equals(TestExtensionInsideTable other) {
31459       if (ReferenceEquals(other, null)) {
31460         return false;
31461       }
31462       if (ReferenceEquals(other, this)) {
31463         return true;
31464       }
31465       if (Field1 != other.Field1) return false;
31466       if (Field2 != other.Field2) return false;
31467       if (Field3 != other.Field3) return false;
31468       if (Field4 != other.Field4) return false;
31469       if (Field6 != other.Field6) return false;
31470       if (Field7 != other.Field7) return false;
31471       if (Field8 != other.Field8) return false;
31472       if (Field9 != other.Field9) return false;
31473       if (Field10 != other.Field10) return false;
31474       if (!Equals(_extensions, other._extensions)) {
31475         return false;
31476       }
31477       return Equals(_unknownFields, other._unknownFields);
31478     }
31479 
31480     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31481     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()31482     public override int GetHashCode() {
31483       int hash = 1;
31484       if (HasField1) hash ^= Field1.GetHashCode();
31485       if (HasField2) hash ^= Field2.GetHashCode();
31486       if (HasField3) hash ^= Field3.GetHashCode();
31487       if (HasField4) hash ^= Field4.GetHashCode();
31488       if (HasField6) hash ^= Field6.GetHashCode();
31489       if (HasField7) hash ^= Field7.GetHashCode();
31490       if (HasField8) hash ^= Field8.GetHashCode();
31491       if (HasField9) hash ^= Field9.GetHashCode();
31492       if (HasField10) hash ^= Field10.GetHashCode();
31493       if (_extensions != null) {
31494         hash ^= _extensions.GetHashCode();
31495       }
31496       if (_unknownFields != null) {
31497         hash ^= _unknownFields.GetHashCode();
31498       }
31499       return hash;
31500     }
31501 
31502     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31503     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()31504     public override string ToString() {
31505       return pb::JsonFormatter.ToDiagnosticString(this);
31506     }
31507 
31508     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31509     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)31510     public void WriteTo(pb::CodedOutputStream output) {
31511     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31512       output.WriteRawMessage(this);
31513     #else
31514       if (HasField1) {
31515         output.WriteRawTag(8);
31516         output.WriteInt32(Field1);
31517       }
31518       if (HasField2) {
31519         output.WriteRawTag(16);
31520         output.WriteInt32(Field2);
31521       }
31522       if (HasField3) {
31523         output.WriteRawTag(24);
31524         output.WriteInt32(Field3);
31525       }
31526       if (HasField4) {
31527         output.WriteRawTag(32);
31528         output.WriteInt32(Field4);
31529       }
31530       if (HasField6) {
31531         output.WriteRawTag(48);
31532         output.WriteInt32(Field6);
31533       }
31534       if (HasField7) {
31535         output.WriteRawTag(56);
31536         output.WriteInt32(Field7);
31537       }
31538       if (HasField8) {
31539         output.WriteRawTag(64);
31540         output.WriteInt32(Field8);
31541       }
31542       if (HasField9) {
31543         output.WriteRawTag(72);
31544         output.WriteInt32(Field9);
31545       }
31546       if (HasField10) {
31547         output.WriteRawTag(80);
31548         output.WriteInt32(Field10);
31549       }
31550       if (_extensions != null) {
31551         _extensions.WriteTo(output);
31552       }
31553       if (_unknownFields != null) {
31554         _unknownFields.WriteTo(output);
31555       }
31556     #endif
31557     }
31558 
31559     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31560     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31561     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)31562     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
31563       if (HasField1) {
31564         output.WriteRawTag(8);
31565         output.WriteInt32(Field1);
31566       }
31567       if (HasField2) {
31568         output.WriteRawTag(16);
31569         output.WriteInt32(Field2);
31570       }
31571       if (HasField3) {
31572         output.WriteRawTag(24);
31573         output.WriteInt32(Field3);
31574       }
31575       if (HasField4) {
31576         output.WriteRawTag(32);
31577         output.WriteInt32(Field4);
31578       }
31579       if (HasField6) {
31580         output.WriteRawTag(48);
31581         output.WriteInt32(Field6);
31582       }
31583       if (HasField7) {
31584         output.WriteRawTag(56);
31585         output.WriteInt32(Field7);
31586       }
31587       if (HasField8) {
31588         output.WriteRawTag(64);
31589         output.WriteInt32(Field8);
31590       }
31591       if (HasField9) {
31592         output.WriteRawTag(72);
31593         output.WriteInt32(Field9);
31594       }
31595       if (HasField10) {
31596         output.WriteRawTag(80);
31597         output.WriteInt32(Field10);
31598       }
31599       if (_extensions != null) {
31600         _extensions.WriteTo(ref output);
31601       }
31602       if (_unknownFields != null) {
31603         _unknownFields.WriteTo(ref output);
31604       }
31605     }
31606     #endif
31607 
31608     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31609     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()31610     public int CalculateSize() {
31611       int size = 0;
31612       if (HasField1) {
31613         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field1);
31614       }
31615       if (HasField2) {
31616         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field2);
31617       }
31618       if (HasField3) {
31619         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field3);
31620       }
31621       if (HasField4) {
31622         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field4);
31623       }
31624       if (HasField6) {
31625         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field6);
31626       }
31627       if (HasField7) {
31628         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field7);
31629       }
31630       if (HasField8) {
31631         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field8);
31632       }
31633       if (HasField9) {
31634         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field9);
31635       }
31636       if (HasField10) {
31637         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field10);
31638       }
31639       if (_extensions != null) {
31640         size += _extensions.CalculateSize();
31641       }
31642       if (_unknownFields != null) {
31643         size += _unknownFields.CalculateSize();
31644       }
31645       return size;
31646     }
31647 
31648     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31649     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestExtensionInsideTable other)31650     public void MergeFrom(TestExtensionInsideTable other) {
31651       if (other == null) {
31652         return;
31653       }
31654       if (other.HasField1) {
31655         Field1 = other.Field1;
31656       }
31657       if (other.HasField2) {
31658         Field2 = other.Field2;
31659       }
31660       if (other.HasField3) {
31661         Field3 = other.Field3;
31662       }
31663       if (other.HasField4) {
31664         Field4 = other.Field4;
31665       }
31666       if (other.HasField6) {
31667         Field6 = other.Field6;
31668       }
31669       if (other.HasField7) {
31670         Field7 = other.Field7;
31671       }
31672       if (other.HasField8) {
31673         Field8 = other.Field8;
31674       }
31675       if (other.HasField9) {
31676         Field9 = other.Field9;
31677       }
31678       if (other.HasField10) {
31679         Field10 = other.Field10;
31680       }
31681       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
31682       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
31683     }
31684 
31685     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31686     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)31687     public void MergeFrom(pb::CodedInputStream input) {
31688     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31689       input.ReadRawMessage(this);
31690     #else
31691       uint tag;
31692       while ((tag = input.ReadTag()) != 0) {
31693         switch(tag) {
31694           default:
31695             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
31696               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
31697             }
31698             break;
31699           case 8: {
31700             Field1 = input.ReadInt32();
31701             break;
31702           }
31703           case 16: {
31704             Field2 = input.ReadInt32();
31705             break;
31706           }
31707           case 24: {
31708             Field3 = input.ReadInt32();
31709             break;
31710           }
31711           case 32: {
31712             Field4 = input.ReadInt32();
31713             break;
31714           }
31715           case 48: {
31716             Field6 = input.ReadInt32();
31717             break;
31718           }
31719           case 56: {
31720             Field7 = input.ReadInt32();
31721             break;
31722           }
31723           case 64: {
31724             Field8 = input.ReadInt32();
31725             break;
31726           }
31727           case 72: {
31728             Field9 = input.ReadInt32();
31729             break;
31730           }
31731           case 80: {
31732             Field10 = input.ReadInt32();
31733             break;
31734           }
31735         }
31736       }
31737     #endif
31738     }
31739 
31740     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31741     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
31742     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)31743     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
31744       uint tag;
31745       while ((tag = input.ReadTag()) != 0) {
31746         switch(tag) {
31747           default:
31748             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
31749               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
31750             }
31751             break;
31752           case 8: {
31753             Field1 = input.ReadInt32();
31754             break;
31755           }
31756           case 16: {
31757             Field2 = input.ReadInt32();
31758             break;
31759           }
31760           case 24: {
31761             Field3 = input.ReadInt32();
31762             break;
31763           }
31764           case 32: {
31765             Field4 = input.ReadInt32();
31766             break;
31767           }
31768           case 48: {
31769             Field6 = input.ReadInt32();
31770             break;
31771           }
31772           case 56: {
31773             Field7 = input.ReadInt32();
31774             break;
31775           }
31776           case 64: {
31777             Field8 = input.ReadInt32();
31778             break;
31779           }
31780           case 72: {
31781             Field9 = input.ReadInt32();
31782             break;
31783           }
31784           case 80: {
31785             Field10 = input.ReadInt32();
31786             break;
31787           }
31788         }
31789       }
31790     }
31791     #endif
31792 
GetExtension(pb::Extension<TestExtensionInsideTable, TValue> extension)31793     public TValue GetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
31794       return pb::ExtensionSet.Get(ref _extensions, extension);
31795     }
GetExtension(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension)31796     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
31797       return pb::ExtensionSet.Get(ref _extensions, extension);
31798     }
GetOrInitializeExtension(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension)31799     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
31800       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
31801     }
SetExtension(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue value)31802     public void SetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue value) {
31803       pb::ExtensionSet.Set(ref _extensions, extension, value);
31804     }
HasExtension(pb::Extension<TestExtensionInsideTable, TValue> extension)31805     public bool HasExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
31806       return pb::ExtensionSet.Has(ref _extensions, extension);
31807     }
ClearExtension(pb::Extension<TestExtensionInsideTable, TValue> extension)31808     public void ClearExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
31809       pb::ExtensionSet.Clear(ref _extensions, extension);
31810     }
ClearExtension(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension)31811     public void ClearExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
31812       pb::ExtensionSet.Clear(ref _extensions, extension);
31813     }
31814 
31815   }
31816 
31817   #endregion
31818 
31819 }
31820 
31821 #endregion Designer generated code
31822