• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: editions/golden/test_messages_proto2_editions.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 ProtobufTestMessages.Editions.Proto2 {
13 
14   /// <summary>Holder for reflection information generated from editions/golden/test_messages_proto2_editions.proto</summary>
15   public static partial class TestMessagesProto2EditionsReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for editions/golden/test_messages_proto2_editions.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
TestMessagesProto2EditionsReflection()24     static TestMessagesProto2EditionsReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CjNlZGl0aW9ucy9nb2xkZW4vdGVzdF9tZXNzYWdlc19wcm90bzJfZWRpdGlv",
28             "bnMucHJvdG8SJnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJv",
29             "dG8yIvJCChJUZXN0QWxsVHlwZXNQcm90bzISFgoOb3B0aW9uYWxfaW50MzIY",
30             "ASABKAUSFgoOb3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWlu",
31             "dDMyGAMgASgNEhcKD29wdGlvbmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25h",
32             "bF9zaW50MzIYBSABKBESFwoPb3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9w",
33             "dGlvbmFsX2ZpeGVkMzIYByABKAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEo",
34             "BhIZChFvcHRpb25hbF9zZml4ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4",
35             "ZWQ2NBgKIAEoEBIWCg5vcHRpb25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25h",
36             "bF9kb3VibGUYDCABKAESFQoNb3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRp",
37             "b25hbF9zdHJpbmcYDiABKAkSFgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSaQoX",
38             "b3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiABKAsySC5wcm90b2J1Zl90ZXN0",
39             "X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIu",
40             "TmVzdGVkTWVzc2FnZRJeChhvcHRpb25hbF9mb3JlaWduX21lc3NhZ2UYEyAB",
41             "KAsyPC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5G",
42             "b3JlaWduTWVzc2FnZVByb3RvMhJjChRvcHRpb25hbF9uZXN0ZWRfZW51bRgV",
43             "IAEoDjJFLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8y",
44             "LlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtElgKFW9wdGlvbmFsX2Zv",
45             "cmVpZ25fZW51bRgWIAEoDjI5LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRp",
46             "dGlvbnMucHJvdG8yLkZvcmVpZ25FbnVtUHJvdG8yEiEKFW9wdGlvbmFsX3N0",
47             "cmluZ19waWVjZRgYIAEoCUICCAISGQoNb3B0aW9uYWxfY29yZBgZIAEoCUIC",
48             "CAESVQoRcmVjdXJzaXZlX21lc3NhZ2UYGyABKAsyOi5wcm90b2J1Zl90ZXN0",
49             "X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIS",
50             "FgoOcmVwZWF0ZWRfaW50MzIYHyADKAUSFgoOcmVwZWF0ZWRfaW50NjQYICAD",
51             "KAMSFwoPcmVwZWF0ZWRfdWludDMyGCEgAygNEhcKD3JlcGVhdGVkX3VpbnQ2",
52             "NBgiIAMoBBIXCg9yZXBlYXRlZF9zaW50MzIYIyADKBESFwoPcmVwZWF0ZWRf",
53             "c2ludDY0GCQgAygSEhgKEHJlcGVhdGVkX2ZpeGVkMzIYJSADKAcSGAoQcmVw",
54             "ZWF0ZWRfZml4ZWQ2NBgmIAMoBhIZChFyZXBlYXRlZF9zZml4ZWQzMhgnIAMo",
55             "DxIZChFyZXBlYXRlZF9zZml4ZWQ2NBgoIAMoEBIWCg5yZXBlYXRlZF9mbG9h",
56             "dBgpIAMoAhIXCg9yZXBlYXRlZF9kb3VibGUYKiADKAESFQoNcmVwZWF0ZWRf",
57             "Ym9vbBgrIAMoCBIXCg9yZXBlYXRlZF9zdHJpbmcYLCADKAkSFgoOcmVwZWF0",
58             "ZWRfYnl0ZXMYLSADKAwSaQoXcmVwZWF0ZWRfbmVzdGVkX21lc3NhZ2UYMCAD",
59             "KAsySC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5U",
60             "ZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZRJeChhyZXBlYXRlZF9m",
61             "b3JlaWduX21lc3NhZ2UYMSADKAsyPC5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
62             "LmVkaXRpb25zLnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMhJjChRyZXBl",
63             "YXRlZF9uZXN0ZWRfZW51bRgzIAMoDjJFLnByb3RvYnVmX3Rlc3RfbWVzc2Fn",
64             "ZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRF",
65             "bnVtElgKFXJlcGVhdGVkX2ZvcmVpZ25fZW51bRg0IAMoDjI5LnByb3RvYnVm",
66             "X3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLkZvcmVpZ25FbnVtUHJv",
67             "dG8yEiEKFXJlcGVhdGVkX3N0cmluZ19waWVjZRg2IAMoCUICCAISGQoNcmVw",
68             "ZWF0ZWRfY29yZBg3IAMoCUICCAESGwoMcGFja2VkX2ludDMyGEsgAygFQgWq",
69             "AQIYARIbCgxwYWNrZWRfaW50NjQYTCADKANCBaoBAhgBEhwKDXBhY2tlZF91",
70             "aW50MzIYTSADKA1CBaoBAhgBEhwKDXBhY2tlZF91aW50NjQYTiADKARCBaoB",
71             "AhgBEhwKDXBhY2tlZF9zaW50MzIYTyADKBFCBaoBAhgBEhwKDXBhY2tlZF9z",
72             "aW50NjQYUCADKBJCBaoBAhgBEh0KDnBhY2tlZF9maXhlZDMyGFEgAygHQgWq",
73             "AQIYARIdCg5wYWNrZWRfZml4ZWQ2NBhSIAMoBkIFqgECGAESHgoPcGFja2Vk",
74             "X3NmaXhlZDMyGFMgAygPQgWqAQIYARIeCg9wYWNrZWRfc2ZpeGVkNjQYVCAD",
75             "KBBCBaoBAhgBEhsKDHBhY2tlZF9mbG9hdBhVIAMoAkIFqgECGAESHAoNcGFj",
76             "a2VkX2RvdWJsZRhWIAMoAUIFqgECGAESGgoLcGFja2VkX2Jvb2wYVyADKAhC",
77             "BaoBAhgBEmgKEnBhY2tlZF9uZXN0ZWRfZW51bRhYIAMoDjJFLnByb3RvYnVm",
78             "X3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxUeXBlc1By",
79             "b3RvMi5OZXN0ZWRFbnVtQgWqAQIYARIWCg51bnBhY2tlZF9pbnQzMhhZIAMo",
80             "BRIWCg51bnBhY2tlZF9pbnQ2NBhaIAMoAxIXCg91bnBhY2tlZF91aW50MzIY",
81             "WyADKA0SFwoPdW5wYWNrZWRfdWludDY0GFwgAygEEhcKD3VucGFja2VkX3Np",
82             "bnQzMhhdIAMoERIXCg91bnBhY2tlZF9zaW50NjQYXiADKBISGAoQdW5wYWNr",
83             "ZWRfZml4ZWQzMhhfIAMoBxIYChB1bnBhY2tlZF9maXhlZDY0GGAgAygGEhkK",
84             "EXVucGFja2VkX3NmaXhlZDMyGGEgAygPEhkKEXVucGFja2VkX3NmaXhlZDY0",
85             "GGIgAygQEhYKDnVucGFja2VkX2Zsb2F0GGMgAygCEhcKD3VucGFja2VkX2Rv",
86             "dWJsZRhkIAMoARIVCg11bnBhY2tlZF9ib29sGGUgAygIEmMKFHVucGFja2Vk",
87             "X25lc3RlZF9lbnVtGGYgAygOMkUucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5l",
88             "ZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVudW0S",
89             "ZgoPbWFwX2ludDMyX2ludDMyGDggAygLMk0ucHJvdG9idWZfdGVzdF9tZXNz",
90             "YWdlcy5lZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcElu",
91             "dDMySW50MzJFbnRyeRJmCg9tYXBfaW50NjRfaW50NjQYOSADKAsyTS5wcm90",
92             "b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlw",
93             "ZXNQcm90bzIuTWFwSW50NjRJbnQ2NEVudHJ5EmoKEW1hcF91aW50MzJfdWlu",
94             "dDMyGDogAygLMk8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5w",
95             "cm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFVpbnQzMlVpbnQzMkVudHJ5",
96             "EmoKEW1hcF91aW50NjRfdWludDY0GDsgAygLMk8ucHJvdG9idWZfdGVzdF9t",
97             "ZXNzYWdlcy5lZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1h",
98             "cFVpbnQ2NFVpbnQ2NEVudHJ5EmoKEW1hcF9zaW50MzJfc2ludDMyGDwgAygL",
99             "Mk8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5wcm90bzIuVGVz",
100             "dEFsbFR5cGVzUHJvdG8yLk1hcFNpbnQzMlNpbnQzMkVudHJ5EmoKEW1hcF9z",
101             "aW50NjRfc2ludDY0GD0gAygLMk8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5l",
102             "ZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNpbnQ2NFNp",
103             "bnQ2NEVudHJ5Em4KE21hcF9maXhlZDMyX2ZpeGVkMzIYPiADKAsyUS5wcm90",
104             "b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlw",
105             "ZXNQcm90bzIuTWFwRml4ZWQzMkZpeGVkMzJFbnRyeRJuChNtYXBfZml4ZWQ2",
106             "NF9maXhlZDY0GD8gAygLMlEucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0",
107             "aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcEZpeGVkNjRGaXhl",
108             "ZDY0RW50cnkScgoVbWFwX3NmaXhlZDMyX3NmaXhlZDMyGEAgAygLMlMucHJv",
109             "dG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5",
110             "cGVzUHJvdG8yLk1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRJyChVtYXBfc2Zp",
111             "eGVkNjRfc2ZpeGVkNjQYQSADKAsyUy5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
112             "LmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU2ZpeGVk",
113             "NjRTZml4ZWQ2NEVudHJ5EmYKD21hcF9pbnQzMl9mbG9hdBhCIAMoCzJNLnBy",
114             "b3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxU",
115             "eXBlc1Byb3RvMi5NYXBJbnQzMkZsb2F0RW50cnkSaAoQbWFwX2ludDMyX2Rv",
116             "dWJsZRhDIAMoCzJOLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMu",
117             "cHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBJbnQzMkRvdWJsZUVudHJ5",
118             "EmIKDW1hcF9ib29sX2Jvb2wYRCADKAsySy5wcm90b2J1Zl90ZXN0X21lc3Nh",
119             "Z2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwQm9v",
120             "bEJvb2xFbnRyeRJqChFtYXBfc3RyaW5nX3N0cmluZxhFIAMoCzJPLnByb3Rv",
121             "YnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxUeXBl",
122             "c1Byb3RvMi5NYXBTdHJpbmdTdHJpbmdFbnRyeRJoChBtYXBfc3RyaW5nX2J5",
123             "dGVzGEYgAygLMk4ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5w",
124             "cm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFN0cmluZ0J5dGVzRW50cnkS",
125             "eQoZbWFwX3N0cmluZ19uZXN0ZWRfbWVzc2FnZRhHIAMoCzJWLnByb3RvYnVm",
126             "X3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxUeXBlc1By",
127             "b3RvMi5NYXBTdHJpbmdOZXN0ZWRNZXNzYWdlRW50cnkSewoabWFwX3N0cmlu",
128             "Z19mb3JlaWduX21lc3NhZ2UYSCADKAsyVy5wcm90b2J1Zl90ZXN0X21lc3Nh",
129             "Z2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3Ry",
130             "aW5nRm9yZWlnbk1lc3NhZ2VFbnRyeRJzChZtYXBfc3RyaW5nX25lc3RlZF9l",
131             "bnVtGEkgAygLMlMucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5w",
132             "cm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFN0cmluZ05lc3RlZEVudW1F",
133             "bnRyeRJ1ChdtYXBfc3RyaW5nX2ZvcmVpZ25fZW51bRhKIAMoCzJULnByb3Rv",
134             "YnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxUeXBl",
135             "c1Byb3RvMi5NYXBTdHJpbmdGb3JlaWduRW51bUVudHJ5EhYKDG9uZW9mX3Vp",
136             "bnQzMhhvIAEoDUgAEmgKFG9uZW9mX25lc3RlZF9tZXNzYWdlGHAgASgLMkgu",
137             "cHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5wcm90bzIuVGVzdEFs",
138             "bFR5cGVzUHJvdG8yLk5lc3RlZE1lc3NhZ2VIABIWCgxvbmVvZl9zdHJpbmcY",
139             "cSABKAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAEhQKCm9uZW9mX2Jvb2wY",
140             "cyABKAhIABIWCgxvbmVvZl91aW50NjQYdCABKARIABIVCgtvbmVvZl9mbG9h",
141             "dBh1IAEoAkgAEhYKDG9uZW9mX2RvdWJsZRh2IAEoAUgAElsKCm9uZW9mX2Vu",
142             "dW0YdyABKA4yRS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnBy",
143             "b3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkRW51bUgAElUKBGRhdGEY",
144             "yQEgASgLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5wcm90",
145             "bzIuVGVzdEFsbFR5cGVzUHJvdG8yLkRhdGFCBaoBAigCEnMKE211bHRpd29y",
146             "ZGdyb3VwZmllbGQYzAEgASgLMk4ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5l",
147             "ZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk11bHRpV29yZEdy",
148             "b3VwRmllbGRCBaoBAigCEiIKDWRlZmF1bHRfaW50MzIY8QEgASgFOgotMTIz",
149             "NDU2Nzg5EiwKDWRlZmF1bHRfaW50NjQY8gEgASgDOhQtOTEyMzQ1Njc4OTEy",
150             "MzQ1Njc4ORIjCg5kZWZhdWx0X3VpbnQzMhjzASABKA06CjIxMjM0NTY3ODkS",
151             "LQoOZGVmYXVsdF91aW50NjQY9AEgASgEOhQxMDEyMzQ1Njc4OTEyMzQ1Njc4",
152             "ORIjCg5kZWZhdWx0X3NpbnQzMhj1ASABKBE6Ci0xMjM0NTY3ODkSLQoOZGVm",
153             "YXVsdF9zaW50NjQY9gEgASgSOhQtOTEyMzQ1Njc4OTEyMzQ1Njc4ORIkCg9k",
154             "ZWZhdWx0X2ZpeGVkMzIY9wEgASgHOgoyMTIzNDU2Nzg5Ei4KD2RlZmF1bHRf",
155             "Zml4ZWQ2NBj4ASABKAY6FDEwMTIzNDU2Nzg5MTIzNDU2Nzg5EiUKEGRlZmF1",
156             "bHRfc2ZpeGVkMzIY+QEgASgPOgotMTIzNDU2Nzg5Ei8KEGRlZmF1bHRfc2Zp",
157             "eGVkNjQY+gEgASgQOhQtOTEyMzQ1Njc4OTEyMzQ1Njc4ORIdCg1kZWZhdWx0",
158             "X2Zsb2F0GPsBIAEoAjoFOWUrMDkSHgoOZGVmYXVsdF9kb3VibGUY/AEgASgB",
159             "OgU3ZSsyMhIbCgxkZWZhdWx0X2Jvb2wY/QEgASgIOgR0cnVlEiAKDmRlZmF1",
160             "bHRfc3RyaW5nGP4BIAEoCToHUm9zZWJ1ZBIeCg1kZWZhdWx0X2J5dGVzGP8B",
161             "IAEoDDoGam9zaHVhEhMKCmZpZWxkbmFtZTEYkQMgASgFEhQKC2ZpZWxkX25h",
162             "bWUyGJIDIAEoBRIVCgxfZmllbGRfbmFtZTMYkwMgASgFEhYKDWZpZWxkX19u",
163             "YW1lNF8YlAMgASgFEhQKC2ZpZWxkMG5hbWU1GJUDIAEoBRIWCg1maWVsZF8w",
164             "X25hbWU2GJYDIAEoBRITCgpmaWVsZE5hbWU3GJcDIAEoBRITCgpGaWVsZE5h",
165             "bWU4GJgDIAEoBRIUCgtmaWVsZF9OYW1lORiZAyABKAUSFQoMRmllbGRfTmFt",
166             "ZTEwGJoDIAEoBRIVCgxGSUVMRF9OQU1FMTEYmwMgASgFEhUKDEZJRUxEX25h",
167             "bWUxMhicAyABKAUSFwoOX19maWVsZF9uYW1lMTMYnQMgASgFEhcKDl9fRmll",
168             "bGRfbmFtZTE0GJ4DIAEoBRIWCg1maWVsZF9fbmFtZTE1GJ8DIAEoBRIWCg1m",
169             "aWVsZF9fTmFtZTE2GKADIAEoBRIXCg5maWVsZF9uYW1lMTdfXxihAyABKAUS",
170             "FwoORmllbGRfbmFtZTE4X18YogMgASgFGmsKDU5lc3RlZE1lc3NhZ2USCQoB",
171             "YRgBIAEoBRJPCgtjb3JlY3Vyc2l2ZRgCIAEoCzI6LnByb3RvYnVmX3Rlc3Rf",
172             "bWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMho0",
173             "ChJNYXBJbnQzMkludDMyRW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIg",
174             "ASgFOgI4ARo0ChJNYXBJbnQ2NEludDY0RW50cnkSCwoDa2V5GAEgASgDEg0K",
175             "BXZhbHVlGAIgASgDOgI4ARo2ChRNYXBVaW50MzJVaW50MzJFbnRyeRILCgNr",
176             "ZXkYASABKA0SDQoFdmFsdWUYAiABKA06AjgBGjYKFE1hcFVpbnQ2NFVpbnQ2",
177             "NEVudHJ5EgsKA2tleRgBIAEoBBINCgV2YWx1ZRgCIAEoBDoCOAEaNgoUTWFw",
178             "U2ludDMyU2ludDMyRW50cnkSCwoDa2V5GAEgASgREg0KBXZhbHVlGAIgASgR",
179             "OgI4ARo2ChRNYXBTaW50NjRTaW50NjRFbnRyeRILCgNrZXkYASABKBISDQoF",
180             "dmFsdWUYAiABKBI6AjgBGjgKFk1hcEZpeGVkMzJGaXhlZDMyRW50cnkSCwoD",
181             "a2V5GAEgASgHEg0KBXZhbHVlGAIgASgHOgI4ARo4ChZNYXBGaXhlZDY0Rml4",
182             "ZWQ2NEVudHJ5EgsKA2tleRgBIAEoBhINCgV2YWx1ZRgCIAEoBjoCOAEaOgoY",
183             "TWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5EgsKA2tleRgBIAEoDxINCgV2YWx1",
184             "ZRgCIAEoDzoCOAEaOgoYTWFwU2ZpeGVkNjRTZml4ZWQ2NEVudHJ5EgsKA2tl",
185             "eRgBIAEoEBINCgV2YWx1ZRgCIAEoEDoCOAEaNAoSTWFwSW50MzJGbG9hdEVu",
186             "dHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoAjoCOAEaNQoTTWFwSW50",
187             "MzJEb3VibGVFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAE6AjgB",
188             "GjIKEE1hcEJvb2xCb29sRW50cnkSCwoDa2V5GAEgASgIEg0KBXZhbHVlGAIg",
189             "ASgIOgI4ARo2ChRNYXBTdHJpbmdTdHJpbmdFbnRyeRILCgNrZXkYASABKAkS",
190             "DQoFdmFsdWUYAiABKAk6AjgBGjUKE01hcFN0cmluZ0J5dGVzRW50cnkSCwoD",
191             "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4ARqHAQobTWFwU3RyaW5nTmVz",
192             "dGVkTWVzc2FnZUVudHJ5EgsKA2tleRgBIAEoCRJXCgV2YWx1ZRgCIAEoCzJI",
193             "LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RB",
194             "bGxUeXBlc1Byb3RvMi5OZXN0ZWRNZXNzYWdlOgI4ARp8ChxNYXBTdHJpbmdG",
195             "b3JlaWduTWVzc2FnZUVudHJ5EgsKA2tleRgBIAEoCRJLCgV2YWx1ZRgCIAEo",
196             "CzI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLkZv",
197             "cmVpZ25NZXNzYWdlUHJvdG8yOgI4ARqBAQoYTWFwU3RyaW5nTmVzdGVkRW51",
198             "bUVudHJ5EgsKA2tleRgBIAEoCRJUCgV2YWx1ZRgCIAEoDjJFLnByb3RvYnVm",
199             "X3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxUeXBlc1By",
200             "b3RvMi5OZXN0ZWRFbnVtOgI4ARp2ChlNYXBTdHJpbmdGb3JlaWduRW51bUVu",
201             "dHJ5EgsKA2tleRgBIAEoCRJICgV2YWx1ZRgCIAEoDjI5LnByb3RvYnVmX3Rl",
202             "c3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLkZvcmVpZ25FbnVtUHJvdG8y",
203             "OgI4ARozCgREYXRhEhQKC2dyb3VwX2ludDMyGMoBIAEoBRIVCgxncm91cF91",
204             "aW50MzIYywEgASgNGkIKE011bHRpV29yZEdyb3VwRmllbGQSFAoLZ3JvdXBf",
205             "aW50MzIYzQEgASgFEhUKDGdyb3VwX3VpbnQzMhjOASABKA0aIQoRTWVzc2Fn",
206             "ZVNldENvcnJlY3QqCAgEEP////8HOgIIARryAQobTWVzc2FnZVNldENvcnJl",
207             "Y3RFeHRlbnNpb24xEgsKA3N0chgZIAEoCTLFAQoVbWVzc2FnZV9zZXRfZXh0",
208             "ZW5zaW9uEkwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5wcm90",
209             "bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0GPm7XiAB",
210             "KAsyVi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5U",
211             "ZXN0QWxsVHlwZXNQcm90bzIuTWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24x",
212             "GvEBChtNZXNzYWdlU2V0Q29ycmVjdEV4dGVuc2lvbjISCQoBaRgJIAEoBTLG",
213             "AQoVbWVzc2FnZV9zZXRfZXh0ZW5zaW9uEkwucHJvdG9idWZfdGVzdF9tZXNz",
214             "YWdlcy5lZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3Nh",
215             "Z2VTZXRDb3JyZWN0GJCz/AEgASgLMlYucHJvdG9idWZfdGVzdF9tZXNzYWdl",
216             "cy5lZGl0aW9ucy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3NhZ2VT",
217             "ZXRDb3JyZWN0RXh0ZW5zaW9uMiI5CgpOZXN0ZWRFbnVtEgcKA0ZPTxAAEgcK",
218             "A0JBUhABEgcKA0JBWhACEhAKA05FRxD///////////8BKgUIeBDJAUINCgtv",
219             "bmVvZl9maWVsZEoGCOgHEJBOIiEKFEZvcmVpZ25NZXNzYWdlUHJvdG8yEgkK",
220             "AWMYASABKAUiNwoKR3JvdXBGaWVsZBITCgtncm91cF9pbnQzMhh6IAEoBRIU",
221             "Cgxncm91cF91aW50MzIYeyABKA0i2gIKFVVua25vd25Ub1Rlc3RBbGxUeXBl",
222             "cxIXCg5vcHRpb25hbF9pbnQzMhjpByABKAUSGAoPb3B0aW9uYWxfc3RyaW5n",
223             "GOoHIAEoCRJVCg5uZXN0ZWRfbWVzc2FnZRjrByABKAsyPC5wcm90b2J1Zl90",
224             "ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5Gb3JlaWduTWVzc2FnZVBy",
225             "b3RvMhJqCg1vcHRpb25hbGdyb3VwGOwHIAEoCzJLLnByb3RvYnVmX3Rlc3Rf",
226             "bWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlVua25vd25Ub1Rlc3RBbGxUeXBl",
227             "cy5PcHRpb25hbEdyb3VwQgWqAQIoAhIWCg1vcHRpb25hbF9ib29sGO4HIAEo",
228             "CBIXCg5yZXBlYXRlZF9pbnQzMhjzByADKAUaGgoNT3B0aW9uYWxHcm91cBIJ",
229             "CgFhGAEgASgFIhYKFE51bGxIeXBvdGhlc2lzUHJvdG8yIi8KDkVudW1Pbmx5",
230             "UHJvdG8yIh0KBEJvb2wSCgoGa0ZhbHNlEAASCQoFa1RydWUQASIfCg9PbmVT",
231             "dHJpbmdQcm90bzISDAoEZGF0YRgBIAEoCSJGChFQcm90b1dpdGhLZXl3b3Jk",
232             "cxIOCgZpbmxpbmUYASABKAUSDwoHY29uY2VwdBgCIAEoCRIQCghyZXF1aXJl",
233             "cxgDIAMoCSKFFwoaVGVzdEFsbFJlcXVpcmVkVHlwZXNQcm90bzISHQoOcmVx",
234             "dWlyZWRfaW50MzIYASABKAVCBaoBAggDEh0KDnJlcXVpcmVkX2ludDY0GAIg",
235             "ASgDQgWqAQIIAxIeCg9yZXF1aXJlZF91aW50MzIYAyABKA1CBaoBAggDEh4K",
236             "D3JlcXVpcmVkX3VpbnQ2NBgEIAEoBEIFqgECCAMSHgoPcmVxdWlyZWRfc2lu",
237             "dDMyGAUgASgRQgWqAQIIAxIeCg9yZXF1aXJlZF9zaW50NjQYBiABKBJCBaoB",
238             "AggDEh8KEHJlcXVpcmVkX2ZpeGVkMzIYByABKAdCBaoBAggDEh8KEHJlcXVp",
239             "cmVkX2ZpeGVkNjQYCCABKAZCBaoBAggDEiAKEXJlcXVpcmVkX3NmaXhlZDMy",
240             "GAkgASgPQgWqAQIIAxIgChFyZXF1aXJlZF9zZml4ZWQ2NBgKIAEoEEIFqgEC",
241             "CAMSHQoOcmVxdWlyZWRfZmxvYXQYCyABKAJCBaoBAggDEh4KD3JlcXVpcmVk",
242             "X2RvdWJsZRgMIAEoAUIFqgECCAMSHAoNcmVxdWlyZWRfYm9vbBgNIAEoCEIF",
243             "qgECCAMSHgoPcmVxdWlyZWRfc3RyaW5nGA4gASgJQgWqAQIIAxIdCg5yZXF1",
244             "aXJlZF9ieXRlcxgPIAEoDEIFqgECCAMSeAoXcmVxdWlyZWRfbmVzdGVkX21l",
245             "c3NhZ2UYEiABKAsyUC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25z",
246             "LnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5OZXN0ZWRNZXNz",
247             "YWdlQgWqAQIIAxJlChhyZXF1aXJlZF9mb3JlaWduX21lc3NhZ2UYEyABKAsy",
248             "PC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5Gb3Jl",
249             "aWduTWVzc2FnZVByb3RvMkIFqgECCAMScgoUcmVxdWlyZWRfbmVzdGVkX2Vu",
250             "dW0YFSABKA4yTS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnBy",
251             "b3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtQgWq",
252             "AQIIAxJfChVyZXF1aXJlZF9mb3JlaWduX2VudW0YFiABKA4yOS5wcm90b2J1",
253             "Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5Gb3JlaWduRW51bVBy",
254             "b3RvMkIFqgECCAMSJgoVcmVxdWlyZWRfc3RyaW5nX3BpZWNlGBggASgJQgcI",
255             "AqoBAggDEh4KDXJlcXVpcmVkX2NvcmQYGSABKAlCBwgBqgECCAMSZAoRcmVj",
256             "dXJzaXZlX21lc3NhZ2UYGyABKAsyQi5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
257             "LmVkaXRpb25zLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMkIF",
258             "qgECCAMSZgoab3B0aW9uYWxfcmVjdXJzaXZlX21lc3NhZ2UYHCABKAsyQi5w",
259             "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxs",
260             "UmVxdWlyZWRUeXBlc1Byb3RvMhJfCgRkYXRhGMkBIAEoCzJHLnByb3RvYnVm",
261             "X3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RBbGxSZXF1aXJl",
262             "ZFR5cGVzUHJvdG8yLkRhdGFCB6oBBAgDKAISKQoNZGVmYXVsdF9pbnQzMhjx",
263             "ASABKAU6Ci0xMjM0NTY3ODlCBaoBAggDEjMKDWRlZmF1bHRfaW50NjQY8gEg",
264             "ASgDOhQtOTEyMzQ1Njc4OTEyMzQ1Njc4OUIFqgECCAMSKgoOZGVmYXVsdF91",
265             "aW50MzIY8wEgASgNOgoyMTIzNDU2Nzg5QgWqAQIIAxI0Cg5kZWZhdWx0X3Vp",
266             "bnQ2NBj0ASABKAQ6FDEwMTIzNDU2Nzg5MTIzNDU2Nzg5QgWqAQIIAxIqCg5k",
267             "ZWZhdWx0X3NpbnQzMhj1ASABKBE6Ci0xMjM0NTY3ODlCBaoBAggDEjQKDmRl",
268             "ZmF1bHRfc2ludDY0GPYBIAEoEjoULTkxMjM0NTY3ODkxMjM0NTY3ODlCBaoB",
269             "AggDEisKD2RlZmF1bHRfZml4ZWQzMhj3ASABKAc6CjIxMjM0NTY3ODlCBaoB",
270             "AggDEjUKD2RlZmF1bHRfZml4ZWQ2NBj4ASABKAY6FDEwMTIzNDU2Nzg5MTIz",
271             "NDU2Nzg5QgWqAQIIAxIsChBkZWZhdWx0X3NmaXhlZDMyGPkBIAEoDzoKLTEy",
272             "MzQ1Njc4OUIFqgECCAMSNgoQZGVmYXVsdF9zZml4ZWQ2NBj6ASABKBA6FC05",
273             "MTIzNDU2Nzg5MTIzNDU2Nzg5QgWqAQIIAxIkCg1kZWZhdWx0X2Zsb2F0GPsB",
274             "IAEoAjoFOWUrMDlCBaoBAggDEiUKDmRlZmF1bHRfZG91YmxlGPwBIAEoAToF",
275             "N2UrMjJCBaoBAggDEiIKDGRlZmF1bHRfYm9vbBj9ASABKAg6BHRydWVCBaoB",
276             "AggDEicKDmRlZmF1bHRfc3RyaW5nGP4BIAEoCToHUm9zZWJ1ZEIFqgECCAMS",
277             "JQoNZGVmYXVsdF9ieXRlcxj/ASABKAw6Bmpvc2h1YUIFqgECCAMa4wEKDU5l",
278             "c3RlZE1lc3NhZ2USEAoBYRgBIAEoBUIFqgECCAMSXgoLY29yZWN1cnNpdmUY",
279             "AiABKAsyQi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3Rv",
280             "Mi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMkIFqgECCAMSYAoUb3B0aW9u",
281             "YWxfY29yZWN1cnNpdmUYAyABKAsyQi5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
282             "LmVkaXRpb25zLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMhpB",
283             "CgREYXRhEhsKC2dyb3VwX2ludDMyGMoBIAEoBUIFqgECCAMSHAoMZ3JvdXBf",
284             "dWludDMyGMsBIAEoDUIFqgECCAMaIQoRTWVzc2FnZVNldENvcnJlY3QqCAgE",
285             "EP////8HOgIIARqJAgobTWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24xEhIK",
286             "A3N0chgZIAEoCUIFqgECCAMy1QEKFW1lc3NhZ2Vfc2V0X2V4dGVuc2lvbhJU",
287             "LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMucHJvdG8yLlRlc3RB",
288             "bGxSZXF1aXJlZFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0GPm7XiAB",
289             "KAsyXi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5U",
290             "ZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVjdEV4",
291             "dGVuc2lvbjEaiAIKG01lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMhIQCgFp",
292             "GAkgASgFQgWqAQIIAzLWAQoVbWVzc2FnZV9zZXRfZXh0ZW5zaW9uElQucHJv",
293             "dG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5wcm90bzIuVGVzdEFsbFJl",
294             "cXVpcmVkVHlwZXNQcm90bzIuTWVzc2FnZVNldENvcnJlY3QYkLP8ASABKAsy",
295             "Xi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0",
296             "QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVjdEV4dGVu",
297             "c2lvbjIiOQoKTmVzdGVkRW51bRIHCgNGT08QABIHCgNCQVIQARIHCgNCQVoQ",
298             "AhIQCgNORUcQ////////////ASoFCHgQyQFKBgjoBxCQTipGChFGb3JlaWdu",
299             "RW51bVByb3RvMhIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAES",
300             "DwoLRk9SRUlHTl9CQVoQAjpTCg9leHRlbnNpb25faW50MzISOi5wcm90b2J1",
301             "Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlwZXNQ",
302             "cm90bzIYeCABKAU6iQEKCmdyb3VwZmllbGQSOi5wcm90b2J1Zl90ZXN0X21l",
303             "c3NhZ2VzLmVkaXRpb25zLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIYeSAB",
304             "KAsyMi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25zLnByb3RvMi5H",
305             "cm91cEZpZWxkQgWqAQIoAkJSCjFjb20uZ29vZ2xlLnByb3RvYnVmX3Rlc3Rf",
306             "bWVzc2FnZXMuZWRpdGlvbnMucHJvdG8ySAH4AQGiAg5FZGl0aW9uc1Byb3Rv",
307             "MpIDBhACGAIgA2IIZWRpdGlvbnNw6Ac="));
308       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
309           new pbr::FileDescriptor[] { },
310           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2), }, new pb::Extension[] { TestMessagesProto2EditionsExtensions.ExtensionInt32, TestMessagesProto2EditionsExtensions.GroupField }, new pbr::GeneratedClrTypeInfo[] {
311             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2), global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedNestedEnum", "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedNestedEnum", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofBool", "OneofUint64", "OneofFloat", "OneofDouble", "OneofEnum", "Data", "MultiWordGroupField", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12", "FieldName13", "FieldName14", "FieldName15", "FieldName16", "FieldName17", "FieldName18" }, new[]{ "OneofField" }, new[]{ typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage), global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null, null),
312             null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.Data), global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.Data.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null),
313             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MultiWordGroupField), global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MultiWordGroupField.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null),
314             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrect), global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrect.Parser, null, null, null, null, null),
315             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1), global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser, new[]{ "Str" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Extensions.MessageSetExtension }, null),
316             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2), global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser, new[]{ "I" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Extensions.MessageSetExtension }, null)}),
317             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2), global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2.Parser, new[]{ "C" }, null, null, null, null),
318             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.GroupField), global::ProtobufTestMessages.Editions.Proto2.GroupField.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null),
319             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes), global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalString", "NestedMessage", "OptionalGroup", "OptionalBool", "RepeatedInt32" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Types.OptionalGroup), global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null)}),
320             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.NullHypothesisProto2), global::ProtobufTestMessages.Editions.Proto2.NullHypothesisProto2.Parser, null, null, null, null, null),
321             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.EnumOnlyProto2), global::ProtobufTestMessages.Editions.Proto2.EnumOnlyProto2.Parser, null, null, new[]{ typeof(global::ProtobufTestMessages.Editions.Proto2.EnumOnlyProto2.Types.Bool) }, null, null),
322             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.OneStringProto2), global::ProtobufTestMessages.Editions.Proto2.OneStringProto2.Parser, new[]{ "Data" }, null, null, null, null),
323             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.ProtoWithKeywords), global::ProtobufTestMessages.Editions.Proto2.ProtoWithKeywords.Parser, new[]{ "Inline", "Concept", "Requires" }, null, null, null, null),
324             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2), global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Parser, new[]{ "RequiredInt32", "RequiredInt64", "RequiredUint32", "RequiredUint64", "RequiredSint32", "RequiredSint64", "RequiredFixed32", "RequiredFixed64", "RequiredSfixed32", "RequiredSfixed64", "RequiredFloat", "RequiredDouble", "RequiredBool", "RequiredString", "RequiredBytes", "RequiredNestedMessage", "RequiredForeignMessage", "RequiredNestedEnum", "RequiredForeignEnum", "RequiredStringPiece", "RequiredCord", "RecursiveMessage", "OptionalRecursiveMessage", "Data", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes" }, null, new[]{ typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage), global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage.Parser, new[]{ "A", "Corecursive", "OptionalCorecursive" }, null, null, null, null),
325             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.Data), global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.Data.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null),
326             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect), global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect.Parser, null, null, null, null, null),
327             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1), global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1.Parser, new[]{ "Str" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1.Extensions.MessageSetExtension }, null),
328             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2), global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2.Parser, new[]{ "I" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2.Extensions.MessageSetExtension }, null)})
329           }));
330     }
331     #endregion
332 
333   }
334   /// <summary>Holder for extension identifiers generated from the top level of editions/golden/test_messages_proto2_editions.proto</summary>
335   public static partial class TestMessagesProto2EditionsExtensions {
336     public static readonly pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2, int> ExtensionInt32 =
337       new pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2, int>(120, pb::FieldCodec.ForInt32(960, 0));
338     public static readonly pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2, global::ProtobufTestMessages.Editions.Proto2.GroupField> GroupField =
339       new pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2, global::ProtobufTestMessages.Editions.Proto2.GroupField>(121, pb::FieldCodec.ForGroup(971, 972, global::ProtobufTestMessages.Editions.Proto2.GroupField.Parser));
340   }
341 
342   #region Enums
343   public enum ForeignEnumProto2 {
344     [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 0,
345     [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 1,
346     [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 2,
347   }
348 
349   #endregion
350 
351   #region Messages
352   /// <summary>
353   /// This proto includes every type of field in both singular and repeated
354   /// forms.
355   ///
356   /// Also, crucially, all messages and enums in this file are eventually
357   /// submessages of this message.  So for example, a fuzz test of TestAllTypes
358   /// could trigger bugs that occur in any message type in this file.  We verify
359   /// this stays true in a unit test.
360   /// </summary>
361   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
362   public sealed partial class TestAllTypesProto2 : pb::IExtendableMessage<TestAllTypesProto2>
363   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
364       , pb::IBufferMessage
365   #endif
366   {
367     private static readonly pb::MessageParser<TestAllTypesProto2> _parser = new pb::MessageParser<TestAllTypesProto2>(() => new TestAllTypesProto2());
368     private pb::UnknownFieldSet _unknownFields;
369     private pb::ExtensionSet<TestAllTypesProto2> _extensions;
370     private pb::ExtensionSet<TestAllTypesProto2> _Extensions { get { return _extensions; } }
371     private int _hasBits0;
372     private int _hasBits1;
373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
375     public static pb::MessageParser<TestAllTypesProto2> Parser { get { return _parser; } }
376 
377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
378     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
379     public static pbr::MessageDescriptor Descriptor {
380       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[0]; }
381     }
382 
383     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
384     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
385     pbr::MessageDescriptor pb::IMessage.Descriptor {
386       get { return Descriptor; }
387     }
388 
389     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
390     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllTypesProto2()391     public TestAllTypesProto2() {
392       OnConstruction();
393     }
394 
OnConstruction()395     partial void OnConstruction();
396 
397     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
398     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllTypesProto2(TestAllTypesProto2 other)399     public TestAllTypesProto2(TestAllTypesProto2 other) : this() {
400       _hasBits0 = other._hasBits0;
401       _hasBits1 = other._hasBits1;
402       optionalInt32_ = other.optionalInt32_;
403       optionalInt64_ = other.optionalInt64_;
404       optionalUint32_ = other.optionalUint32_;
405       optionalUint64_ = other.optionalUint64_;
406       optionalSint32_ = other.optionalSint32_;
407       optionalSint64_ = other.optionalSint64_;
408       optionalFixed32_ = other.optionalFixed32_;
409       optionalFixed64_ = other.optionalFixed64_;
410       optionalSfixed32_ = other.optionalSfixed32_;
411       optionalSfixed64_ = other.optionalSfixed64_;
412       optionalFloat_ = other.optionalFloat_;
413       optionalDouble_ = other.optionalDouble_;
414       optionalBool_ = other.optionalBool_;
415       optionalString_ = other.optionalString_;
416       optionalBytes_ = other.optionalBytes_;
417       optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
418       optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
419       optionalNestedEnum_ = other.optionalNestedEnum_;
420       optionalForeignEnum_ = other.optionalForeignEnum_;
421       optionalStringPiece_ = other.optionalStringPiece_;
422       optionalCord_ = other.optionalCord_;
423       recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null;
424       repeatedInt32_ = other.repeatedInt32_.Clone();
425       repeatedInt64_ = other.repeatedInt64_.Clone();
426       repeatedUint32_ = other.repeatedUint32_.Clone();
427       repeatedUint64_ = other.repeatedUint64_.Clone();
428       repeatedSint32_ = other.repeatedSint32_.Clone();
429       repeatedSint64_ = other.repeatedSint64_.Clone();
430       repeatedFixed32_ = other.repeatedFixed32_.Clone();
431       repeatedFixed64_ = other.repeatedFixed64_.Clone();
432       repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
433       repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
434       repeatedFloat_ = other.repeatedFloat_.Clone();
435       repeatedDouble_ = other.repeatedDouble_.Clone();
436       repeatedBool_ = other.repeatedBool_.Clone();
437       repeatedString_ = other.repeatedString_.Clone();
438       repeatedBytes_ = other.repeatedBytes_.Clone();
439       repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
440       repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
441       repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
442       repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
443       repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
444       repeatedCord_ = other.repeatedCord_.Clone();
445       packedInt32_ = other.packedInt32_.Clone();
446       packedInt64_ = other.packedInt64_.Clone();
447       packedUint32_ = other.packedUint32_.Clone();
448       packedUint64_ = other.packedUint64_.Clone();
449       packedSint32_ = other.packedSint32_.Clone();
450       packedSint64_ = other.packedSint64_.Clone();
451       packedFixed32_ = other.packedFixed32_.Clone();
452       packedFixed64_ = other.packedFixed64_.Clone();
453       packedSfixed32_ = other.packedSfixed32_.Clone();
454       packedSfixed64_ = other.packedSfixed64_.Clone();
455       packedFloat_ = other.packedFloat_.Clone();
456       packedDouble_ = other.packedDouble_.Clone();
457       packedBool_ = other.packedBool_.Clone();
458       packedNestedEnum_ = other.packedNestedEnum_.Clone();
459       unpackedInt32_ = other.unpackedInt32_.Clone();
460       unpackedInt64_ = other.unpackedInt64_.Clone();
461       unpackedUint32_ = other.unpackedUint32_.Clone();
462       unpackedUint64_ = other.unpackedUint64_.Clone();
463       unpackedSint32_ = other.unpackedSint32_.Clone();
464       unpackedSint64_ = other.unpackedSint64_.Clone();
465       unpackedFixed32_ = other.unpackedFixed32_.Clone();
466       unpackedFixed64_ = other.unpackedFixed64_.Clone();
467       unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
468       unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
469       unpackedFloat_ = other.unpackedFloat_.Clone();
470       unpackedDouble_ = other.unpackedDouble_.Clone();
471       unpackedBool_ = other.unpackedBool_.Clone();
472       unpackedNestedEnum_ = other.unpackedNestedEnum_.Clone();
473       mapInt32Int32_ = other.mapInt32Int32_.Clone();
474       mapInt64Int64_ = other.mapInt64Int64_.Clone();
475       mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
476       mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
477       mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
478       mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
479       mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
480       mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
481       mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
482       mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
483       mapInt32Float_ = other.mapInt32Float_.Clone();
484       mapInt32Double_ = other.mapInt32Double_.Clone();
485       mapBoolBool_ = other.mapBoolBool_.Clone();
486       mapStringString_ = other.mapStringString_.Clone();
487       mapStringBytes_ = other.mapStringBytes_.Clone();
488       mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
489       mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
490       mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
491       mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
492       data_ = other.HasData ? other.data_.Clone() : null;
493       multiWordGroupField_ = other.HasMultiWordGroupField ? other.multiWordGroupField_.Clone() : null;
494       defaultInt32_ = other.defaultInt32_;
495       defaultInt64_ = other.defaultInt64_;
496       defaultUint32_ = other.defaultUint32_;
497       defaultUint64_ = other.defaultUint64_;
498       defaultSint32_ = other.defaultSint32_;
499       defaultSint64_ = other.defaultSint64_;
500       defaultFixed32_ = other.defaultFixed32_;
501       defaultFixed64_ = other.defaultFixed64_;
502       defaultSfixed32_ = other.defaultSfixed32_;
503       defaultSfixed64_ = other.defaultSfixed64_;
504       defaultFloat_ = other.defaultFloat_;
505       defaultDouble_ = other.defaultDouble_;
506       defaultBool_ = other.defaultBool_;
507       defaultString_ = other.defaultString_;
508       defaultBytes_ = other.defaultBytes_;
509       fieldname1_ = other.fieldname1_;
510       fieldName2_ = other.fieldName2_;
511       FieldName3_ = other.FieldName3_;
512       fieldName4_ = other.fieldName4_;
513       field0Name5_ = other.field0Name5_;
514       field0Name6_ = other.field0Name6_;
515       fieldName7_ = other.fieldName7_;
516       fieldName8_ = other.fieldName8_;
517       fieldName9_ = other.fieldName9_;
518       fieldName10_ = other.fieldName10_;
519       fIELDNAME11_ = other.fIELDNAME11_;
520       fIELDName12_ = other.fIELDName12_;
521       FieldName13_ = other.FieldName13_;
522       FieldName14_ = other.FieldName14_;
523       fieldName15_ = other.fieldName15_;
524       fieldName16_ = other.fieldName16_;
525       fieldName17_ = other.fieldName17_;
526       fieldName18_ = other.fieldName18_;
527       switch (other.OneofFieldCase) {
528         case OneofFieldOneofCase.OneofUint32:
529           OneofUint32 = other.OneofUint32;
530           break;
531         case OneofFieldOneofCase.OneofNestedMessage:
532           OneofNestedMessage = other.OneofNestedMessage.Clone();
533           break;
534         case OneofFieldOneofCase.OneofString:
535           OneofString = other.OneofString;
536           break;
537         case OneofFieldOneofCase.OneofBytes:
538           OneofBytes = other.OneofBytes;
539           break;
540         case OneofFieldOneofCase.OneofBool:
541           OneofBool = other.OneofBool;
542           break;
543         case OneofFieldOneofCase.OneofUint64:
544           OneofUint64 = other.OneofUint64;
545           break;
546         case OneofFieldOneofCase.OneofFloat:
547           OneofFloat = other.OneofFloat;
548           break;
549         case OneofFieldOneofCase.OneofDouble:
550           OneofDouble = other.OneofDouble;
551           break;
552         case OneofFieldOneofCase.OneofEnum:
553           OneofEnum = other.OneofEnum;
554           break;
555       }
556 
557       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
558       _extensions = pb::ExtensionSet.Clone(other._extensions);
559     }
560 
561     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
562     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()563     public TestAllTypesProto2 Clone() {
564       return new TestAllTypesProto2(this);
565     }
566 
567     /// <summary>Field number for the "optional_int32" field.</summary>
568     public const int OptionalInt32FieldNumber = 1;
569     private readonly static int OptionalInt32DefaultValue = 0;
570 
571     private int optionalInt32_;
572     /// <summary>
573     /// Singular
574     /// </summary>
575     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
576     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
577     public int OptionalInt32 {
578       get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
579       set {
580         _hasBits0 |= 1;
581         optionalInt32_ = value;
582       }
583     }
584     /// <summary>Gets whether the "optional_int32" field is set</summary>
585     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
586     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
587     public bool HasOptionalInt32 {
588       get { return (_hasBits0 & 1) != 0; }
589     }
590     /// <summary>Clears the value of the "optional_int32" field</summary>
591     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
592     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt32()593     public void ClearOptionalInt32() {
594       _hasBits0 &= ~1;
595     }
596 
597     /// <summary>Field number for the "optional_int64" field.</summary>
598     public const int OptionalInt64FieldNumber = 2;
599     private readonly static long OptionalInt64DefaultValue = 0L;
600 
601     private long optionalInt64_;
602     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
603     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
604     public long OptionalInt64 {
605       get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } }
606       set {
607         _hasBits0 |= 2;
608         optionalInt64_ = value;
609       }
610     }
611     /// <summary>Gets whether the "optional_int64" field is set</summary>
612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
613     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
614     public bool HasOptionalInt64 {
615       get { return (_hasBits0 & 2) != 0; }
616     }
617     /// <summary>Clears the value of the "optional_int64" field</summary>
618     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
619     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt64()620     public void ClearOptionalInt64() {
621       _hasBits0 &= ~2;
622     }
623 
624     /// <summary>Field number for the "optional_uint32" field.</summary>
625     public const int OptionalUint32FieldNumber = 3;
626     private readonly static uint OptionalUint32DefaultValue = 0;
627 
628     private uint optionalUint32_;
629     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
630     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
631     public uint OptionalUint32 {
632       get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } }
633       set {
634         _hasBits0 |= 4;
635         optionalUint32_ = value;
636       }
637     }
638     /// <summary>Gets whether the "optional_uint32" field is set</summary>
639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
640     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
641     public bool HasOptionalUint32 {
642       get { return (_hasBits0 & 4) != 0; }
643     }
644     /// <summary>Clears the value of the "optional_uint32" field</summary>
645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
646     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalUint32()647     public void ClearOptionalUint32() {
648       _hasBits0 &= ~4;
649     }
650 
651     /// <summary>Field number for the "optional_uint64" field.</summary>
652     public const int OptionalUint64FieldNumber = 4;
653     private readonly static ulong OptionalUint64DefaultValue = 0UL;
654 
655     private ulong optionalUint64_;
656     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
657     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
658     public ulong OptionalUint64 {
659       get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } }
660       set {
661         _hasBits0 |= 8;
662         optionalUint64_ = value;
663       }
664     }
665     /// <summary>Gets whether the "optional_uint64" field is set</summary>
666     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
667     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
668     public bool HasOptionalUint64 {
669       get { return (_hasBits0 & 8) != 0; }
670     }
671     /// <summary>Clears the value of the "optional_uint64" field</summary>
672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
673     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalUint64()674     public void ClearOptionalUint64() {
675       _hasBits0 &= ~8;
676     }
677 
678     /// <summary>Field number for the "optional_sint32" field.</summary>
679     public const int OptionalSint32FieldNumber = 5;
680     private readonly static int OptionalSint32DefaultValue = 0;
681 
682     private int optionalSint32_;
683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
684     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
685     public int OptionalSint32 {
686       get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } }
687       set {
688         _hasBits0 |= 16;
689         optionalSint32_ = value;
690       }
691     }
692     /// <summary>Gets whether the "optional_sint32" field is set</summary>
693     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
694     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
695     public bool HasOptionalSint32 {
696       get { return (_hasBits0 & 16) != 0; }
697     }
698     /// <summary>Clears the value of the "optional_sint32" field</summary>
699     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
700     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSint32()701     public void ClearOptionalSint32() {
702       _hasBits0 &= ~16;
703     }
704 
705     /// <summary>Field number for the "optional_sint64" field.</summary>
706     public const int OptionalSint64FieldNumber = 6;
707     private readonly static long OptionalSint64DefaultValue = 0L;
708 
709     private long optionalSint64_;
710     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
711     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
712     public long OptionalSint64 {
713       get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } }
714       set {
715         _hasBits0 |= 32;
716         optionalSint64_ = value;
717       }
718     }
719     /// <summary>Gets whether the "optional_sint64" field is set</summary>
720     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
721     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
722     public bool HasOptionalSint64 {
723       get { return (_hasBits0 & 32) != 0; }
724     }
725     /// <summary>Clears the value of the "optional_sint64" field</summary>
726     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
727     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSint64()728     public void ClearOptionalSint64() {
729       _hasBits0 &= ~32;
730     }
731 
732     /// <summary>Field number for the "optional_fixed32" field.</summary>
733     public const int OptionalFixed32FieldNumber = 7;
734     private readonly static uint OptionalFixed32DefaultValue = 0;
735 
736     private uint optionalFixed32_;
737     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
738     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
739     public uint OptionalFixed32 {
740       get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } }
741       set {
742         _hasBits0 |= 64;
743         optionalFixed32_ = value;
744       }
745     }
746     /// <summary>Gets whether the "optional_fixed32" field is set</summary>
747     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
748     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
749     public bool HasOptionalFixed32 {
750       get { return (_hasBits0 & 64) != 0; }
751     }
752     /// <summary>Clears the value of the "optional_fixed32" field</summary>
753     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
754     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFixed32()755     public void ClearOptionalFixed32() {
756       _hasBits0 &= ~64;
757     }
758 
759     /// <summary>Field number for the "optional_fixed64" field.</summary>
760     public const int OptionalFixed64FieldNumber = 8;
761     private readonly static ulong OptionalFixed64DefaultValue = 0UL;
762 
763     private ulong optionalFixed64_;
764     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
765     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
766     public ulong OptionalFixed64 {
767       get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } }
768       set {
769         _hasBits0 |= 128;
770         optionalFixed64_ = value;
771       }
772     }
773     /// <summary>Gets whether the "optional_fixed64" field is set</summary>
774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
775     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
776     public bool HasOptionalFixed64 {
777       get { return (_hasBits0 & 128) != 0; }
778     }
779     /// <summary>Clears the value of the "optional_fixed64" field</summary>
780     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
781     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFixed64()782     public void ClearOptionalFixed64() {
783       _hasBits0 &= ~128;
784     }
785 
786     /// <summary>Field number for the "optional_sfixed32" field.</summary>
787     public const int OptionalSfixed32FieldNumber = 9;
788     private readonly static int OptionalSfixed32DefaultValue = 0;
789 
790     private int optionalSfixed32_;
791     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
792     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
793     public int OptionalSfixed32 {
794       get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } }
795       set {
796         _hasBits0 |= 256;
797         optionalSfixed32_ = value;
798       }
799     }
800     /// <summary>Gets whether the "optional_sfixed32" field is set</summary>
801     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
802     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
803     public bool HasOptionalSfixed32 {
804       get { return (_hasBits0 & 256) != 0; }
805     }
806     /// <summary>Clears the value of the "optional_sfixed32" field</summary>
807     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
808     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSfixed32()809     public void ClearOptionalSfixed32() {
810       _hasBits0 &= ~256;
811     }
812 
813     /// <summary>Field number for the "optional_sfixed64" field.</summary>
814     public const int OptionalSfixed64FieldNumber = 10;
815     private readonly static long OptionalSfixed64DefaultValue = 0L;
816 
817     private long optionalSfixed64_;
818     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
819     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
820     public long OptionalSfixed64 {
821       get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } }
822       set {
823         _hasBits0 |= 512;
824         optionalSfixed64_ = value;
825       }
826     }
827     /// <summary>Gets whether the "optional_sfixed64" field is set</summary>
828     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
829     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
830     public bool HasOptionalSfixed64 {
831       get { return (_hasBits0 & 512) != 0; }
832     }
833     /// <summary>Clears the value of the "optional_sfixed64" field</summary>
834     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
835     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSfixed64()836     public void ClearOptionalSfixed64() {
837       _hasBits0 &= ~512;
838     }
839 
840     /// <summary>Field number for the "optional_float" field.</summary>
841     public const int OptionalFloatFieldNumber = 11;
842     private readonly static float OptionalFloatDefaultValue = 0F;
843 
844     private float optionalFloat_;
845     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
846     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
847     public float OptionalFloat {
848       get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } }
849       set {
850         _hasBits0 |= 1024;
851         optionalFloat_ = value;
852       }
853     }
854     /// <summary>Gets whether the "optional_float" field is set</summary>
855     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
856     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
857     public bool HasOptionalFloat {
858       get { return (_hasBits0 & 1024) != 0; }
859     }
860     /// <summary>Clears the value of the "optional_float" field</summary>
861     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
862     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFloat()863     public void ClearOptionalFloat() {
864       _hasBits0 &= ~1024;
865     }
866 
867     /// <summary>Field number for the "optional_double" field.</summary>
868     public const int OptionalDoubleFieldNumber = 12;
869     private readonly static double OptionalDoubleDefaultValue = 0D;
870 
871     private double optionalDouble_;
872     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
873     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
874     public double OptionalDouble {
875       get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } }
876       set {
877         _hasBits0 |= 2048;
878         optionalDouble_ = value;
879       }
880     }
881     /// <summary>Gets whether the "optional_double" field is set</summary>
882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
884     public bool HasOptionalDouble {
885       get { return (_hasBits0 & 2048) != 0; }
886     }
887     /// <summary>Clears the value of the "optional_double" field</summary>
888     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
889     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalDouble()890     public void ClearOptionalDouble() {
891       _hasBits0 &= ~2048;
892     }
893 
894     /// <summary>Field number for the "optional_bool" field.</summary>
895     public const int OptionalBoolFieldNumber = 13;
896     private readonly static bool OptionalBoolDefaultValue = false;
897 
898     private bool optionalBool_;
899     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
900     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
901     public bool OptionalBool {
902       get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
903       set {
904         _hasBits0 |= 4096;
905         optionalBool_ = value;
906       }
907     }
908     /// <summary>Gets whether the "optional_bool" field is set</summary>
909     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
910     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
911     public bool HasOptionalBool {
912       get { return (_hasBits0 & 4096) != 0; }
913     }
914     /// <summary>Clears the value of the "optional_bool" field</summary>
915     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
916     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBool()917     public void ClearOptionalBool() {
918       _hasBits0 &= ~4096;
919     }
920 
921     /// <summary>Field number for the "optional_string" field.</summary>
922     public const int OptionalStringFieldNumber = 14;
923     private readonly static string OptionalStringDefaultValue = "";
924 
925     private string optionalString_;
926     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
927     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
928     public string OptionalString {
929       get { return optionalString_ ?? OptionalStringDefaultValue; }
930       set {
931         optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
932       }
933     }
934     /// <summary>Gets whether the "optional_string" field is set</summary>
935     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
936     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
937     public bool HasOptionalString {
938       get { return optionalString_ != null; }
939     }
940     /// <summary>Clears the value of the "optional_string" field</summary>
941     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
942     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalString()943     public void ClearOptionalString() {
944       optionalString_ = null;
945     }
946 
947     /// <summary>Field number for the "optional_bytes" field.</summary>
948     public const int OptionalBytesFieldNumber = 15;
949     private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
950 
951     private pb::ByteString optionalBytes_;
952     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
953     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
954     public pb::ByteString OptionalBytes {
955       get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
956       set {
957         optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
958       }
959     }
960     /// <summary>Gets whether the "optional_bytes" field is set</summary>
961     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
962     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
963     public bool HasOptionalBytes {
964       get { return optionalBytes_ != null; }
965     }
966     /// <summary>Clears the value of the "optional_bytes" field</summary>
967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
968     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBytes()969     public void ClearOptionalBytes() {
970       optionalBytes_ = null;
971     }
972 
973     /// <summary>Field number for the "optional_nested_message" field.</summary>
974     public const int OptionalNestedMessageFieldNumber = 18;
975     private global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage optionalNestedMessage_;
976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
977     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
978     public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage OptionalNestedMessage {
979       get { return optionalNestedMessage_; }
980       set {
981         optionalNestedMessage_ = value;
982       }
983     }
984 
985     /// <summary>Field number for the "optional_foreign_message" field.</summary>
986     public const int OptionalForeignMessageFieldNumber = 19;
987     private global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2 optionalForeignMessage_;
988     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
989     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
990     public global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2 OptionalForeignMessage {
991       get { return optionalForeignMessage_; }
992       set {
993         optionalForeignMessage_ = value;
994       }
995     }
996 
997     /// <summary>Field number for the "optional_nested_enum" field.</summary>
998     public const int OptionalNestedEnumFieldNumber = 21;
999     private readonly static global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnumDefaultValue = global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo;
1000 
1001     private global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum optionalNestedEnum_;
1002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1003     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1004     public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnum {
1005       get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } }
1006       set {
1007         _hasBits0 |= 8192;
1008         optionalNestedEnum_ = value;
1009       }
1010     }
1011     /// <summary>Gets whether the "optional_nested_enum" field is set</summary>
1012     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1013     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1014     public bool HasOptionalNestedEnum {
1015       get { return (_hasBits0 & 8192) != 0; }
1016     }
1017     /// <summary>Clears the value of the "optional_nested_enum" field</summary>
1018     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1019     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalNestedEnum()1020     public void ClearOptionalNestedEnum() {
1021       _hasBits0 &= ~8192;
1022     }
1023 
1024     /// <summary>Field number for the "optional_foreign_enum" field.</summary>
1025     public const int OptionalForeignEnumFieldNumber = 22;
1026     private readonly static global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2 OptionalForeignEnumDefaultValue = global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2.ForeignFoo;
1027 
1028     private global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2 optionalForeignEnum_;
1029     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1030     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1031     public global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2 OptionalForeignEnum {
1032       get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
1033       set {
1034         _hasBits0 |= 16384;
1035         optionalForeignEnum_ = value;
1036       }
1037     }
1038     /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
1039     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1040     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1041     public bool HasOptionalForeignEnum {
1042       get { return (_hasBits0 & 16384) != 0; }
1043     }
1044     /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
1045     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1046     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalForeignEnum()1047     public void ClearOptionalForeignEnum() {
1048       _hasBits0 &= ~16384;
1049     }
1050 
1051     /// <summary>Field number for the "optional_string_piece" field.</summary>
1052     public const int OptionalStringPieceFieldNumber = 24;
1053     private readonly static string OptionalStringPieceDefaultValue = "";
1054 
1055     private string optionalStringPiece_;
1056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1058     public string OptionalStringPiece {
1059       get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; }
1060       set {
1061         optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1062       }
1063     }
1064     /// <summary>Gets whether the "optional_string_piece" field is set</summary>
1065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1066     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1067     public bool HasOptionalStringPiece {
1068       get { return optionalStringPiece_ != null; }
1069     }
1070     /// <summary>Clears the value of the "optional_string_piece" field</summary>
1071     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1072     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalStringPiece()1073     public void ClearOptionalStringPiece() {
1074       optionalStringPiece_ = null;
1075     }
1076 
1077     /// <summary>Field number for the "optional_cord" field.</summary>
1078     public const int OptionalCordFieldNumber = 25;
1079     private readonly static string OptionalCordDefaultValue = "";
1080 
1081     private string optionalCord_;
1082     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1083     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1084     public string OptionalCord {
1085       get { return optionalCord_ ?? OptionalCordDefaultValue; }
1086       set {
1087         optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1088       }
1089     }
1090     /// <summary>Gets whether the "optional_cord" field is set</summary>
1091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1092     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1093     public bool HasOptionalCord {
1094       get { return optionalCord_ != null; }
1095     }
1096     /// <summary>Clears the value of the "optional_cord" field</summary>
1097     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1098     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalCord()1099     public void ClearOptionalCord() {
1100       optionalCord_ = null;
1101     }
1102 
1103     /// <summary>Field number for the "recursive_message" field.</summary>
1104     public const int RecursiveMessageFieldNumber = 27;
1105     private global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2 recursiveMessage_;
1106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1108     public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2 RecursiveMessage {
1109       get { return recursiveMessage_; }
1110       set {
1111         recursiveMessage_ = value;
1112       }
1113     }
1114 
1115     /// <summary>Field number for the "repeated_int32" field.</summary>
1116     public const int RepeatedInt32FieldNumber = 31;
1117     private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
1118         = pb::FieldCodec.ForInt32(248);
1119     private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
1120     /// <summary>
1121     /// Repeated
1122     /// </summary>
1123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1124     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1125     public pbc::RepeatedField<int> RepeatedInt32 {
1126       get { return repeatedInt32_; }
1127     }
1128 
1129     /// <summary>Field number for the "repeated_int64" field.</summary>
1130     public const int RepeatedInt64FieldNumber = 32;
1131     private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
1132         = pb::FieldCodec.ForInt64(256);
1133     private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
1134     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1135     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1136     public pbc::RepeatedField<long> RepeatedInt64 {
1137       get { return repeatedInt64_; }
1138     }
1139 
1140     /// <summary>Field number for the "repeated_uint32" field.</summary>
1141     public const int RepeatedUint32FieldNumber = 33;
1142     private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
1143         = pb::FieldCodec.ForUInt32(264);
1144     private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
1145     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1146     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1147     public pbc::RepeatedField<uint> RepeatedUint32 {
1148       get { return repeatedUint32_; }
1149     }
1150 
1151     /// <summary>Field number for the "repeated_uint64" field.</summary>
1152     public const int RepeatedUint64FieldNumber = 34;
1153     private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
1154         = pb::FieldCodec.ForUInt64(272);
1155     private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
1156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1157     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1158     public pbc::RepeatedField<ulong> RepeatedUint64 {
1159       get { return repeatedUint64_; }
1160     }
1161 
1162     /// <summary>Field number for the "repeated_sint32" field.</summary>
1163     public const int RepeatedSint32FieldNumber = 35;
1164     private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
1165         = pb::FieldCodec.ForSInt32(280);
1166     private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
1167     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1168     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1169     public pbc::RepeatedField<int> RepeatedSint32 {
1170       get { return repeatedSint32_; }
1171     }
1172 
1173     /// <summary>Field number for the "repeated_sint64" field.</summary>
1174     public const int RepeatedSint64FieldNumber = 36;
1175     private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
1176         = pb::FieldCodec.ForSInt64(288);
1177     private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
1178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1180     public pbc::RepeatedField<long> RepeatedSint64 {
1181       get { return repeatedSint64_; }
1182     }
1183 
1184     /// <summary>Field number for the "repeated_fixed32" field.</summary>
1185     public const int RepeatedFixed32FieldNumber = 37;
1186     private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
1187         = pb::FieldCodec.ForFixed32(301);
1188     private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
1189     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1190     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1191     public pbc::RepeatedField<uint> RepeatedFixed32 {
1192       get { return repeatedFixed32_; }
1193     }
1194 
1195     /// <summary>Field number for the "repeated_fixed64" field.</summary>
1196     public const int RepeatedFixed64FieldNumber = 38;
1197     private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
1198         = pb::FieldCodec.ForFixed64(305);
1199     private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
1200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1202     public pbc::RepeatedField<ulong> RepeatedFixed64 {
1203       get { return repeatedFixed64_; }
1204     }
1205 
1206     /// <summary>Field number for the "repeated_sfixed32" field.</summary>
1207     public const int RepeatedSfixed32FieldNumber = 39;
1208     private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
1209         = pb::FieldCodec.ForSFixed32(317);
1210     private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
1211     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1212     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1213     public pbc::RepeatedField<int> RepeatedSfixed32 {
1214       get { return repeatedSfixed32_; }
1215     }
1216 
1217     /// <summary>Field number for the "repeated_sfixed64" field.</summary>
1218     public const int RepeatedSfixed64FieldNumber = 40;
1219     private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
1220         = pb::FieldCodec.ForSFixed64(321);
1221     private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
1222     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1223     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1224     public pbc::RepeatedField<long> RepeatedSfixed64 {
1225       get { return repeatedSfixed64_; }
1226     }
1227 
1228     /// <summary>Field number for the "repeated_float" field.</summary>
1229     public const int RepeatedFloatFieldNumber = 41;
1230     private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
1231         = pb::FieldCodec.ForFloat(333);
1232     private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
1233     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1234     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1235     public pbc::RepeatedField<float> RepeatedFloat {
1236       get { return repeatedFloat_; }
1237     }
1238 
1239     /// <summary>Field number for the "repeated_double" field.</summary>
1240     public const int RepeatedDoubleFieldNumber = 42;
1241     private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
1242         = pb::FieldCodec.ForDouble(337);
1243     private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
1244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1245     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1246     public pbc::RepeatedField<double> RepeatedDouble {
1247       get { return repeatedDouble_; }
1248     }
1249 
1250     /// <summary>Field number for the "repeated_bool" field.</summary>
1251     public const int RepeatedBoolFieldNumber = 43;
1252     private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
1253         = pb::FieldCodec.ForBool(344);
1254     private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
1255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1257     public pbc::RepeatedField<bool> RepeatedBool {
1258       get { return repeatedBool_; }
1259     }
1260 
1261     /// <summary>Field number for the "repeated_string" field.</summary>
1262     public const int RepeatedStringFieldNumber = 44;
1263     private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
1264         = pb::FieldCodec.ForString(354);
1265     private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
1266     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1267     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1268     public pbc::RepeatedField<string> RepeatedString {
1269       get { return repeatedString_; }
1270     }
1271 
1272     /// <summary>Field number for the "repeated_bytes" field.</summary>
1273     public const int RepeatedBytesFieldNumber = 45;
1274     private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
1275         = pb::FieldCodec.ForBytes(362);
1276     private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
1277     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1278     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1279     public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
1280       get { return repeatedBytes_; }
1281     }
1282 
1283     /// <summary>Field number for the "repeated_nested_message" field.</summary>
1284     public const int RepeatedNestedMessageFieldNumber = 48;
1285     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
1286         = pb::FieldCodec.ForMessage(386, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser);
1287     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage>();
1288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1289     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1290     public pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage> RepeatedNestedMessage {
1291       get { return repeatedNestedMessage_; }
1292     }
1293 
1294     /// <summary>Field number for the "repeated_foreign_message" field.</summary>
1295     public const int RepeatedForeignMessageFieldNumber = 49;
1296     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2> _repeated_repeatedForeignMessage_codec
1297         = pb::FieldCodec.ForMessage(394, global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2.Parser);
1298     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2> repeatedForeignMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2>();
1299     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1300     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1301     public pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2> RepeatedForeignMessage {
1302       get { return repeatedForeignMessage_; }
1303     }
1304 
1305     /// <summary>Field number for the "repeated_nested_enum" field.</summary>
1306     public const int RepeatedNestedEnumFieldNumber = 51;
1307     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
1308         = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
1309     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1311     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1312     public pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> RepeatedNestedEnum {
1313       get { return repeatedNestedEnum_; }
1314     }
1315 
1316     /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
1317     public const int RepeatedForeignEnumFieldNumber = 52;
1318     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2> _repeated_repeatedForeignEnum_codec
1319         = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2) x);
1320     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2> repeatedForeignEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2>();
1321     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1322     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1323     public pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2> RepeatedForeignEnum {
1324       get { return repeatedForeignEnum_; }
1325     }
1326 
1327     /// <summary>Field number for the "repeated_string_piece" field.</summary>
1328     public const int RepeatedStringPieceFieldNumber = 54;
1329     private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
1330         = pb::FieldCodec.ForString(434);
1331     private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
1332     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1333     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1334     public pbc::RepeatedField<string> RepeatedStringPiece {
1335       get { return repeatedStringPiece_; }
1336     }
1337 
1338     /// <summary>Field number for the "repeated_cord" field.</summary>
1339     public const int RepeatedCordFieldNumber = 55;
1340     private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
1341         = pb::FieldCodec.ForString(442);
1342     private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
1343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1344     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1345     public pbc::RepeatedField<string> RepeatedCord {
1346       get { return repeatedCord_; }
1347     }
1348 
1349     /// <summary>Field number for the "packed_int32" field.</summary>
1350     public const int PackedInt32FieldNumber = 75;
1351     private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
1352         = pb::FieldCodec.ForInt32(602);
1353     private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
1354     /// <summary>
1355     /// Packed
1356     /// </summary>
1357     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1358     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1359     public pbc::RepeatedField<int> PackedInt32 {
1360       get { return packedInt32_; }
1361     }
1362 
1363     /// <summary>Field number for the "packed_int64" field.</summary>
1364     public const int PackedInt64FieldNumber = 76;
1365     private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
1366         = pb::FieldCodec.ForInt64(610);
1367     private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
1368     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1369     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1370     public pbc::RepeatedField<long> PackedInt64 {
1371       get { return packedInt64_; }
1372     }
1373 
1374     /// <summary>Field number for the "packed_uint32" field.</summary>
1375     public const int PackedUint32FieldNumber = 77;
1376     private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
1377         = pb::FieldCodec.ForUInt32(618);
1378     private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
1379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1380     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1381     public pbc::RepeatedField<uint> PackedUint32 {
1382       get { return packedUint32_; }
1383     }
1384 
1385     /// <summary>Field number for the "packed_uint64" field.</summary>
1386     public const int PackedUint64FieldNumber = 78;
1387     private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
1388         = pb::FieldCodec.ForUInt64(626);
1389     private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
1390     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1391     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1392     public pbc::RepeatedField<ulong> PackedUint64 {
1393       get { return packedUint64_; }
1394     }
1395 
1396     /// <summary>Field number for the "packed_sint32" field.</summary>
1397     public const int PackedSint32FieldNumber = 79;
1398     private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
1399         = pb::FieldCodec.ForSInt32(634);
1400     private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
1401     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1402     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1403     public pbc::RepeatedField<int> PackedSint32 {
1404       get { return packedSint32_; }
1405     }
1406 
1407     /// <summary>Field number for the "packed_sint64" field.</summary>
1408     public const int PackedSint64FieldNumber = 80;
1409     private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
1410         = pb::FieldCodec.ForSInt64(642);
1411     private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
1412     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1413     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1414     public pbc::RepeatedField<long> PackedSint64 {
1415       get { return packedSint64_; }
1416     }
1417 
1418     /// <summary>Field number for the "packed_fixed32" field.</summary>
1419     public const int PackedFixed32FieldNumber = 81;
1420     private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
1421         = pb::FieldCodec.ForFixed32(650);
1422     private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
1423     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1424     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1425     public pbc::RepeatedField<uint> PackedFixed32 {
1426       get { return packedFixed32_; }
1427     }
1428 
1429     /// <summary>Field number for the "packed_fixed64" field.</summary>
1430     public const int PackedFixed64FieldNumber = 82;
1431     private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
1432         = pb::FieldCodec.ForFixed64(658);
1433     private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
1434     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1435     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1436     public pbc::RepeatedField<ulong> PackedFixed64 {
1437       get { return packedFixed64_; }
1438     }
1439 
1440     /// <summary>Field number for the "packed_sfixed32" field.</summary>
1441     public const int PackedSfixed32FieldNumber = 83;
1442     private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
1443         = pb::FieldCodec.ForSFixed32(666);
1444     private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
1445     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1446     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1447     public pbc::RepeatedField<int> PackedSfixed32 {
1448       get { return packedSfixed32_; }
1449     }
1450 
1451     /// <summary>Field number for the "packed_sfixed64" field.</summary>
1452     public const int PackedSfixed64FieldNumber = 84;
1453     private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
1454         = pb::FieldCodec.ForSFixed64(674);
1455     private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
1456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1457     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1458     public pbc::RepeatedField<long> PackedSfixed64 {
1459       get { return packedSfixed64_; }
1460     }
1461 
1462     /// <summary>Field number for the "packed_float" field.</summary>
1463     public const int PackedFloatFieldNumber = 85;
1464     private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
1465         = pb::FieldCodec.ForFloat(682);
1466     private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
1467     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1468     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1469     public pbc::RepeatedField<float> PackedFloat {
1470       get { return packedFloat_; }
1471     }
1472 
1473     /// <summary>Field number for the "packed_double" field.</summary>
1474     public const int PackedDoubleFieldNumber = 86;
1475     private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
1476         = pb::FieldCodec.ForDouble(690);
1477     private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
1478     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1479     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1480     public pbc::RepeatedField<double> PackedDouble {
1481       get { return packedDouble_; }
1482     }
1483 
1484     /// <summary>Field number for the "packed_bool" field.</summary>
1485     public const int PackedBoolFieldNumber = 87;
1486     private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
1487         = pb::FieldCodec.ForBool(698);
1488     private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
1489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1490     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1491     public pbc::RepeatedField<bool> PackedBool {
1492       get { return packedBool_; }
1493     }
1494 
1495     /// <summary>Field number for the "packed_nested_enum" field.</summary>
1496     public const int PackedNestedEnumFieldNumber = 88;
1497     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_packedNestedEnum_codec
1498         = pb::FieldCodec.ForEnum(706, x => (int) x, x => (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
1499     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> packedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1502     public pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> PackedNestedEnum {
1503       get { return packedNestedEnum_; }
1504     }
1505 
1506     /// <summary>Field number for the "unpacked_int32" field.</summary>
1507     public const int UnpackedInt32FieldNumber = 89;
1508     private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
1509         = pb::FieldCodec.ForInt32(712);
1510     private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
1511     /// <summary>
1512     /// Unpacked
1513     /// </summary>
1514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1515     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1516     public pbc::RepeatedField<int> UnpackedInt32 {
1517       get { return unpackedInt32_; }
1518     }
1519 
1520     /// <summary>Field number for the "unpacked_int64" field.</summary>
1521     public const int UnpackedInt64FieldNumber = 90;
1522     private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
1523         = pb::FieldCodec.ForInt64(720);
1524     private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
1525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1526     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1527     public pbc::RepeatedField<long> UnpackedInt64 {
1528       get { return unpackedInt64_; }
1529     }
1530 
1531     /// <summary>Field number for the "unpacked_uint32" field.</summary>
1532     public const int UnpackedUint32FieldNumber = 91;
1533     private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
1534         = pb::FieldCodec.ForUInt32(728);
1535     private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
1536     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1537     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1538     public pbc::RepeatedField<uint> UnpackedUint32 {
1539       get { return unpackedUint32_; }
1540     }
1541 
1542     /// <summary>Field number for the "unpacked_uint64" field.</summary>
1543     public const int UnpackedUint64FieldNumber = 92;
1544     private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
1545         = pb::FieldCodec.ForUInt64(736);
1546     private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
1547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1549     public pbc::RepeatedField<ulong> UnpackedUint64 {
1550       get { return unpackedUint64_; }
1551     }
1552 
1553     /// <summary>Field number for the "unpacked_sint32" field.</summary>
1554     public const int UnpackedSint32FieldNumber = 93;
1555     private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
1556         = pb::FieldCodec.ForSInt32(744);
1557     private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
1558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1559     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1560     public pbc::RepeatedField<int> UnpackedSint32 {
1561       get { return unpackedSint32_; }
1562     }
1563 
1564     /// <summary>Field number for the "unpacked_sint64" field.</summary>
1565     public const int UnpackedSint64FieldNumber = 94;
1566     private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
1567         = pb::FieldCodec.ForSInt64(752);
1568     private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
1569     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1570     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1571     public pbc::RepeatedField<long> UnpackedSint64 {
1572       get { return unpackedSint64_; }
1573     }
1574 
1575     /// <summary>Field number for the "unpacked_fixed32" field.</summary>
1576     public const int UnpackedFixed32FieldNumber = 95;
1577     private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
1578         = pb::FieldCodec.ForFixed32(765);
1579     private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
1580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1581     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1582     public pbc::RepeatedField<uint> UnpackedFixed32 {
1583       get { return unpackedFixed32_; }
1584     }
1585 
1586     /// <summary>Field number for the "unpacked_fixed64" field.</summary>
1587     public const int UnpackedFixed64FieldNumber = 96;
1588     private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
1589         = pb::FieldCodec.ForFixed64(769);
1590     private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
1591     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1592     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1593     public pbc::RepeatedField<ulong> UnpackedFixed64 {
1594       get { return unpackedFixed64_; }
1595     }
1596 
1597     /// <summary>Field number for the "unpacked_sfixed32" field.</summary>
1598     public const int UnpackedSfixed32FieldNumber = 97;
1599     private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
1600         = pb::FieldCodec.ForSFixed32(781);
1601     private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
1602     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1603     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1604     public pbc::RepeatedField<int> UnpackedSfixed32 {
1605       get { return unpackedSfixed32_; }
1606     }
1607 
1608     /// <summary>Field number for the "unpacked_sfixed64" field.</summary>
1609     public const int UnpackedSfixed64FieldNumber = 98;
1610     private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
1611         = pb::FieldCodec.ForSFixed64(785);
1612     private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
1613     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1614     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1615     public pbc::RepeatedField<long> UnpackedSfixed64 {
1616       get { return unpackedSfixed64_; }
1617     }
1618 
1619     /// <summary>Field number for the "unpacked_float" field.</summary>
1620     public const int UnpackedFloatFieldNumber = 99;
1621     private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
1622         = pb::FieldCodec.ForFloat(797);
1623     private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
1624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1625     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1626     public pbc::RepeatedField<float> UnpackedFloat {
1627       get { return unpackedFloat_; }
1628     }
1629 
1630     /// <summary>Field number for the "unpacked_double" field.</summary>
1631     public const int UnpackedDoubleFieldNumber = 100;
1632     private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
1633         = pb::FieldCodec.ForDouble(801);
1634     private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
1635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1636     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1637     public pbc::RepeatedField<double> UnpackedDouble {
1638       get { return unpackedDouble_; }
1639     }
1640 
1641     /// <summary>Field number for the "unpacked_bool" field.</summary>
1642     public const int UnpackedBoolFieldNumber = 101;
1643     private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
1644         = pb::FieldCodec.ForBool(808);
1645     private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
1646     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1647     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1648     public pbc::RepeatedField<bool> UnpackedBool {
1649       get { return unpackedBool_; }
1650     }
1651 
1652     /// <summary>Field number for the "unpacked_nested_enum" field.</summary>
1653     public const int UnpackedNestedEnumFieldNumber = 102;
1654     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_unpackedNestedEnum_codec
1655         = pb::FieldCodec.ForEnum(816, x => (int) x, x => (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
1656     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> unpackedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1657     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1658     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1659     public pbc::RepeatedField<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> UnpackedNestedEnum {
1660       get { return unpackedNestedEnum_; }
1661     }
1662 
1663     /// <summary>Field number for the "map_int32_int32" field.</summary>
1664     public const int MapInt32Int32FieldNumber = 56;
1665     private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
1666         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 450);
1667     private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
1668     /// <summary>
1669     /// Map
1670     /// </summary>
1671     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1672     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1673     public pbc::MapField<int, int> MapInt32Int32 {
1674       get { return mapInt32Int32_; }
1675     }
1676 
1677     /// <summary>Field number for the "map_int64_int64" field.</summary>
1678     public const int MapInt64Int64FieldNumber = 57;
1679     private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
1680         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, 0L), 458);
1681     private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
1682     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1683     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1684     public pbc::MapField<long, long> MapInt64Int64 {
1685       get { return mapInt64Int64_; }
1686     }
1687 
1688     /// <summary>Field number for the "map_uint32_uint32" field.</summary>
1689     public const int MapUint32Uint32FieldNumber = 58;
1690     private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
1691         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 466);
1692     private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
1693     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1694     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1695     public pbc::MapField<uint, uint> MapUint32Uint32 {
1696       get { return mapUint32Uint32_; }
1697     }
1698 
1699     /// <summary>Field number for the "map_uint64_uint64" field.</summary>
1700     public const int MapUint64Uint64FieldNumber = 59;
1701     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
1702         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 474);
1703     private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
1704     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1705     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1706     public pbc::MapField<ulong, ulong> MapUint64Uint64 {
1707       get { return mapUint64Uint64_; }
1708     }
1709 
1710     /// <summary>Field number for the "map_sint32_sint32" field.</summary>
1711     public const int MapSint32Sint32FieldNumber = 60;
1712     private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
1713         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8, 0), pb::FieldCodec.ForSInt32(16, 0), 482);
1714     private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
1715     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1716     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1717     public pbc::MapField<int, int> MapSint32Sint32 {
1718       get { return mapSint32Sint32_; }
1719     }
1720 
1721     /// <summary>Field number for the "map_sint64_sint64" field.</summary>
1722     public const int MapSint64Sint64FieldNumber = 61;
1723     private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
1724         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8, 0L), pb::FieldCodec.ForSInt64(16, 0L), 490);
1725     private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
1726     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1727     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1728     public pbc::MapField<long, long> MapSint64Sint64 {
1729       get { return mapSint64Sint64_; }
1730     }
1731 
1732     /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
1733     public const int MapFixed32Fixed32FieldNumber = 62;
1734     private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
1735         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13, 0), pb::FieldCodec.ForFixed32(21, 0), 498);
1736     private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
1737     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1738     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1739     public pbc::MapField<uint, uint> MapFixed32Fixed32 {
1740       get { return mapFixed32Fixed32_; }
1741     }
1742 
1743     /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
1744     public const int MapFixed64Fixed64FieldNumber = 63;
1745     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
1746         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 506);
1747     private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
1748     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1749     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1750     public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
1751       get { return mapFixed64Fixed64_; }
1752     }
1753 
1754     /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
1755     public const int MapSfixed32Sfixed32FieldNumber = 64;
1756     private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
1757         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13, 0), pb::FieldCodec.ForSFixed32(21, 0), 514);
1758     private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
1759     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1760     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1761     public pbc::MapField<int, int> MapSfixed32Sfixed32 {
1762       get { return mapSfixed32Sfixed32_; }
1763     }
1764 
1765     /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
1766     public const int MapSfixed64Sfixed64FieldNumber = 65;
1767     private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
1768         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 522);
1769     private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
1770     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1771     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1772     public pbc::MapField<long, long> MapSfixed64Sfixed64 {
1773       get { return mapSfixed64Sfixed64_; }
1774     }
1775 
1776     /// <summary>Field number for the "map_int32_float" field.</summary>
1777     public const int MapInt32FloatFieldNumber = 66;
1778     private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
1779         = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForFloat(21, 0F), 530);
1780     private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
1781     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1782     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1783     public pbc::MapField<int, float> MapInt32Float {
1784       get { return mapInt32Float_; }
1785     }
1786 
1787     /// <summary>Field number for the "map_int32_double" field.</summary>
1788     public const int MapInt32DoubleFieldNumber = 67;
1789     private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
1790         = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForDouble(17, 0D), 538);
1791     private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
1792     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1793     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1794     public pbc::MapField<int, double> MapInt32Double {
1795       get { return mapInt32Double_; }
1796     }
1797 
1798     /// <summary>Field number for the "map_bool_bool" field.</summary>
1799     public const int MapBoolBoolFieldNumber = 68;
1800     private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
1801         = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8, false), pb::FieldCodec.ForBool(16, false), 546);
1802     private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
1803     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1804     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1805     public pbc::MapField<bool, bool> MapBoolBool {
1806       get { return mapBoolBool_; }
1807     }
1808 
1809     /// <summary>Field number for the "map_string_string" field.</summary>
1810     public const int MapStringStringFieldNumber = 69;
1811     private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
1812         = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 554);
1813     private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
1814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1815     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1816     public pbc::MapField<string, string> MapStringString {
1817       get { return mapStringString_; }
1818     }
1819 
1820     /// <summary>Field number for the "map_string_bytes" field.</summary>
1821     public const int MapStringBytesFieldNumber = 70;
1822     private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_mapStringBytes_codec
1823         = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 562);
1824     private readonly pbc::MapField<string, pb::ByteString> mapStringBytes_ = new pbc::MapField<string, pb::ByteString>();
1825     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1826     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1827     public pbc::MapField<string, pb::ByteString> MapStringBytes {
1828       get { return mapStringBytes_; }
1829     }
1830 
1831     /// <summary>Field number for the "map_string_nested_message" field.</summary>
1832     public const int MapStringNestedMessageFieldNumber = 71;
1833     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec _map_mapStringNestedMessage_codec
1834         = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser), 570);
1835     private readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage> mapStringNestedMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage>();
1836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1837     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1838     public pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage> MapStringNestedMessage {
1839       get { return mapStringNestedMessage_; }
1840     }
1841 
1842     /// <summary>Field number for the "map_string_foreign_message" field.</summary>
1843     public const int MapStringForeignMessageFieldNumber = 72;
1844     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2>.Codec _map_mapStringForeignMessage_codec
1845         = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2.Parser), 578);
1846     private readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2> mapStringForeignMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2>();
1847     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1848     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1849     public pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2> MapStringForeignMessage {
1850       get { return mapStringForeignMessage_; }
1851     }
1852 
1853     /// <summary>Field number for the "map_string_nested_enum" field.</summary>
1854     public const int MapStringNestedEnumFieldNumber = 73;
1855     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec _map_mapStringNestedEnum_codec
1856         = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) x, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo), 586);
1857     private readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> mapStringNestedEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1858     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1859     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1860     public pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum> MapStringNestedEnum {
1861       get { return mapStringNestedEnum_; }
1862     }
1863 
1864     /// <summary>Field number for the "map_string_foreign_enum" field.</summary>
1865     public const int MapStringForeignEnumFieldNumber = 74;
1866     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2>.Codec _map_mapStringForeignEnum_codec
1867         = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2) x, global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2.ForeignFoo), 594);
1868     private readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2> mapStringForeignEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2>();
1869     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1870     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1871     public pbc::MapField<string, global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2> MapStringForeignEnum {
1872       get { return mapStringForeignEnum_; }
1873     }
1874 
1875     /// <summary>Field number for the "oneof_uint32" field.</summary>
1876     public const int OneofUint32FieldNumber = 111;
1877     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1878     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1879     public uint OneofUint32 {
1880       get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
1881       set {
1882         oneofField_ = value;
1883         oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
1884       }
1885     }
1886     /// <summary>Gets whether the "oneof_uint32" field is set</summary>
1887     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1888     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1889     public bool HasOneofUint32 {
1890       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
1891     }
1892     /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
1893     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1894     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofUint32()1895     public void ClearOneofUint32() {
1896       if (HasOneofUint32) {
1897         ClearOneofField();
1898       }
1899     }
1900 
1901     /// <summary>Field number for the "oneof_nested_message" field.</summary>
1902     public const int OneofNestedMessageFieldNumber = 112;
1903     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1904     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1905     public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage OneofNestedMessage {
1906       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage) oneofField_ : null; }
1907       set {
1908         oneofField_ = value;
1909         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
1910       }
1911     }
1912 
1913     /// <summary>Field number for the "oneof_string" field.</summary>
1914     public const int OneofStringFieldNumber = 113;
1915     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1916     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1917     public string OneofString {
1918       get { return HasOneofString ? (string) oneofField_ : ""; }
1919       set {
1920         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1921         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
1922       }
1923     }
1924     /// <summary>Gets whether the "oneof_string" field is set</summary>
1925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1926     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1927     public bool HasOneofString {
1928       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
1929     }
1930     /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
1931     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1932     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofString()1933     public void ClearOneofString() {
1934       if (HasOneofString) {
1935         ClearOneofField();
1936       }
1937     }
1938 
1939     /// <summary>Field number for the "oneof_bytes" field.</summary>
1940     public const int OneofBytesFieldNumber = 114;
1941     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1942     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1943     public pb::ByteString OneofBytes {
1944       get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
1945       set {
1946         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1947         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
1948       }
1949     }
1950     /// <summary>Gets whether the "oneof_bytes" field is set</summary>
1951     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1952     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1953     public bool HasOneofBytes {
1954       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
1955     }
1956     /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
1957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1958     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofBytes()1959     public void ClearOneofBytes() {
1960       if (HasOneofBytes) {
1961         ClearOneofField();
1962       }
1963     }
1964 
1965     /// <summary>Field number for the "oneof_bool" field.</summary>
1966     public const int OneofBoolFieldNumber = 115;
1967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1968     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1969     public bool OneofBool {
1970       get { return HasOneofBool ? (bool) oneofField_ : false; }
1971       set {
1972         oneofField_ = value;
1973         oneofFieldCase_ = OneofFieldOneofCase.OneofBool;
1974       }
1975     }
1976     /// <summary>Gets whether the "oneof_bool" field is set</summary>
1977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1979     public bool HasOneofBool {
1980       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBool; }
1981     }
1982     /// <summary> Clears the value of the oneof if it's currently set to "oneof_bool" </summary>
1983     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1984     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofBool()1985     public void ClearOneofBool() {
1986       if (HasOneofBool) {
1987         ClearOneofField();
1988       }
1989     }
1990 
1991     /// <summary>Field number for the "oneof_uint64" field.</summary>
1992     public const int OneofUint64FieldNumber = 116;
1993     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1994     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1995     public ulong OneofUint64 {
1996       get { return HasOneofUint64 ? (ulong) oneofField_ : 0UL; }
1997       set {
1998         oneofField_ = value;
1999         oneofFieldCase_ = OneofFieldOneofCase.OneofUint64;
2000       }
2001     }
2002     /// <summary>Gets whether the "oneof_uint64" field is set</summary>
2003     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2004     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2005     public bool HasOneofUint64 {
2006       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint64; }
2007     }
2008     /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint64" </summary>
2009     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2010     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofUint64()2011     public void ClearOneofUint64() {
2012       if (HasOneofUint64) {
2013         ClearOneofField();
2014       }
2015     }
2016 
2017     /// <summary>Field number for the "oneof_float" field.</summary>
2018     public const int OneofFloatFieldNumber = 117;
2019     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2020     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2021     public float OneofFloat {
2022       get { return HasOneofFloat ? (float) oneofField_ : 0F; }
2023       set {
2024         oneofField_ = value;
2025         oneofFieldCase_ = OneofFieldOneofCase.OneofFloat;
2026       }
2027     }
2028     /// <summary>Gets whether the "oneof_float" field is set</summary>
2029     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2030     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2031     public bool HasOneofFloat {
2032       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofFloat; }
2033     }
2034     /// <summary> Clears the value of the oneof if it's currently set to "oneof_float" </summary>
2035     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2036     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofFloat()2037     public void ClearOneofFloat() {
2038       if (HasOneofFloat) {
2039         ClearOneofField();
2040       }
2041     }
2042 
2043     /// <summary>Field number for the "oneof_double" field.</summary>
2044     public const int OneofDoubleFieldNumber = 118;
2045     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2046     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2047     public double OneofDouble {
2048       get { return HasOneofDouble ? (double) oneofField_ : 0D; }
2049       set {
2050         oneofField_ = value;
2051         oneofFieldCase_ = OneofFieldOneofCase.OneofDouble;
2052       }
2053     }
2054     /// <summary>Gets whether the "oneof_double" field is set</summary>
2055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2056     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2057     public bool HasOneofDouble {
2058       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofDouble; }
2059     }
2060     /// <summary> Clears the value of the oneof if it's currently set to "oneof_double" </summary>
2061     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2062     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofDouble()2063     public void ClearOneofDouble() {
2064       if (HasOneofDouble) {
2065         ClearOneofField();
2066       }
2067     }
2068 
2069     /// <summary>Field number for the "oneof_enum" field.</summary>
2070     public const int OneofEnumFieldNumber = 119;
2071     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2072     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2073     public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum OneofEnum {
2074       get { return HasOneofEnum ? (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) oneofField_ : global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo; }
2075       set {
2076         oneofField_ = value;
2077         oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
2078       }
2079     }
2080     /// <summary>Gets whether the "oneof_enum" field is set</summary>
2081     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2082     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2083     public bool HasOneofEnum {
2084       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofEnum; }
2085     }
2086     /// <summary> Clears the value of the oneof if it's currently set to "oneof_enum" </summary>
2087     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2088     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofEnum()2089     public void ClearOneofEnum() {
2090       if (HasOneofEnum) {
2091         ClearOneofField();
2092       }
2093     }
2094 
2095     /// <summary>Field number for the "data" field.</summary>
2096     public const int DataFieldNumber = 201;
2097     private global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.Data data_;
2098     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2099     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2100     public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.Data Data {
2101       get { return data_; }
2102       set {
2103         data_ = value;
2104       }
2105     }
2106     /// <summary>Gets whether the data field is set</summary>
2107     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2108     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2109     public bool HasData {
2110       get { return data_ != null; }
2111     }
2112     /// <summary>Clears the value of the data field</summary>
2113     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2114     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()2115     public void ClearData() {
2116       data_ = null;
2117     }
2118 
2119     /// <summary>Field number for the "multiwordgroupfield" field.</summary>
2120     public const int MultiWordGroupFieldFieldNumber = 204;
2121     private global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MultiWordGroupField multiWordGroupField_;
2122     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2123     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2124     public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MultiWordGroupField MultiWordGroupField {
2125       get { return multiWordGroupField_; }
2126       set {
2127         multiWordGroupField_ = value;
2128       }
2129     }
2130     /// <summary>Gets whether the multiwordgroupfield field is set</summary>
2131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2132     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2133     public bool HasMultiWordGroupField {
2134       get { return multiWordGroupField_ != null; }
2135     }
2136     /// <summary>Clears the value of the multiwordgroupfield field</summary>
2137     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2138     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMultiWordGroupField()2139     public void ClearMultiWordGroupField() {
2140       multiWordGroupField_ = null;
2141     }
2142 
2143     /// <summary>Field number for the "default_int32" field.</summary>
2144     public const int DefaultInt32FieldNumber = 241;
2145     private readonly static int DefaultInt32DefaultValue = -123456789;
2146 
2147     private int defaultInt32_;
2148     /// <summary>
2149     /// default values
2150     /// </summary>
2151     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2152     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2153     public int DefaultInt32 {
2154       get { if ((_hasBits0 & 32768) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } }
2155       set {
2156         _hasBits0 |= 32768;
2157         defaultInt32_ = value;
2158       }
2159     }
2160     /// <summary>Gets whether the "default_int32" field is set</summary>
2161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2162     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2163     public bool HasDefaultInt32 {
2164       get { return (_hasBits0 & 32768) != 0; }
2165     }
2166     /// <summary>Clears the value of the "default_int32" field</summary>
2167     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2168     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt32()2169     public void ClearDefaultInt32() {
2170       _hasBits0 &= ~32768;
2171     }
2172 
2173     /// <summary>Field number for the "default_int64" field.</summary>
2174     public const int DefaultInt64FieldNumber = 242;
2175     private readonly static long DefaultInt64DefaultValue = -9123456789123456789L;
2176 
2177     private long defaultInt64_;
2178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2180     public long DefaultInt64 {
2181       get { if ((_hasBits0 & 65536) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } }
2182       set {
2183         _hasBits0 |= 65536;
2184         defaultInt64_ = value;
2185       }
2186     }
2187     /// <summary>Gets whether the "default_int64" field is set</summary>
2188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2189     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2190     public bool HasDefaultInt64 {
2191       get { return (_hasBits0 & 65536) != 0; }
2192     }
2193     /// <summary>Clears the value of the "default_int64" field</summary>
2194     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2195     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt64()2196     public void ClearDefaultInt64() {
2197       _hasBits0 &= ~65536;
2198     }
2199 
2200     /// <summary>Field number for the "default_uint32" field.</summary>
2201     public const int DefaultUint32FieldNumber = 243;
2202     private readonly static uint DefaultUint32DefaultValue = 2123456789;
2203 
2204     private uint defaultUint32_;
2205     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2206     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2207     public uint DefaultUint32 {
2208       get { if ((_hasBits0 & 131072) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } }
2209       set {
2210         _hasBits0 |= 131072;
2211         defaultUint32_ = value;
2212       }
2213     }
2214     /// <summary>Gets whether the "default_uint32" field is set</summary>
2215     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2216     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2217     public bool HasDefaultUint32 {
2218       get { return (_hasBits0 & 131072) != 0; }
2219     }
2220     /// <summary>Clears the value of the "default_uint32" field</summary>
2221     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2222     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint32()2223     public void ClearDefaultUint32() {
2224       _hasBits0 &= ~131072;
2225     }
2226 
2227     /// <summary>Field number for the "default_uint64" field.</summary>
2228     public const int DefaultUint64FieldNumber = 244;
2229     private readonly static ulong DefaultUint64DefaultValue = 10123456789123456789UL;
2230 
2231     private ulong defaultUint64_;
2232     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2233     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2234     public ulong DefaultUint64 {
2235       get { if ((_hasBits0 & 262144) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } }
2236       set {
2237         _hasBits0 |= 262144;
2238         defaultUint64_ = value;
2239       }
2240     }
2241     /// <summary>Gets whether the "default_uint64" field is set</summary>
2242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2243     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2244     public bool HasDefaultUint64 {
2245       get { return (_hasBits0 & 262144) != 0; }
2246     }
2247     /// <summary>Clears the value of the "default_uint64" field</summary>
2248     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2249     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint64()2250     public void ClearDefaultUint64() {
2251       _hasBits0 &= ~262144;
2252     }
2253 
2254     /// <summary>Field number for the "default_sint32" field.</summary>
2255     public const int DefaultSint32FieldNumber = 245;
2256     private readonly static int DefaultSint32DefaultValue = -123456789;
2257 
2258     private int defaultSint32_;
2259     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2260     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2261     public int DefaultSint32 {
2262       get { if ((_hasBits0 & 524288) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } }
2263       set {
2264         _hasBits0 |= 524288;
2265         defaultSint32_ = value;
2266       }
2267     }
2268     /// <summary>Gets whether the "default_sint32" field is set</summary>
2269     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2270     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2271     public bool HasDefaultSint32 {
2272       get { return (_hasBits0 & 524288) != 0; }
2273     }
2274     /// <summary>Clears the value of the "default_sint32" field</summary>
2275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2276     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint32()2277     public void ClearDefaultSint32() {
2278       _hasBits0 &= ~524288;
2279     }
2280 
2281     /// <summary>Field number for the "default_sint64" field.</summary>
2282     public const int DefaultSint64FieldNumber = 246;
2283     private readonly static long DefaultSint64DefaultValue = -9123456789123456789L;
2284 
2285     private long defaultSint64_;
2286     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2287     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2288     public long DefaultSint64 {
2289       get { if ((_hasBits0 & 1048576) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } }
2290       set {
2291         _hasBits0 |= 1048576;
2292         defaultSint64_ = value;
2293       }
2294     }
2295     /// <summary>Gets whether the "default_sint64" field is set</summary>
2296     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2297     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2298     public bool HasDefaultSint64 {
2299       get { return (_hasBits0 & 1048576) != 0; }
2300     }
2301     /// <summary>Clears the value of the "default_sint64" field</summary>
2302     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2303     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint64()2304     public void ClearDefaultSint64() {
2305       _hasBits0 &= ~1048576;
2306     }
2307 
2308     /// <summary>Field number for the "default_fixed32" field.</summary>
2309     public const int DefaultFixed32FieldNumber = 247;
2310     private readonly static uint DefaultFixed32DefaultValue = 2123456789;
2311 
2312     private uint defaultFixed32_;
2313     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2314     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2315     public uint DefaultFixed32 {
2316       get { if ((_hasBits0 & 2097152) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } }
2317       set {
2318         _hasBits0 |= 2097152;
2319         defaultFixed32_ = value;
2320       }
2321     }
2322     /// <summary>Gets whether the "default_fixed32" field is set</summary>
2323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2324     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2325     public bool HasDefaultFixed32 {
2326       get { return (_hasBits0 & 2097152) != 0; }
2327     }
2328     /// <summary>Clears the value of the "default_fixed32" field</summary>
2329     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2330     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed32()2331     public void ClearDefaultFixed32() {
2332       _hasBits0 &= ~2097152;
2333     }
2334 
2335     /// <summary>Field number for the "default_fixed64" field.</summary>
2336     public const int DefaultFixed64FieldNumber = 248;
2337     private readonly static ulong DefaultFixed64DefaultValue = 10123456789123456789UL;
2338 
2339     private ulong defaultFixed64_;
2340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2341     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2342     public ulong DefaultFixed64 {
2343       get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } }
2344       set {
2345         _hasBits0 |= 4194304;
2346         defaultFixed64_ = value;
2347       }
2348     }
2349     /// <summary>Gets whether the "default_fixed64" field is set</summary>
2350     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2351     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2352     public bool HasDefaultFixed64 {
2353       get { return (_hasBits0 & 4194304) != 0; }
2354     }
2355     /// <summary>Clears the value of the "default_fixed64" field</summary>
2356     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2357     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed64()2358     public void ClearDefaultFixed64() {
2359       _hasBits0 &= ~4194304;
2360     }
2361 
2362     /// <summary>Field number for the "default_sfixed32" field.</summary>
2363     public const int DefaultSfixed32FieldNumber = 249;
2364     private readonly static int DefaultSfixed32DefaultValue = -123456789;
2365 
2366     private int defaultSfixed32_;
2367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2368     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2369     public int DefaultSfixed32 {
2370       get { if ((_hasBits0 & 8388608) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } }
2371       set {
2372         _hasBits0 |= 8388608;
2373         defaultSfixed32_ = value;
2374       }
2375     }
2376     /// <summary>Gets whether the "default_sfixed32" field is set</summary>
2377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2378     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2379     public bool HasDefaultSfixed32 {
2380       get { return (_hasBits0 & 8388608) != 0; }
2381     }
2382     /// <summary>Clears the value of the "default_sfixed32" field</summary>
2383     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2384     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed32()2385     public void ClearDefaultSfixed32() {
2386       _hasBits0 &= ~8388608;
2387     }
2388 
2389     /// <summary>Field number for the "default_sfixed64" field.</summary>
2390     public const int DefaultSfixed64FieldNumber = 250;
2391     private readonly static long DefaultSfixed64DefaultValue = -9123456789123456789L;
2392 
2393     private long defaultSfixed64_;
2394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2395     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2396     public long DefaultSfixed64 {
2397       get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } }
2398       set {
2399         _hasBits0 |= 16777216;
2400         defaultSfixed64_ = value;
2401       }
2402     }
2403     /// <summary>Gets whether the "default_sfixed64" field is set</summary>
2404     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2405     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2406     public bool HasDefaultSfixed64 {
2407       get { return (_hasBits0 & 16777216) != 0; }
2408     }
2409     /// <summary>Clears the value of the "default_sfixed64" field</summary>
2410     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2411     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed64()2412     public void ClearDefaultSfixed64() {
2413       _hasBits0 &= ~16777216;
2414     }
2415 
2416     /// <summary>Field number for the "default_float" field.</summary>
2417     public const int DefaultFloatFieldNumber = 251;
2418     private readonly static float DefaultFloatDefaultValue = 9e+09F;
2419 
2420     private float defaultFloat_;
2421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2422     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2423     public float DefaultFloat {
2424       get { if ((_hasBits0 & 33554432) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } }
2425       set {
2426         _hasBits0 |= 33554432;
2427         defaultFloat_ = value;
2428       }
2429     }
2430     /// <summary>Gets whether the "default_float" field is set</summary>
2431     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2432     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2433     public bool HasDefaultFloat {
2434       get { return (_hasBits0 & 33554432) != 0; }
2435     }
2436     /// <summary>Clears the value of the "default_float" field</summary>
2437     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2438     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFloat()2439     public void ClearDefaultFloat() {
2440       _hasBits0 &= ~33554432;
2441     }
2442 
2443     /// <summary>Field number for the "default_double" field.</summary>
2444     public const int DefaultDoubleFieldNumber = 252;
2445     private readonly static double DefaultDoubleDefaultValue = 7e+22D;
2446 
2447     private double defaultDouble_;
2448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2449     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2450     public double DefaultDouble {
2451       get { if ((_hasBits0 & 67108864) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } }
2452       set {
2453         _hasBits0 |= 67108864;
2454         defaultDouble_ = value;
2455       }
2456     }
2457     /// <summary>Gets whether the "default_double" field is set</summary>
2458     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2459     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2460     public bool HasDefaultDouble {
2461       get { return (_hasBits0 & 67108864) != 0; }
2462     }
2463     /// <summary>Clears the value of the "default_double" field</summary>
2464     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2465     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultDouble()2466     public void ClearDefaultDouble() {
2467       _hasBits0 &= ~67108864;
2468     }
2469 
2470     /// <summary>Field number for the "default_bool" field.</summary>
2471     public const int DefaultBoolFieldNumber = 253;
2472     private readonly static bool DefaultBoolDefaultValue = true;
2473 
2474     private bool defaultBool_;
2475     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2476     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2477     public bool DefaultBool {
2478       get { if ((_hasBits0 & 134217728) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } }
2479       set {
2480         _hasBits0 |= 134217728;
2481         defaultBool_ = value;
2482       }
2483     }
2484     /// <summary>Gets whether the "default_bool" field is set</summary>
2485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2486     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2487     public bool HasDefaultBool {
2488       get { return (_hasBits0 & 134217728) != 0; }
2489     }
2490     /// <summary>Clears the value of the "default_bool" field</summary>
2491     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2492     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBool()2493     public void ClearDefaultBool() {
2494       _hasBits0 &= ~134217728;
2495     }
2496 
2497     /// <summary>Field number for the "default_string" field.</summary>
2498     public const int DefaultStringFieldNumber = 254;
2499     private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Um9zZWJ1ZA=="), 0, 7);
2500 
2501     private string defaultString_;
2502     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2503     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2504     public string DefaultString {
2505       get { return defaultString_ ?? DefaultStringDefaultValue; }
2506       set {
2507         defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2508       }
2509     }
2510     /// <summary>Gets whether the "default_string" field is set</summary>
2511     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2512     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2513     public bool HasDefaultString {
2514       get { return defaultString_ != null; }
2515     }
2516     /// <summary>Clears the value of the "default_string" field</summary>
2517     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2518     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultString()2519     public void ClearDefaultString() {
2520       defaultString_ = null;
2521     }
2522 
2523     /// <summary>Field number for the "default_bytes" field.</summary>
2524     public const int DefaultBytesFieldNumber = 255;
2525     private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("am9zaHVh");
2526 
2527     private pb::ByteString defaultBytes_;
2528     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2529     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2530     public pb::ByteString DefaultBytes {
2531       get { return defaultBytes_ ?? DefaultBytesDefaultValue; }
2532       set {
2533         defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2534       }
2535     }
2536     /// <summary>Gets whether the "default_bytes" field is set</summary>
2537     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2538     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2539     public bool HasDefaultBytes {
2540       get { return defaultBytes_ != null; }
2541     }
2542     /// <summary>Clears the value of the "default_bytes" field</summary>
2543     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2544     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBytes()2545     public void ClearDefaultBytes() {
2546       defaultBytes_ = null;
2547     }
2548 
2549     /// <summary>Field number for the "fieldname1" field.</summary>
2550     public const int Fieldname1FieldNumber = 401;
2551     private readonly static int Fieldname1DefaultValue = 0;
2552 
2553     private int fieldname1_;
2554     /// <summary>
2555     /// Test field-name-to-JSON-name convention.
2556     /// (protobuf says names can be any valid C/C++ identifier.)
2557     /// </summary>
2558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2559     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2560     public int Fieldname1 {
2561       get { if ((_hasBits0 & 268435456) != 0) { return fieldname1_; } else { return Fieldname1DefaultValue; } }
2562       set {
2563         _hasBits0 |= 268435456;
2564         fieldname1_ = value;
2565       }
2566     }
2567     /// <summary>Gets whether the "fieldname1" field is set</summary>
2568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2570     public bool HasFieldname1 {
2571       get { return (_hasBits0 & 268435456) != 0; }
2572     }
2573     /// <summary>Clears the value of the "fieldname1" field</summary>
2574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldname1()2576     public void ClearFieldname1() {
2577       _hasBits0 &= ~268435456;
2578     }
2579 
2580     /// <summary>Field number for the "field_name2" field.</summary>
2581     public const int FieldName2FieldNumber = 402;
2582     private readonly static int FieldName2DefaultValue = 0;
2583 
2584     private int fieldName2_;
2585     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2586     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2587     public int FieldName2 {
2588       get { if ((_hasBits0 & 536870912) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } }
2589       set {
2590         _hasBits0 |= 536870912;
2591         fieldName2_ = value;
2592       }
2593     }
2594     /// <summary>Gets whether the "field_name2" field is set</summary>
2595     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2596     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2597     public bool HasFieldName2 {
2598       get { return (_hasBits0 & 536870912) != 0; }
2599     }
2600     /// <summary>Clears the value of the "field_name2" field</summary>
2601     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2602     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName2()2603     public void ClearFieldName2() {
2604       _hasBits0 &= ~536870912;
2605     }
2606 
2607     /// <summary>Field number for the "_field_name3" field.</summary>
2608     public const int FieldName3FieldNumber = 403;
2609     private readonly static int FieldName3DefaultValue = 0;
2610 
2611     private int FieldName3_;
2612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2613     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2614     public int FieldName3 {
2615       get { if ((_hasBits0 & 1073741824) != 0) { return FieldName3_; } else { return FieldName3DefaultValue; } }
2616       set {
2617         _hasBits0 |= 1073741824;
2618         FieldName3_ = value;
2619       }
2620     }
2621     /// <summary>Gets whether the "_field_name3" field is set</summary>
2622     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2623     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2624     public bool HasFieldName3 {
2625       get { return (_hasBits0 & 1073741824) != 0; }
2626     }
2627     /// <summary>Clears the value of the "_field_name3" field</summary>
2628     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2629     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName3()2630     public void ClearFieldName3() {
2631       _hasBits0 &= ~1073741824;
2632     }
2633 
2634     /// <summary>Field number for the "field__name4_" field.</summary>
2635     public const int FieldName4FieldNumber = 404;
2636     private readonly static int FieldName4DefaultValue = 0;
2637 
2638     private int fieldName4_;
2639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2640     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2641     public int FieldName4 {
2642       get { if ((_hasBits0 & -2147483648) != 0) { return fieldName4_; } else { return FieldName4DefaultValue; } }
2643       set {
2644         _hasBits0 |= -2147483648;
2645         fieldName4_ = value;
2646       }
2647     }
2648     /// <summary>Gets whether the "field__name4_" field is set</summary>
2649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2651     public bool HasFieldName4 {
2652       get { return (_hasBits0 & -2147483648) != 0; }
2653     }
2654     /// <summary>Clears the value of the "field__name4_" field</summary>
2655     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2656     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName4()2657     public void ClearFieldName4() {
2658       _hasBits0 &= ~-2147483648;
2659     }
2660 
2661     /// <summary>Field number for the "field0name5" field.</summary>
2662     public const int Field0Name5FieldNumber = 405;
2663     private readonly static int Field0Name5DefaultValue = 0;
2664 
2665     private int field0Name5_;
2666     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2667     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2668     public int Field0Name5 {
2669       get { if ((_hasBits1 & 1) != 0) { return field0Name5_; } else { return Field0Name5DefaultValue; } }
2670       set {
2671         _hasBits1 |= 1;
2672         field0Name5_ = value;
2673       }
2674     }
2675     /// <summary>Gets whether the "field0name5" field is set</summary>
2676     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2677     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2678     public bool HasField0Name5 {
2679       get { return (_hasBits1 & 1) != 0; }
2680     }
2681     /// <summary>Clears the value of the "field0name5" field</summary>
2682     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2683     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField0Name5()2684     public void ClearField0Name5() {
2685       _hasBits1 &= ~1;
2686     }
2687 
2688     /// <summary>Field number for the "field_0_name6" field.</summary>
2689     public const int Field0Name6FieldNumber = 406;
2690     private readonly static int Field0Name6DefaultValue = 0;
2691 
2692     private int field0Name6_;
2693     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2694     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2695     public int Field0Name6 {
2696       get { if ((_hasBits1 & 2) != 0) { return field0Name6_; } else { return Field0Name6DefaultValue; } }
2697       set {
2698         _hasBits1 |= 2;
2699         field0Name6_ = value;
2700       }
2701     }
2702     /// <summary>Gets whether the "field_0_name6" field is set</summary>
2703     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2704     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2705     public bool HasField0Name6 {
2706       get { return (_hasBits1 & 2) != 0; }
2707     }
2708     /// <summary>Clears the value of the "field_0_name6" field</summary>
2709     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2710     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField0Name6()2711     public void ClearField0Name6() {
2712       _hasBits1 &= ~2;
2713     }
2714 
2715     /// <summary>Field number for the "fieldName7" field.</summary>
2716     public const int FieldName7FieldNumber = 407;
2717     private readonly static int FieldName7DefaultValue = 0;
2718 
2719     private int fieldName7_;
2720     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2721     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2722     public int FieldName7 {
2723       get { if ((_hasBits1 & 4) != 0) { return fieldName7_; } else { return FieldName7DefaultValue; } }
2724       set {
2725         _hasBits1 |= 4;
2726         fieldName7_ = value;
2727       }
2728     }
2729     /// <summary>Gets whether the "fieldName7" field is set</summary>
2730     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2731     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2732     public bool HasFieldName7 {
2733       get { return (_hasBits1 & 4) != 0; }
2734     }
2735     /// <summary>Clears the value of the "fieldName7" field</summary>
2736     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2737     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName7()2738     public void ClearFieldName7() {
2739       _hasBits1 &= ~4;
2740     }
2741 
2742     /// <summary>Field number for the "FieldName8" field.</summary>
2743     public const int FieldName8FieldNumber = 408;
2744     private readonly static int FieldName8DefaultValue = 0;
2745 
2746     private int fieldName8_;
2747     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2748     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2749     public int FieldName8 {
2750       get { if ((_hasBits1 & 8) != 0) { return fieldName8_; } else { return FieldName8DefaultValue; } }
2751       set {
2752         _hasBits1 |= 8;
2753         fieldName8_ = value;
2754       }
2755     }
2756     /// <summary>Gets whether the "FieldName8" field is set</summary>
2757     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2758     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2759     public bool HasFieldName8 {
2760       get { return (_hasBits1 & 8) != 0; }
2761     }
2762     /// <summary>Clears the value of the "FieldName8" field</summary>
2763     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2764     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName8()2765     public void ClearFieldName8() {
2766       _hasBits1 &= ~8;
2767     }
2768 
2769     /// <summary>Field number for the "field_Name9" field.</summary>
2770     public const int FieldName9FieldNumber = 409;
2771     private readonly static int FieldName9DefaultValue = 0;
2772 
2773     private int fieldName9_;
2774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2775     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2776     public int FieldName9 {
2777       get { if ((_hasBits1 & 16) != 0) { return fieldName9_; } else { return FieldName9DefaultValue; } }
2778       set {
2779         _hasBits1 |= 16;
2780         fieldName9_ = value;
2781       }
2782     }
2783     /// <summary>Gets whether the "field_Name9" field is set</summary>
2784     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2785     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2786     public bool HasFieldName9 {
2787       get { return (_hasBits1 & 16) != 0; }
2788     }
2789     /// <summary>Clears the value of the "field_Name9" field</summary>
2790     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2791     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName9()2792     public void ClearFieldName9() {
2793       _hasBits1 &= ~16;
2794     }
2795 
2796     /// <summary>Field number for the "Field_Name10" field.</summary>
2797     public const int FieldName10FieldNumber = 410;
2798     private readonly static int FieldName10DefaultValue = 0;
2799 
2800     private int fieldName10_;
2801     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2802     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2803     public int FieldName10 {
2804       get { if ((_hasBits1 & 32) != 0) { return fieldName10_; } else { return FieldName10DefaultValue; } }
2805       set {
2806         _hasBits1 |= 32;
2807         fieldName10_ = value;
2808       }
2809     }
2810     /// <summary>Gets whether the "Field_Name10" field is set</summary>
2811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2812     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2813     public bool HasFieldName10 {
2814       get { return (_hasBits1 & 32) != 0; }
2815     }
2816     /// <summary>Clears the value of the "Field_Name10" field</summary>
2817     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2818     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName10()2819     public void ClearFieldName10() {
2820       _hasBits1 &= ~32;
2821     }
2822 
2823     /// <summary>Field number for the "FIELD_NAME11" field.</summary>
2824     public const int FIELDNAME11FieldNumber = 411;
2825     private readonly static int FIELDNAME11DefaultValue = 0;
2826 
2827     private int fIELDNAME11_;
2828     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2829     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2830     public int FIELDNAME11 {
2831       get { if ((_hasBits1 & 64) != 0) { return fIELDNAME11_; } else { return FIELDNAME11DefaultValue; } }
2832       set {
2833         _hasBits1 |= 64;
2834         fIELDNAME11_ = value;
2835       }
2836     }
2837     /// <summary>Gets whether the "FIELD_NAME11" field is set</summary>
2838     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2839     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2840     public bool HasFIELDNAME11 {
2841       get { return (_hasBits1 & 64) != 0; }
2842     }
2843     /// <summary>Clears the value of the "FIELD_NAME11" field</summary>
2844     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2845     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFIELDNAME11()2846     public void ClearFIELDNAME11() {
2847       _hasBits1 &= ~64;
2848     }
2849 
2850     /// <summary>Field number for the "FIELD_name12" field.</summary>
2851     public const int FIELDName12FieldNumber = 412;
2852     private readonly static int FIELDName12DefaultValue = 0;
2853 
2854     private int fIELDName12_;
2855     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2856     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2857     public int FIELDName12 {
2858       get { if ((_hasBits1 & 128) != 0) { return fIELDName12_; } else { return FIELDName12DefaultValue; } }
2859       set {
2860         _hasBits1 |= 128;
2861         fIELDName12_ = value;
2862       }
2863     }
2864     /// <summary>Gets whether the "FIELD_name12" field is set</summary>
2865     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2866     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2867     public bool HasFIELDName12 {
2868       get { return (_hasBits1 & 128) != 0; }
2869     }
2870     /// <summary>Clears the value of the "FIELD_name12" field</summary>
2871     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2872     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFIELDName12()2873     public void ClearFIELDName12() {
2874       _hasBits1 &= ~128;
2875     }
2876 
2877     /// <summary>Field number for the "__field_name13" field.</summary>
2878     public const int FieldName13FieldNumber = 413;
2879     private readonly static int FieldName13DefaultValue = 0;
2880 
2881     private int FieldName13_;
2882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2884     public int FieldName13 {
2885       get { if ((_hasBits1 & 256) != 0) { return FieldName13_; } else { return FieldName13DefaultValue; } }
2886       set {
2887         _hasBits1 |= 256;
2888         FieldName13_ = value;
2889       }
2890     }
2891     /// <summary>Gets whether the "__field_name13" field is set</summary>
2892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2893     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2894     public bool HasFieldName13 {
2895       get { return (_hasBits1 & 256) != 0; }
2896     }
2897     /// <summary>Clears the value of the "__field_name13" field</summary>
2898     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2899     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName13()2900     public void ClearFieldName13() {
2901       _hasBits1 &= ~256;
2902     }
2903 
2904     /// <summary>Field number for the "__Field_name14" field.</summary>
2905     public const int FieldName14FieldNumber = 414;
2906     private readonly static int FieldName14DefaultValue = 0;
2907 
2908     private int FieldName14_;
2909     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2910     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2911     public int FieldName14 {
2912       get { if ((_hasBits1 & 512) != 0) { return FieldName14_; } else { return FieldName14DefaultValue; } }
2913       set {
2914         _hasBits1 |= 512;
2915         FieldName14_ = value;
2916       }
2917     }
2918     /// <summary>Gets whether the "__Field_name14" field is set</summary>
2919     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2920     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2921     public bool HasFieldName14 {
2922       get { return (_hasBits1 & 512) != 0; }
2923     }
2924     /// <summary>Clears the value of the "__Field_name14" field</summary>
2925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2926     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName14()2927     public void ClearFieldName14() {
2928       _hasBits1 &= ~512;
2929     }
2930 
2931     /// <summary>Field number for the "field__name15" field.</summary>
2932     public const int FieldName15FieldNumber = 415;
2933     private readonly static int FieldName15DefaultValue = 0;
2934 
2935     private int fieldName15_;
2936     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2937     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2938     public int FieldName15 {
2939       get { if ((_hasBits1 & 1024) != 0) { return fieldName15_; } else { return FieldName15DefaultValue; } }
2940       set {
2941         _hasBits1 |= 1024;
2942         fieldName15_ = value;
2943       }
2944     }
2945     /// <summary>Gets whether the "field__name15" field is set</summary>
2946     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2947     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2948     public bool HasFieldName15 {
2949       get { return (_hasBits1 & 1024) != 0; }
2950     }
2951     /// <summary>Clears the value of the "field__name15" field</summary>
2952     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2953     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName15()2954     public void ClearFieldName15() {
2955       _hasBits1 &= ~1024;
2956     }
2957 
2958     /// <summary>Field number for the "field__Name16" field.</summary>
2959     public const int FieldName16FieldNumber = 416;
2960     private readonly static int FieldName16DefaultValue = 0;
2961 
2962     private int fieldName16_;
2963     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2964     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2965     public int FieldName16 {
2966       get { if ((_hasBits1 & 2048) != 0) { return fieldName16_; } else { return FieldName16DefaultValue; } }
2967       set {
2968         _hasBits1 |= 2048;
2969         fieldName16_ = value;
2970       }
2971     }
2972     /// <summary>Gets whether the "field__Name16" field is set</summary>
2973     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2974     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2975     public bool HasFieldName16 {
2976       get { return (_hasBits1 & 2048) != 0; }
2977     }
2978     /// <summary>Clears the value of the "field__Name16" field</summary>
2979     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2980     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName16()2981     public void ClearFieldName16() {
2982       _hasBits1 &= ~2048;
2983     }
2984 
2985     /// <summary>Field number for the "field_name17__" field.</summary>
2986     public const int FieldName17FieldNumber = 417;
2987     private readonly static int FieldName17DefaultValue = 0;
2988 
2989     private int fieldName17_;
2990     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2991     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2992     public int FieldName17 {
2993       get { if ((_hasBits1 & 4096) != 0) { return fieldName17_; } else { return FieldName17DefaultValue; } }
2994       set {
2995         _hasBits1 |= 4096;
2996         fieldName17_ = value;
2997       }
2998     }
2999     /// <summary>Gets whether the "field_name17__" field is set</summary>
3000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3001     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3002     public bool HasFieldName17 {
3003       get { return (_hasBits1 & 4096) != 0; }
3004     }
3005     /// <summary>Clears the value of the "field_name17__" field</summary>
3006     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3007     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName17()3008     public void ClearFieldName17() {
3009       _hasBits1 &= ~4096;
3010     }
3011 
3012     /// <summary>Field number for the "Field_name18__" field.</summary>
3013     public const int FieldName18FieldNumber = 418;
3014     private readonly static int FieldName18DefaultValue = 0;
3015 
3016     private int fieldName18_;
3017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3019     public int FieldName18 {
3020       get { if ((_hasBits1 & 8192) != 0) { return fieldName18_; } else { return FieldName18DefaultValue; } }
3021       set {
3022         _hasBits1 |= 8192;
3023         fieldName18_ = value;
3024       }
3025     }
3026     /// <summary>Gets whether the "Field_name18__" field is set</summary>
3027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3029     public bool HasFieldName18 {
3030       get { return (_hasBits1 & 8192) != 0; }
3031     }
3032     /// <summary>Clears the value of the "Field_name18__" field</summary>
3033     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3034     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName18()3035     public void ClearFieldName18() {
3036       _hasBits1 &= ~8192;
3037     }
3038 
3039     private object oneofField_;
3040     /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
3041     public enum OneofFieldOneofCase {
3042       None = 0,
3043       OneofUint32 = 111,
3044       OneofNestedMessage = 112,
3045       OneofString = 113,
3046       OneofBytes = 114,
3047       OneofBool = 115,
3048       OneofUint64 = 116,
3049       OneofFloat = 117,
3050       OneofDouble = 118,
3051       OneofEnum = 119,
3052     }
3053     private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
3054     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3055     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3056     public OneofFieldOneofCase OneofFieldCase {
3057       get { return oneofFieldCase_; }
3058     }
3059 
3060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3061     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofField()3062     public void ClearOneofField() {
3063       oneofFieldCase_ = OneofFieldOneofCase.None;
3064       oneofField_ = null;
3065     }
3066 
3067     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3068     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)3069     public override bool Equals(object other) {
3070       return Equals(other as TestAllTypesProto2);
3071     }
3072 
3073     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3074     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestAllTypesProto2 other)3075     public bool Equals(TestAllTypesProto2 other) {
3076       if (ReferenceEquals(other, null)) {
3077         return false;
3078       }
3079       if (ReferenceEquals(other, this)) {
3080         return true;
3081       }
3082       if (OptionalInt32 != other.OptionalInt32) return false;
3083       if (OptionalInt64 != other.OptionalInt64) return false;
3084       if (OptionalUint32 != other.OptionalUint32) return false;
3085       if (OptionalUint64 != other.OptionalUint64) return false;
3086       if (OptionalSint32 != other.OptionalSint32) return false;
3087       if (OptionalSint64 != other.OptionalSint64) return false;
3088       if (OptionalFixed32 != other.OptionalFixed32) return false;
3089       if (OptionalFixed64 != other.OptionalFixed64) return false;
3090       if (OptionalSfixed32 != other.OptionalSfixed32) return false;
3091       if (OptionalSfixed64 != other.OptionalSfixed64) return false;
3092       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
3093       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
3094       if (OptionalBool != other.OptionalBool) return false;
3095       if (OptionalString != other.OptionalString) return false;
3096       if (OptionalBytes != other.OptionalBytes) return false;
3097       if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
3098       if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
3099       if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
3100       if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
3101       if (OptionalStringPiece != other.OptionalStringPiece) return false;
3102       if (OptionalCord != other.OptionalCord) return false;
3103       if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
3104       if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
3105       if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
3106       if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
3107       if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
3108       if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
3109       if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
3110       if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
3111       if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
3112       if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
3113       if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
3114       if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
3115       if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
3116       if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
3117       if(!repeatedString_.Equals(other.repeatedString_)) return false;
3118       if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
3119       if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
3120       if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
3121       if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
3122       if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
3123       if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
3124       if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
3125       if(!packedInt32_.Equals(other.packedInt32_)) return false;
3126       if(!packedInt64_.Equals(other.packedInt64_)) return false;
3127       if(!packedUint32_.Equals(other.packedUint32_)) return false;
3128       if(!packedUint64_.Equals(other.packedUint64_)) return false;
3129       if(!packedSint32_.Equals(other.packedSint32_)) return false;
3130       if(!packedSint64_.Equals(other.packedSint64_)) return false;
3131       if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
3132       if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
3133       if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
3134       if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
3135       if(!packedFloat_.Equals(other.packedFloat_)) return false;
3136       if(!packedDouble_.Equals(other.packedDouble_)) return false;
3137       if(!packedBool_.Equals(other.packedBool_)) return false;
3138       if(!packedNestedEnum_.Equals(other.packedNestedEnum_)) return false;
3139       if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
3140       if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
3141       if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
3142       if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
3143       if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
3144       if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
3145       if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
3146       if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
3147       if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
3148       if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
3149       if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
3150       if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
3151       if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
3152       if(!unpackedNestedEnum_.Equals(other.unpackedNestedEnum_)) return false;
3153       if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
3154       if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
3155       if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
3156       if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
3157       if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
3158       if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
3159       if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
3160       if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
3161       if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
3162       if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
3163       if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
3164       if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
3165       if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
3166       if (!MapStringString.Equals(other.MapStringString)) return false;
3167       if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
3168       if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
3169       if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
3170       if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
3171       if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
3172       if (OneofUint32 != other.OneofUint32) return false;
3173       if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
3174       if (OneofString != other.OneofString) return false;
3175       if (OneofBytes != other.OneofBytes) return false;
3176       if (OneofBool != other.OneofBool) return false;
3177       if (OneofUint64 != other.OneofUint64) return false;
3178       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneofFloat, other.OneofFloat)) return false;
3179       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OneofDouble, other.OneofDouble)) return false;
3180       if (OneofEnum != other.OneofEnum) return false;
3181       if (!object.Equals(Data, other.Data)) return false;
3182       if (!object.Equals(MultiWordGroupField, other.MultiWordGroupField)) return false;
3183       if (DefaultInt32 != other.DefaultInt32) return false;
3184       if (DefaultInt64 != other.DefaultInt64) return false;
3185       if (DefaultUint32 != other.DefaultUint32) return false;
3186       if (DefaultUint64 != other.DefaultUint64) return false;
3187       if (DefaultSint32 != other.DefaultSint32) return false;
3188       if (DefaultSint64 != other.DefaultSint64) return false;
3189       if (DefaultFixed32 != other.DefaultFixed32) return false;
3190       if (DefaultFixed64 != other.DefaultFixed64) return false;
3191       if (DefaultSfixed32 != other.DefaultSfixed32) return false;
3192       if (DefaultSfixed64 != other.DefaultSfixed64) return false;
3193       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false;
3194       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false;
3195       if (DefaultBool != other.DefaultBool) return false;
3196       if (DefaultString != other.DefaultString) return false;
3197       if (DefaultBytes != other.DefaultBytes) return false;
3198       if (Fieldname1 != other.Fieldname1) return false;
3199       if (FieldName2 != other.FieldName2) return false;
3200       if (FieldName3 != other.FieldName3) return false;
3201       if (FieldName4 != other.FieldName4) return false;
3202       if (Field0Name5 != other.Field0Name5) return false;
3203       if (Field0Name6 != other.Field0Name6) return false;
3204       if (FieldName7 != other.FieldName7) return false;
3205       if (FieldName8 != other.FieldName8) return false;
3206       if (FieldName9 != other.FieldName9) return false;
3207       if (FieldName10 != other.FieldName10) return false;
3208       if (FIELDNAME11 != other.FIELDNAME11) return false;
3209       if (FIELDName12 != other.FIELDName12) return false;
3210       if (FieldName13 != other.FieldName13) return false;
3211       if (FieldName14 != other.FieldName14) return false;
3212       if (FieldName15 != other.FieldName15) return false;
3213       if (FieldName16 != other.FieldName16) return false;
3214       if (FieldName17 != other.FieldName17) return false;
3215       if (FieldName18 != other.FieldName18) return false;
3216       if (OneofFieldCase != other.OneofFieldCase) return false;
3217       if (!Equals(_extensions, other._extensions)) {
3218         return false;
3219       }
3220       return Equals(_unknownFields, other._unknownFields);
3221     }
3222 
3223     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3224     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()3225     public override int GetHashCode() {
3226       int hash = 1;
3227       if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
3228       if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode();
3229       if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode();
3230       if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode();
3231       if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode();
3232       if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode();
3233       if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode();
3234       if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode();
3235       if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode();
3236       if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode();
3237       if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
3238       if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
3239       if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
3240       if (HasOptionalString) hash ^= OptionalString.GetHashCode();
3241       if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
3242       if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
3243       if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
3244       if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode();
3245       if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
3246       if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode();
3247       if (HasOptionalCord) hash ^= OptionalCord.GetHashCode();
3248       if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode();
3249       hash ^= repeatedInt32_.GetHashCode();
3250       hash ^= repeatedInt64_.GetHashCode();
3251       hash ^= repeatedUint32_.GetHashCode();
3252       hash ^= repeatedUint64_.GetHashCode();
3253       hash ^= repeatedSint32_.GetHashCode();
3254       hash ^= repeatedSint64_.GetHashCode();
3255       hash ^= repeatedFixed32_.GetHashCode();
3256       hash ^= repeatedFixed64_.GetHashCode();
3257       hash ^= repeatedSfixed32_.GetHashCode();
3258       hash ^= repeatedSfixed64_.GetHashCode();
3259       hash ^= repeatedFloat_.GetHashCode();
3260       hash ^= repeatedDouble_.GetHashCode();
3261       hash ^= repeatedBool_.GetHashCode();
3262       hash ^= repeatedString_.GetHashCode();
3263       hash ^= repeatedBytes_.GetHashCode();
3264       hash ^= repeatedNestedMessage_.GetHashCode();
3265       hash ^= repeatedForeignMessage_.GetHashCode();
3266       hash ^= repeatedNestedEnum_.GetHashCode();
3267       hash ^= repeatedForeignEnum_.GetHashCode();
3268       hash ^= repeatedStringPiece_.GetHashCode();
3269       hash ^= repeatedCord_.GetHashCode();
3270       hash ^= packedInt32_.GetHashCode();
3271       hash ^= packedInt64_.GetHashCode();
3272       hash ^= packedUint32_.GetHashCode();
3273       hash ^= packedUint64_.GetHashCode();
3274       hash ^= packedSint32_.GetHashCode();
3275       hash ^= packedSint64_.GetHashCode();
3276       hash ^= packedFixed32_.GetHashCode();
3277       hash ^= packedFixed64_.GetHashCode();
3278       hash ^= packedSfixed32_.GetHashCode();
3279       hash ^= packedSfixed64_.GetHashCode();
3280       hash ^= packedFloat_.GetHashCode();
3281       hash ^= packedDouble_.GetHashCode();
3282       hash ^= packedBool_.GetHashCode();
3283       hash ^= packedNestedEnum_.GetHashCode();
3284       hash ^= unpackedInt32_.GetHashCode();
3285       hash ^= unpackedInt64_.GetHashCode();
3286       hash ^= unpackedUint32_.GetHashCode();
3287       hash ^= unpackedUint64_.GetHashCode();
3288       hash ^= unpackedSint32_.GetHashCode();
3289       hash ^= unpackedSint64_.GetHashCode();
3290       hash ^= unpackedFixed32_.GetHashCode();
3291       hash ^= unpackedFixed64_.GetHashCode();
3292       hash ^= unpackedSfixed32_.GetHashCode();
3293       hash ^= unpackedSfixed64_.GetHashCode();
3294       hash ^= unpackedFloat_.GetHashCode();
3295       hash ^= unpackedDouble_.GetHashCode();
3296       hash ^= unpackedBool_.GetHashCode();
3297       hash ^= unpackedNestedEnum_.GetHashCode();
3298       hash ^= MapInt32Int32.GetHashCode();
3299       hash ^= MapInt64Int64.GetHashCode();
3300       hash ^= MapUint32Uint32.GetHashCode();
3301       hash ^= MapUint64Uint64.GetHashCode();
3302       hash ^= MapSint32Sint32.GetHashCode();
3303       hash ^= MapSint64Sint64.GetHashCode();
3304       hash ^= MapFixed32Fixed32.GetHashCode();
3305       hash ^= MapFixed64Fixed64.GetHashCode();
3306       hash ^= MapSfixed32Sfixed32.GetHashCode();
3307       hash ^= MapSfixed64Sfixed64.GetHashCode();
3308       hash ^= MapInt32Float.GetHashCode();
3309       hash ^= MapInt32Double.GetHashCode();
3310       hash ^= MapBoolBool.GetHashCode();
3311       hash ^= MapStringString.GetHashCode();
3312       hash ^= MapStringBytes.GetHashCode();
3313       hash ^= MapStringNestedMessage.GetHashCode();
3314       hash ^= MapStringForeignMessage.GetHashCode();
3315       hash ^= MapStringNestedEnum.GetHashCode();
3316       hash ^= MapStringForeignEnum.GetHashCode();
3317       if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
3318       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
3319       if (HasOneofString) hash ^= OneofString.GetHashCode();
3320       if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
3321       if (HasOneofBool) hash ^= OneofBool.GetHashCode();
3322       if (HasOneofUint64) hash ^= OneofUint64.GetHashCode();
3323       if (HasOneofFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneofFloat);
3324       if (HasOneofDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OneofDouble);
3325       if (HasOneofEnum) hash ^= OneofEnum.GetHashCode();
3326       if (HasData) hash ^= Data.GetHashCode();
3327       if (HasMultiWordGroupField) hash ^= MultiWordGroupField.GetHashCode();
3328       if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode();
3329       if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode();
3330       if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode();
3331       if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode();
3332       if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode();
3333       if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode();
3334       if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode();
3335       if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode();
3336       if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode();
3337       if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode();
3338       if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat);
3339       if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble);
3340       if (HasDefaultBool) hash ^= DefaultBool.GetHashCode();
3341       if (HasDefaultString) hash ^= DefaultString.GetHashCode();
3342       if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode();
3343       if (HasFieldname1) hash ^= Fieldname1.GetHashCode();
3344       if (HasFieldName2) hash ^= FieldName2.GetHashCode();
3345       if (HasFieldName3) hash ^= FieldName3.GetHashCode();
3346       if (HasFieldName4) hash ^= FieldName4.GetHashCode();
3347       if (HasField0Name5) hash ^= Field0Name5.GetHashCode();
3348       if (HasField0Name6) hash ^= Field0Name6.GetHashCode();
3349       if (HasFieldName7) hash ^= FieldName7.GetHashCode();
3350       if (HasFieldName8) hash ^= FieldName8.GetHashCode();
3351       if (HasFieldName9) hash ^= FieldName9.GetHashCode();
3352       if (HasFieldName10) hash ^= FieldName10.GetHashCode();
3353       if (HasFIELDNAME11) hash ^= FIELDNAME11.GetHashCode();
3354       if (HasFIELDName12) hash ^= FIELDName12.GetHashCode();
3355       if (HasFieldName13) hash ^= FieldName13.GetHashCode();
3356       if (HasFieldName14) hash ^= FieldName14.GetHashCode();
3357       if (HasFieldName15) hash ^= FieldName15.GetHashCode();
3358       if (HasFieldName16) hash ^= FieldName16.GetHashCode();
3359       if (HasFieldName17) hash ^= FieldName17.GetHashCode();
3360       if (HasFieldName18) hash ^= FieldName18.GetHashCode();
3361       hash ^= (int) oneofFieldCase_;
3362       if (_extensions != null) {
3363         hash ^= _extensions.GetHashCode();
3364       }
3365       if (_unknownFields != null) {
3366         hash ^= _unknownFields.GetHashCode();
3367       }
3368       return hash;
3369     }
3370 
3371     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3372     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()3373     public override string ToString() {
3374       return pb::JsonFormatter.ToDiagnosticString(this);
3375     }
3376 
3377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3378     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)3379     public void WriteTo(pb::CodedOutputStream output) {
3380     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3381       output.WriteRawMessage(this);
3382     #else
3383       if (HasOptionalInt32) {
3384         output.WriteRawTag(8);
3385         output.WriteInt32(OptionalInt32);
3386       }
3387       if (HasOptionalInt64) {
3388         output.WriteRawTag(16);
3389         output.WriteInt64(OptionalInt64);
3390       }
3391       if (HasOptionalUint32) {
3392         output.WriteRawTag(24);
3393         output.WriteUInt32(OptionalUint32);
3394       }
3395       if (HasOptionalUint64) {
3396         output.WriteRawTag(32);
3397         output.WriteUInt64(OptionalUint64);
3398       }
3399       if (HasOptionalSint32) {
3400         output.WriteRawTag(40);
3401         output.WriteSInt32(OptionalSint32);
3402       }
3403       if (HasOptionalSint64) {
3404         output.WriteRawTag(48);
3405         output.WriteSInt64(OptionalSint64);
3406       }
3407       if (HasOptionalFixed32) {
3408         output.WriteRawTag(61);
3409         output.WriteFixed32(OptionalFixed32);
3410       }
3411       if (HasOptionalFixed64) {
3412         output.WriteRawTag(65);
3413         output.WriteFixed64(OptionalFixed64);
3414       }
3415       if (HasOptionalSfixed32) {
3416         output.WriteRawTag(77);
3417         output.WriteSFixed32(OptionalSfixed32);
3418       }
3419       if (HasOptionalSfixed64) {
3420         output.WriteRawTag(81);
3421         output.WriteSFixed64(OptionalSfixed64);
3422       }
3423       if (HasOptionalFloat) {
3424         output.WriteRawTag(93);
3425         output.WriteFloat(OptionalFloat);
3426       }
3427       if (HasOptionalDouble) {
3428         output.WriteRawTag(97);
3429         output.WriteDouble(OptionalDouble);
3430       }
3431       if (HasOptionalBool) {
3432         output.WriteRawTag(104);
3433         output.WriteBool(OptionalBool);
3434       }
3435       if (HasOptionalString) {
3436         output.WriteRawTag(114);
3437         output.WriteString(OptionalString);
3438       }
3439       if (HasOptionalBytes) {
3440         output.WriteRawTag(122);
3441         output.WriteBytes(OptionalBytes);
3442       }
3443       if (optionalNestedMessage_ != null) {
3444         output.WriteRawTag(146, 1);
3445         output.WriteMessage(OptionalNestedMessage);
3446       }
3447       if (optionalForeignMessage_ != null) {
3448         output.WriteRawTag(154, 1);
3449         output.WriteMessage(OptionalForeignMessage);
3450       }
3451       if (HasOptionalNestedEnum) {
3452         output.WriteRawTag(168, 1);
3453         output.WriteEnum((int) OptionalNestedEnum);
3454       }
3455       if (HasOptionalForeignEnum) {
3456         output.WriteRawTag(176, 1);
3457         output.WriteEnum((int) OptionalForeignEnum);
3458       }
3459       if (HasOptionalStringPiece) {
3460         output.WriteRawTag(194, 1);
3461         output.WriteString(OptionalStringPiece);
3462       }
3463       if (HasOptionalCord) {
3464         output.WriteRawTag(202, 1);
3465         output.WriteString(OptionalCord);
3466       }
3467       if (recursiveMessage_ != null) {
3468         output.WriteRawTag(218, 1);
3469         output.WriteMessage(RecursiveMessage);
3470       }
3471       repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
3472       repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
3473       repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
3474       repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
3475       repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
3476       repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
3477       repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
3478       repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
3479       repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
3480       repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
3481       repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
3482       repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
3483       repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
3484       repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
3485       repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
3486       repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
3487       repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
3488       repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
3489       repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
3490       repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
3491       repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
3492       mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
3493       mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
3494       mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
3495       mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
3496       mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
3497       mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
3498       mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
3499       mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
3500       mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
3501       mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
3502       mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
3503       mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
3504       mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
3505       mapStringString_.WriteTo(output, _map_mapStringString_codec);
3506       mapStringBytes_.WriteTo(output, _map_mapStringBytes_codec);
3507       mapStringNestedMessage_.WriteTo(output, _map_mapStringNestedMessage_codec);
3508       mapStringForeignMessage_.WriteTo(output, _map_mapStringForeignMessage_codec);
3509       mapStringNestedEnum_.WriteTo(output, _map_mapStringNestedEnum_codec);
3510       mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec);
3511       packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
3512       packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
3513       packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
3514       packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
3515       packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
3516       packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
3517       packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
3518       packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
3519       packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
3520       packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
3521       packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
3522       packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
3523       packedBool_.WriteTo(output, _repeated_packedBool_codec);
3524       packedNestedEnum_.WriteTo(output, _repeated_packedNestedEnum_codec);
3525       unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
3526       unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
3527       unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
3528       unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
3529       unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
3530       unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
3531       unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
3532       unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
3533       unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
3534       unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
3535       unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
3536       unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
3537       unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
3538       unpackedNestedEnum_.WriteTo(output, _repeated_unpackedNestedEnum_codec);
3539       if (HasOneofUint32) {
3540         output.WriteRawTag(248, 6);
3541         output.WriteUInt32(OneofUint32);
3542       }
3543       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3544         output.WriteRawTag(130, 7);
3545         output.WriteMessage(OneofNestedMessage);
3546       }
3547       if (HasOneofString) {
3548         output.WriteRawTag(138, 7);
3549         output.WriteString(OneofString);
3550       }
3551       if (HasOneofBytes) {
3552         output.WriteRawTag(146, 7);
3553         output.WriteBytes(OneofBytes);
3554       }
3555       if (HasOneofBool) {
3556         output.WriteRawTag(152, 7);
3557         output.WriteBool(OneofBool);
3558       }
3559       if (HasOneofUint64) {
3560         output.WriteRawTag(160, 7);
3561         output.WriteUInt64(OneofUint64);
3562       }
3563       if (HasOneofFloat) {
3564         output.WriteRawTag(173, 7);
3565         output.WriteFloat(OneofFloat);
3566       }
3567       if (HasOneofDouble) {
3568         output.WriteRawTag(177, 7);
3569         output.WriteDouble(OneofDouble);
3570       }
3571       if (HasOneofEnum) {
3572         output.WriteRawTag(184, 7);
3573         output.WriteEnum((int) OneofEnum);
3574       }
3575       if (HasData) {
3576         output.WriteRawTag(203, 12);
3577         output.WriteGroup(Data);
3578         output.WriteRawTag(204, 12);
3579       }
3580       if (HasMultiWordGroupField) {
3581         output.WriteRawTag(227, 12);
3582         output.WriteGroup(MultiWordGroupField);
3583         output.WriteRawTag(228, 12);
3584       }
3585       if (HasDefaultInt32) {
3586         output.WriteRawTag(136, 15);
3587         output.WriteInt32(DefaultInt32);
3588       }
3589       if (HasDefaultInt64) {
3590         output.WriteRawTag(144, 15);
3591         output.WriteInt64(DefaultInt64);
3592       }
3593       if (HasDefaultUint32) {
3594         output.WriteRawTag(152, 15);
3595         output.WriteUInt32(DefaultUint32);
3596       }
3597       if (HasDefaultUint64) {
3598         output.WriteRawTag(160, 15);
3599         output.WriteUInt64(DefaultUint64);
3600       }
3601       if (HasDefaultSint32) {
3602         output.WriteRawTag(168, 15);
3603         output.WriteSInt32(DefaultSint32);
3604       }
3605       if (HasDefaultSint64) {
3606         output.WriteRawTag(176, 15);
3607         output.WriteSInt64(DefaultSint64);
3608       }
3609       if (HasDefaultFixed32) {
3610         output.WriteRawTag(189, 15);
3611         output.WriteFixed32(DefaultFixed32);
3612       }
3613       if (HasDefaultFixed64) {
3614         output.WriteRawTag(193, 15);
3615         output.WriteFixed64(DefaultFixed64);
3616       }
3617       if (HasDefaultSfixed32) {
3618         output.WriteRawTag(205, 15);
3619         output.WriteSFixed32(DefaultSfixed32);
3620       }
3621       if (HasDefaultSfixed64) {
3622         output.WriteRawTag(209, 15);
3623         output.WriteSFixed64(DefaultSfixed64);
3624       }
3625       if (HasDefaultFloat) {
3626         output.WriteRawTag(221, 15);
3627         output.WriteFloat(DefaultFloat);
3628       }
3629       if (HasDefaultDouble) {
3630         output.WriteRawTag(225, 15);
3631         output.WriteDouble(DefaultDouble);
3632       }
3633       if (HasDefaultBool) {
3634         output.WriteRawTag(232, 15);
3635         output.WriteBool(DefaultBool);
3636       }
3637       if (HasDefaultString) {
3638         output.WriteRawTag(242, 15);
3639         output.WriteString(DefaultString);
3640       }
3641       if (HasDefaultBytes) {
3642         output.WriteRawTag(250, 15);
3643         output.WriteBytes(DefaultBytes);
3644       }
3645       if (HasFieldname1) {
3646         output.WriteRawTag(136, 25);
3647         output.WriteInt32(Fieldname1);
3648       }
3649       if (HasFieldName2) {
3650         output.WriteRawTag(144, 25);
3651         output.WriteInt32(FieldName2);
3652       }
3653       if (HasFieldName3) {
3654         output.WriteRawTag(152, 25);
3655         output.WriteInt32(FieldName3);
3656       }
3657       if (HasFieldName4) {
3658         output.WriteRawTag(160, 25);
3659         output.WriteInt32(FieldName4);
3660       }
3661       if (HasField0Name5) {
3662         output.WriteRawTag(168, 25);
3663         output.WriteInt32(Field0Name5);
3664       }
3665       if (HasField0Name6) {
3666         output.WriteRawTag(176, 25);
3667         output.WriteInt32(Field0Name6);
3668       }
3669       if (HasFieldName7) {
3670         output.WriteRawTag(184, 25);
3671         output.WriteInt32(FieldName7);
3672       }
3673       if (HasFieldName8) {
3674         output.WriteRawTag(192, 25);
3675         output.WriteInt32(FieldName8);
3676       }
3677       if (HasFieldName9) {
3678         output.WriteRawTag(200, 25);
3679         output.WriteInt32(FieldName9);
3680       }
3681       if (HasFieldName10) {
3682         output.WriteRawTag(208, 25);
3683         output.WriteInt32(FieldName10);
3684       }
3685       if (HasFIELDNAME11) {
3686         output.WriteRawTag(216, 25);
3687         output.WriteInt32(FIELDNAME11);
3688       }
3689       if (HasFIELDName12) {
3690         output.WriteRawTag(224, 25);
3691         output.WriteInt32(FIELDName12);
3692       }
3693       if (HasFieldName13) {
3694         output.WriteRawTag(232, 25);
3695         output.WriteInt32(FieldName13);
3696       }
3697       if (HasFieldName14) {
3698         output.WriteRawTag(240, 25);
3699         output.WriteInt32(FieldName14);
3700       }
3701       if (HasFieldName15) {
3702         output.WriteRawTag(248, 25);
3703         output.WriteInt32(FieldName15);
3704       }
3705       if (HasFieldName16) {
3706         output.WriteRawTag(128, 26);
3707         output.WriteInt32(FieldName16);
3708       }
3709       if (HasFieldName17) {
3710         output.WriteRawTag(136, 26);
3711         output.WriteInt32(FieldName17);
3712       }
3713       if (HasFieldName18) {
3714         output.WriteRawTag(144, 26);
3715         output.WriteInt32(FieldName18);
3716       }
3717       if (_extensions != null) {
3718         _extensions.WriteTo(output);
3719       }
3720       if (_unknownFields != null) {
3721         _unknownFields.WriteTo(output);
3722       }
3723     #endif
3724     }
3725 
3726     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3727     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3728     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3729     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3730       if (HasOptionalInt32) {
3731         output.WriteRawTag(8);
3732         output.WriteInt32(OptionalInt32);
3733       }
3734       if (HasOptionalInt64) {
3735         output.WriteRawTag(16);
3736         output.WriteInt64(OptionalInt64);
3737       }
3738       if (HasOptionalUint32) {
3739         output.WriteRawTag(24);
3740         output.WriteUInt32(OptionalUint32);
3741       }
3742       if (HasOptionalUint64) {
3743         output.WriteRawTag(32);
3744         output.WriteUInt64(OptionalUint64);
3745       }
3746       if (HasOptionalSint32) {
3747         output.WriteRawTag(40);
3748         output.WriteSInt32(OptionalSint32);
3749       }
3750       if (HasOptionalSint64) {
3751         output.WriteRawTag(48);
3752         output.WriteSInt64(OptionalSint64);
3753       }
3754       if (HasOptionalFixed32) {
3755         output.WriteRawTag(61);
3756         output.WriteFixed32(OptionalFixed32);
3757       }
3758       if (HasOptionalFixed64) {
3759         output.WriteRawTag(65);
3760         output.WriteFixed64(OptionalFixed64);
3761       }
3762       if (HasOptionalSfixed32) {
3763         output.WriteRawTag(77);
3764         output.WriteSFixed32(OptionalSfixed32);
3765       }
3766       if (HasOptionalSfixed64) {
3767         output.WriteRawTag(81);
3768         output.WriteSFixed64(OptionalSfixed64);
3769       }
3770       if (HasOptionalFloat) {
3771         output.WriteRawTag(93);
3772         output.WriteFloat(OptionalFloat);
3773       }
3774       if (HasOptionalDouble) {
3775         output.WriteRawTag(97);
3776         output.WriteDouble(OptionalDouble);
3777       }
3778       if (HasOptionalBool) {
3779         output.WriteRawTag(104);
3780         output.WriteBool(OptionalBool);
3781       }
3782       if (HasOptionalString) {
3783         output.WriteRawTag(114);
3784         output.WriteString(OptionalString);
3785       }
3786       if (HasOptionalBytes) {
3787         output.WriteRawTag(122);
3788         output.WriteBytes(OptionalBytes);
3789       }
3790       if (optionalNestedMessage_ != null) {
3791         output.WriteRawTag(146, 1);
3792         output.WriteMessage(OptionalNestedMessage);
3793       }
3794       if (optionalForeignMessage_ != null) {
3795         output.WriteRawTag(154, 1);
3796         output.WriteMessage(OptionalForeignMessage);
3797       }
3798       if (HasOptionalNestedEnum) {
3799         output.WriteRawTag(168, 1);
3800         output.WriteEnum((int) OptionalNestedEnum);
3801       }
3802       if (HasOptionalForeignEnum) {
3803         output.WriteRawTag(176, 1);
3804         output.WriteEnum((int) OptionalForeignEnum);
3805       }
3806       if (HasOptionalStringPiece) {
3807         output.WriteRawTag(194, 1);
3808         output.WriteString(OptionalStringPiece);
3809       }
3810       if (HasOptionalCord) {
3811         output.WriteRawTag(202, 1);
3812         output.WriteString(OptionalCord);
3813       }
3814       if (recursiveMessage_ != null) {
3815         output.WriteRawTag(218, 1);
3816         output.WriteMessage(RecursiveMessage);
3817       }
3818       repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
3819       repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
3820       repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec);
3821       repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
3822       repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec);
3823       repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec);
3824       repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
3825       repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
3826       repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec);
3827       repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec);
3828       repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
3829       repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec);
3830       repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec);
3831       repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec);
3832       repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec);
3833       repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec);
3834       repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec);
3835       repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec);
3836       repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec);
3837       repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec);
3838       repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec);
3839       mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
3840       mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
3841       mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
3842       mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
3843       mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
3844       mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
3845       mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
3846       mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
3847       mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
3848       mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
3849       mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
3850       mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
3851       mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
3852       mapStringString_.WriteTo(ref output, _map_mapStringString_codec);
3853       mapStringBytes_.WriteTo(ref output, _map_mapStringBytes_codec);
3854       mapStringNestedMessage_.WriteTo(ref output, _map_mapStringNestedMessage_codec);
3855       mapStringForeignMessage_.WriteTo(ref output, _map_mapStringForeignMessage_codec);
3856       mapStringNestedEnum_.WriteTo(ref output, _map_mapStringNestedEnum_codec);
3857       mapStringForeignEnum_.WriteTo(ref output, _map_mapStringForeignEnum_codec);
3858       packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
3859       packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec);
3860       packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec);
3861       packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec);
3862       packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec);
3863       packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec);
3864       packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec);
3865       packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec);
3866       packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec);
3867       packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec);
3868       packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec);
3869       packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec);
3870       packedBool_.WriteTo(ref output, _repeated_packedBool_codec);
3871       packedNestedEnum_.WriteTo(ref output, _repeated_packedNestedEnum_codec);
3872       unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec);
3873       unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec);
3874       unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec);
3875       unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec);
3876       unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec);
3877       unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec);
3878       unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec);
3879       unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec);
3880       unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec);
3881       unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec);
3882       unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec);
3883       unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec);
3884       unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec);
3885       unpackedNestedEnum_.WriteTo(ref output, _repeated_unpackedNestedEnum_codec);
3886       if (HasOneofUint32) {
3887         output.WriteRawTag(248, 6);
3888         output.WriteUInt32(OneofUint32);
3889       }
3890       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3891         output.WriteRawTag(130, 7);
3892         output.WriteMessage(OneofNestedMessage);
3893       }
3894       if (HasOneofString) {
3895         output.WriteRawTag(138, 7);
3896         output.WriteString(OneofString);
3897       }
3898       if (HasOneofBytes) {
3899         output.WriteRawTag(146, 7);
3900         output.WriteBytes(OneofBytes);
3901       }
3902       if (HasOneofBool) {
3903         output.WriteRawTag(152, 7);
3904         output.WriteBool(OneofBool);
3905       }
3906       if (HasOneofUint64) {
3907         output.WriteRawTag(160, 7);
3908         output.WriteUInt64(OneofUint64);
3909       }
3910       if (HasOneofFloat) {
3911         output.WriteRawTag(173, 7);
3912         output.WriteFloat(OneofFloat);
3913       }
3914       if (HasOneofDouble) {
3915         output.WriteRawTag(177, 7);
3916         output.WriteDouble(OneofDouble);
3917       }
3918       if (HasOneofEnum) {
3919         output.WriteRawTag(184, 7);
3920         output.WriteEnum((int) OneofEnum);
3921       }
3922       if (HasData) {
3923         output.WriteRawTag(203, 12);
3924         output.WriteGroup(Data);
3925         output.WriteRawTag(204, 12);
3926       }
3927       if (HasMultiWordGroupField) {
3928         output.WriteRawTag(227, 12);
3929         output.WriteGroup(MultiWordGroupField);
3930         output.WriteRawTag(228, 12);
3931       }
3932       if (HasDefaultInt32) {
3933         output.WriteRawTag(136, 15);
3934         output.WriteInt32(DefaultInt32);
3935       }
3936       if (HasDefaultInt64) {
3937         output.WriteRawTag(144, 15);
3938         output.WriteInt64(DefaultInt64);
3939       }
3940       if (HasDefaultUint32) {
3941         output.WriteRawTag(152, 15);
3942         output.WriteUInt32(DefaultUint32);
3943       }
3944       if (HasDefaultUint64) {
3945         output.WriteRawTag(160, 15);
3946         output.WriteUInt64(DefaultUint64);
3947       }
3948       if (HasDefaultSint32) {
3949         output.WriteRawTag(168, 15);
3950         output.WriteSInt32(DefaultSint32);
3951       }
3952       if (HasDefaultSint64) {
3953         output.WriteRawTag(176, 15);
3954         output.WriteSInt64(DefaultSint64);
3955       }
3956       if (HasDefaultFixed32) {
3957         output.WriteRawTag(189, 15);
3958         output.WriteFixed32(DefaultFixed32);
3959       }
3960       if (HasDefaultFixed64) {
3961         output.WriteRawTag(193, 15);
3962         output.WriteFixed64(DefaultFixed64);
3963       }
3964       if (HasDefaultSfixed32) {
3965         output.WriteRawTag(205, 15);
3966         output.WriteSFixed32(DefaultSfixed32);
3967       }
3968       if (HasDefaultSfixed64) {
3969         output.WriteRawTag(209, 15);
3970         output.WriteSFixed64(DefaultSfixed64);
3971       }
3972       if (HasDefaultFloat) {
3973         output.WriteRawTag(221, 15);
3974         output.WriteFloat(DefaultFloat);
3975       }
3976       if (HasDefaultDouble) {
3977         output.WriteRawTag(225, 15);
3978         output.WriteDouble(DefaultDouble);
3979       }
3980       if (HasDefaultBool) {
3981         output.WriteRawTag(232, 15);
3982         output.WriteBool(DefaultBool);
3983       }
3984       if (HasDefaultString) {
3985         output.WriteRawTag(242, 15);
3986         output.WriteString(DefaultString);
3987       }
3988       if (HasDefaultBytes) {
3989         output.WriteRawTag(250, 15);
3990         output.WriteBytes(DefaultBytes);
3991       }
3992       if (HasFieldname1) {
3993         output.WriteRawTag(136, 25);
3994         output.WriteInt32(Fieldname1);
3995       }
3996       if (HasFieldName2) {
3997         output.WriteRawTag(144, 25);
3998         output.WriteInt32(FieldName2);
3999       }
4000       if (HasFieldName3) {
4001         output.WriteRawTag(152, 25);
4002         output.WriteInt32(FieldName3);
4003       }
4004       if (HasFieldName4) {
4005         output.WriteRawTag(160, 25);
4006         output.WriteInt32(FieldName4);
4007       }
4008       if (HasField0Name5) {
4009         output.WriteRawTag(168, 25);
4010         output.WriteInt32(Field0Name5);
4011       }
4012       if (HasField0Name6) {
4013         output.WriteRawTag(176, 25);
4014         output.WriteInt32(Field0Name6);
4015       }
4016       if (HasFieldName7) {
4017         output.WriteRawTag(184, 25);
4018         output.WriteInt32(FieldName7);
4019       }
4020       if (HasFieldName8) {
4021         output.WriteRawTag(192, 25);
4022         output.WriteInt32(FieldName8);
4023       }
4024       if (HasFieldName9) {
4025         output.WriteRawTag(200, 25);
4026         output.WriteInt32(FieldName9);
4027       }
4028       if (HasFieldName10) {
4029         output.WriteRawTag(208, 25);
4030         output.WriteInt32(FieldName10);
4031       }
4032       if (HasFIELDNAME11) {
4033         output.WriteRawTag(216, 25);
4034         output.WriteInt32(FIELDNAME11);
4035       }
4036       if (HasFIELDName12) {
4037         output.WriteRawTag(224, 25);
4038         output.WriteInt32(FIELDName12);
4039       }
4040       if (HasFieldName13) {
4041         output.WriteRawTag(232, 25);
4042         output.WriteInt32(FieldName13);
4043       }
4044       if (HasFieldName14) {
4045         output.WriteRawTag(240, 25);
4046         output.WriteInt32(FieldName14);
4047       }
4048       if (HasFieldName15) {
4049         output.WriteRawTag(248, 25);
4050         output.WriteInt32(FieldName15);
4051       }
4052       if (HasFieldName16) {
4053         output.WriteRawTag(128, 26);
4054         output.WriteInt32(FieldName16);
4055       }
4056       if (HasFieldName17) {
4057         output.WriteRawTag(136, 26);
4058         output.WriteInt32(FieldName17);
4059       }
4060       if (HasFieldName18) {
4061         output.WriteRawTag(144, 26);
4062         output.WriteInt32(FieldName18);
4063       }
4064       if (_extensions != null) {
4065         _extensions.WriteTo(ref output);
4066       }
4067       if (_unknownFields != null) {
4068         _unknownFields.WriteTo(ref output);
4069       }
4070     }
4071     #endif
4072 
4073     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4074     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()4075     public int CalculateSize() {
4076       int size = 0;
4077       if (HasOptionalInt32) {
4078         size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
4079       }
4080       if (HasOptionalInt64) {
4081         size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
4082       }
4083       if (HasOptionalUint32) {
4084         size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
4085       }
4086       if (HasOptionalUint64) {
4087         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
4088       }
4089       if (HasOptionalSint32) {
4090         size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
4091       }
4092       if (HasOptionalSint64) {
4093         size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
4094       }
4095       if (HasOptionalFixed32) {
4096         size += 1 + 4;
4097       }
4098       if (HasOptionalFixed64) {
4099         size += 1 + 8;
4100       }
4101       if (HasOptionalSfixed32) {
4102         size += 1 + 4;
4103       }
4104       if (HasOptionalSfixed64) {
4105         size += 1 + 8;
4106       }
4107       if (HasOptionalFloat) {
4108         size += 1 + 4;
4109       }
4110       if (HasOptionalDouble) {
4111         size += 1 + 8;
4112       }
4113       if (HasOptionalBool) {
4114         size += 1 + 1;
4115       }
4116       if (HasOptionalString) {
4117         size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
4118       }
4119       if (HasOptionalBytes) {
4120         size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
4121       }
4122       if (optionalNestedMessage_ != null) {
4123         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
4124       }
4125       if (optionalForeignMessage_ != null) {
4126         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
4127       }
4128       if (HasOptionalNestedEnum) {
4129         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
4130       }
4131       if (HasOptionalForeignEnum) {
4132         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
4133       }
4134       if (HasOptionalStringPiece) {
4135         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
4136       }
4137       if (HasOptionalCord) {
4138         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
4139       }
4140       if (recursiveMessage_ != null) {
4141         size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage);
4142       }
4143       size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
4144       size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
4145       size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
4146       size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
4147       size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
4148       size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
4149       size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
4150       size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
4151       size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
4152       size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
4153       size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
4154       size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
4155       size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
4156       size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
4157       size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
4158       size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
4159       size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
4160       size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
4161       size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
4162       size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
4163       size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
4164       size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
4165       size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
4166       size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
4167       size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
4168       size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
4169       size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
4170       size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
4171       size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
4172       size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
4173       size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
4174       size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
4175       size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
4176       size += packedBool_.CalculateSize(_repeated_packedBool_codec);
4177       size += packedNestedEnum_.CalculateSize(_repeated_packedNestedEnum_codec);
4178       size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
4179       size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
4180       size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
4181       size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
4182       size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
4183       size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
4184       size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
4185       size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
4186       size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
4187       size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
4188       size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
4189       size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
4190       size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
4191       size += unpackedNestedEnum_.CalculateSize(_repeated_unpackedNestedEnum_codec);
4192       size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
4193       size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
4194       size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
4195       size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
4196       size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
4197       size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
4198       size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
4199       size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
4200       size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
4201       size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
4202       size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
4203       size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
4204       size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
4205       size += mapStringString_.CalculateSize(_map_mapStringString_codec);
4206       size += mapStringBytes_.CalculateSize(_map_mapStringBytes_codec);
4207       size += mapStringNestedMessage_.CalculateSize(_map_mapStringNestedMessage_codec);
4208       size += mapStringForeignMessage_.CalculateSize(_map_mapStringForeignMessage_codec);
4209       size += mapStringNestedEnum_.CalculateSize(_map_mapStringNestedEnum_codec);
4210       size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec);
4211       if (HasOneofUint32) {
4212         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
4213       }
4214       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
4215         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
4216       }
4217       if (HasOneofString) {
4218         size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
4219       }
4220       if (HasOneofBytes) {
4221         size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
4222       }
4223       if (HasOneofBool) {
4224         size += 2 + 1;
4225       }
4226       if (HasOneofUint64) {
4227         size += 2 + pb::CodedOutputStream.ComputeUInt64Size(OneofUint64);
4228       }
4229       if (HasOneofFloat) {
4230         size += 2 + 4;
4231       }
4232       if (HasOneofDouble) {
4233         size += 2 + 8;
4234       }
4235       if (HasOneofEnum) {
4236         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OneofEnum);
4237       }
4238       if (HasData) {
4239         size += 4 + pb::CodedOutputStream.ComputeGroupSize(Data);
4240       }
4241       if (HasMultiWordGroupField) {
4242         size += 4 + pb::CodedOutputStream.ComputeGroupSize(MultiWordGroupField);
4243       }
4244       if (HasDefaultInt32) {
4245         size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32);
4246       }
4247       if (HasDefaultInt64) {
4248         size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64);
4249       }
4250       if (HasDefaultUint32) {
4251         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32);
4252       }
4253       if (HasDefaultUint64) {
4254         size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64);
4255       }
4256       if (HasDefaultSint32) {
4257         size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32);
4258       }
4259       if (HasDefaultSint64) {
4260         size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64);
4261       }
4262       if (HasDefaultFixed32) {
4263         size += 2 + 4;
4264       }
4265       if (HasDefaultFixed64) {
4266         size += 2 + 8;
4267       }
4268       if (HasDefaultSfixed32) {
4269         size += 2 + 4;
4270       }
4271       if (HasDefaultSfixed64) {
4272         size += 2 + 8;
4273       }
4274       if (HasDefaultFloat) {
4275         size += 2 + 4;
4276       }
4277       if (HasDefaultDouble) {
4278         size += 2 + 8;
4279       }
4280       if (HasDefaultBool) {
4281         size += 2 + 1;
4282       }
4283       if (HasDefaultString) {
4284         size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString);
4285       }
4286       if (HasDefaultBytes) {
4287         size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes);
4288       }
4289       if (HasFieldname1) {
4290         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Fieldname1);
4291       }
4292       if (HasFieldName2) {
4293         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
4294       }
4295       if (HasFieldName3) {
4296         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
4297       }
4298       if (HasFieldName4) {
4299         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
4300       }
4301       if (HasField0Name5) {
4302         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name5);
4303       }
4304       if (HasField0Name6) {
4305         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name6);
4306       }
4307       if (HasFieldName7) {
4308         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName7);
4309       }
4310       if (HasFieldName8) {
4311         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName8);
4312       }
4313       if (HasFieldName9) {
4314         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName9);
4315       }
4316       if (HasFieldName10) {
4317         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName10);
4318       }
4319       if (HasFIELDNAME11) {
4320         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME11);
4321       }
4322       if (HasFIELDName12) {
4323         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDName12);
4324       }
4325       if (HasFieldName13) {
4326         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName13);
4327       }
4328       if (HasFieldName14) {
4329         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName14);
4330       }
4331       if (HasFieldName15) {
4332         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName15);
4333       }
4334       if (HasFieldName16) {
4335         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName16);
4336       }
4337       if (HasFieldName17) {
4338         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName17);
4339       }
4340       if (HasFieldName18) {
4341         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName18);
4342       }
4343       if (_extensions != null) {
4344         size += _extensions.CalculateSize();
4345       }
4346       if (_unknownFields != null) {
4347         size += _unknownFields.CalculateSize();
4348       }
4349       return size;
4350     }
4351 
4352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestAllTypesProto2 other)4354     public void MergeFrom(TestAllTypesProto2 other) {
4355       if (other == null) {
4356         return;
4357       }
4358       if (other.HasOptionalInt32) {
4359         OptionalInt32 = other.OptionalInt32;
4360       }
4361       if (other.HasOptionalInt64) {
4362         OptionalInt64 = other.OptionalInt64;
4363       }
4364       if (other.HasOptionalUint32) {
4365         OptionalUint32 = other.OptionalUint32;
4366       }
4367       if (other.HasOptionalUint64) {
4368         OptionalUint64 = other.OptionalUint64;
4369       }
4370       if (other.HasOptionalSint32) {
4371         OptionalSint32 = other.OptionalSint32;
4372       }
4373       if (other.HasOptionalSint64) {
4374         OptionalSint64 = other.OptionalSint64;
4375       }
4376       if (other.HasOptionalFixed32) {
4377         OptionalFixed32 = other.OptionalFixed32;
4378       }
4379       if (other.HasOptionalFixed64) {
4380         OptionalFixed64 = other.OptionalFixed64;
4381       }
4382       if (other.HasOptionalSfixed32) {
4383         OptionalSfixed32 = other.OptionalSfixed32;
4384       }
4385       if (other.HasOptionalSfixed64) {
4386         OptionalSfixed64 = other.OptionalSfixed64;
4387       }
4388       if (other.HasOptionalFloat) {
4389         OptionalFloat = other.OptionalFloat;
4390       }
4391       if (other.HasOptionalDouble) {
4392         OptionalDouble = other.OptionalDouble;
4393       }
4394       if (other.HasOptionalBool) {
4395         OptionalBool = other.OptionalBool;
4396       }
4397       if (other.HasOptionalString) {
4398         OptionalString = other.OptionalString;
4399       }
4400       if (other.HasOptionalBytes) {
4401         OptionalBytes = other.OptionalBytes;
4402       }
4403       if (other.optionalNestedMessage_ != null) {
4404         if (optionalNestedMessage_ == null) {
4405           OptionalNestedMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage();
4406         }
4407         OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
4408       }
4409       if (other.optionalForeignMessage_ != null) {
4410         if (optionalForeignMessage_ == null) {
4411           OptionalForeignMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
4412         }
4413         OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
4414       }
4415       if (other.HasOptionalNestedEnum) {
4416         OptionalNestedEnum = other.OptionalNestedEnum;
4417       }
4418       if (other.HasOptionalForeignEnum) {
4419         OptionalForeignEnum = other.OptionalForeignEnum;
4420       }
4421       if (other.HasOptionalStringPiece) {
4422         OptionalStringPiece = other.OptionalStringPiece;
4423       }
4424       if (other.HasOptionalCord) {
4425         OptionalCord = other.OptionalCord;
4426       }
4427       if (other.recursiveMessage_ != null) {
4428         if (recursiveMessage_ == null) {
4429           RecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2();
4430         }
4431         RecursiveMessage.MergeFrom(other.RecursiveMessage);
4432       }
4433       repeatedInt32_.Add(other.repeatedInt32_);
4434       repeatedInt64_.Add(other.repeatedInt64_);
4435       repeatedUint32_.Add(other.repeatedUint32_);
4436       repeatedUint64_.Add(other.repeatedUint64_);
4437       repeatedSint32_.Add(other.repeatedSint32_);
4438       repeatedSint64_.Add(other.repeatedSint64_);
4439       repeatedFixed32_.Add(other.repeatedFixed32_);
4440       repeatedFixed64_.Add(other.repeatedFixed64_);
4441       repeatedSfixed32_.Add(other.repeatedSfixed32_);
4442       repeatedSfixed64_.Add(other.repeatedSfixed64_);
4443       repeatedFloat_.Add(other.repeatedFloat_);
4444       repeatedDouble_.Add(other.repeatedDouble_);
4445       repeatedBool_.Add(other.repeatedBool_);
4446       repeatedString_.Add(other.repeatedString_);
4447       repeatedBytes_.Add(other.repeatedBytes_);
4448       repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
4449       repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
4450       repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
4451       repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
4452       repeatedStringPiece_.Add(other.repeatedStringPiece_);
4453       repeatedCord_.Add(other.repeatedCord_);
4454       packedInt32_.Add(other.packedInt32_);
4455       packedInt64_.Add(other.packedInt64_);
4456       packedUint32_.Add(other.packedUint32_);
4457       packedUint64_.Add(other.packedUint64_);
4458       packedSint32_.Add(other.packedSint32_);
4459       packedSint64_.Add(other.packedSint64_);
4460       packedFixed32_.Add(other.packedFixed32_);
4461       packedFixed64_.Add(other.packedFixed64_);
4462       packedSfixed32_.Add(other.packedSfixed32_);
4463       packedSfixed64_.Add(other.packedSfixed64_);
4464       packedFloat_.Add(other.packedFloat_);
4465       packedDouble_.Add(other.packedDouble_);
4466       packedBool_.Add(other.packedBool_);
4467       packedNestedEnum_.Add(other.packedNestedEnum_);
4468       unpackedInt32_.Add(other.unpackedInt32_);
4469       unpackedInt64_.Add(other.unpackedInt64_);
4470       unpackedUint32_.Add(other.unpackedUint32_);
4471       unpackedUint64_.Add(other.unpackedUint64_);
4472       unpackedSint32_.Add(other.unpackedSint32_);
4473       unpackedSint64_.Add(other.unpackedSint64_);
4474       unpackedFixed32_.Add(other.unpackedFixed32_);
4475       unpackedFixed64_.Add(other.unpackedFixed64_);
4476       unpackedSfixed32_.Add(other.unpackedSfixed32_);
4477       unpackedSfixed64_.Add(other.unpackedSfixed64_);
4478       unpackedFloat_.Add(other.unpackedFloat_);
4479       unpackedDouble_.Add(other.unpackedDouble_);
4480       unpackedBool_.Add(other.unpackedBool_);
4481       unpackedNestedEnum_.Add(other.unpackedNestedEnum_);
4482       mapInt32Int32_.MergeFrom(other.mapInt32Int32_);
4483       mapInt64Int64_.MergeFrom(other.mapInt64Int64_);
4484       mapUint32Uint32_.MergeFrom(other.mapUint32Uint32_);
4485       mapUint64Uint64_.MergeFrom(other.mapUint64Uint64_);
4486       mapSint32Sint32_.MergeFrom(other.mapSint32Sint32_);
4487       mapSint64Sint64_.MergeFrom(other.mapSint64Sint64_);
4488       mapFixed32Fixed32_.MergeFrom(other.mapFixed32Fixed32_);
4489       mapFixed64Fixed64_.MergeFrom(other.mapFixed64Fixed64_);
4490       mapSfixed32Sfixed32_.MergeFrom(other.mapSfixed32Sfixed32_);
4491       mapSfixed64Sfixed64_.MergeFrom(other.mapSfixed64Sfixed64_);
4492       mapInt32Float_.MergeFrom(other.mapInt32Float_);
4493       mapInt32Double_.MergeFrom(other.mapInt32Double_);
4494       mapBoolBool_.MergeFrom(other.mapBoolBool_);
4495       mapStringString_.MergeFrom(other.mapStringString_);
4496       mapStringBytes_.MergeFrom(other.mapStringBytes_);
4497       mapStringNestedMessage_.MergeFrom(other.mapStringNestedMessage_);
4498       mapStringForeignMessage_.MergeFrom(other.mapStringForeignMessage_);
4499       mapStringNestedEnum_.MergeFrom(other.mapStringNestedEnum_);
4500       mapStringForeignEnum_.MergeFrom(other.mapStringForeignEnum_);
4501       if (other.HasData) {
4502         if (!HasData) {
4503           Data = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.Data();
4504         }
4505         Data.MergeFrom(other.Data);
4506       }
4507       if (other.HasMultiWordGroupField) {
4508         if (!HasMultiWordGroupField) {
4509           MultiWordGroupField = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MultiWordGroupField();
4510         }
4511         MultiWordGroupField.MergeFrom(other.MultiWordGroupField);
4512       }
4513       if (other.HasDefaultInt32) {
4514         DefaultInt32 = other.DefaultInt32;
4515       }
4516       if (other.HasDefaultInt64) {
4517         DefaultInt64 = other.DefaultInt64;
4518       }
4519       if (other.HasDefaultUint32) {
4520         DefaultUint32 = other.DefaultUint32;
4521       }
4522       if (other.HasDefaultUint64) {
4523         DefaultUint64 = other.DefaultUint64;
4524       }
4525       if (other.HasDefaultSint32) {
4526         DefaultSint32 = other.DefaultSint32;
4527       }
4528       if (other.HasDefaultSint64) {
4529         DefaultSint64 = other.DefaultSint64;
4530       }
4531       if (other.HasDefaultFixed32) {
4532         DefaultFixed32 = other.DefaultFixed32;
4533       }
4534       if (other.HasDefaultFixed64) {
4535         DefaultFixed64 = other.DefaultFixed64;
4536       }
4537       if (other.HasDefaultSfixed32) {
4538         DefaultSfixed32 = other.DefaultSfixed32;
4539       }
4540       if (other.HasDefaultSfixed64) {
4541         DefaultSfixed64 = other.DefaultSfixed64;
4542       }
4543       if (other.HasDefaultFloat) {
4544         DefaultFloat = other.DefaultFloat;
4545       }
4546       if (other.HasDefaultDouble) {
4547         DefaultDouble = other.DefaultDouble;
4548       }
4549       if (other.HasDefaultBool) {
4550         DefaultBool = other.DefaultBool;
4551       }
4552       if (other.HasDefaultString) {
4553         DefaultString = other.DefaultString;
4554       }
4555       if (other.HasDefaultBytes) {
4556         DefaultBytes = other.DefaultBytes;
4557       }
4558       if (other.HasFieldname1) {
4559         Fieldname1 = other.Fieldname1;
4560       }
4561       if (other.HasFieldName2) {
4562         FieldName2 = other.FieldName2;
4563       }
4564       if (other.HasFieldName3) {
4565         FieldName3 = other.FieldName3;
4566       }
4567       if (other.HasFieldName4) {
4568         FieldName4 = other.FieldName4;
4569       }
4570       if (other.HasField0Name5) {
4571         Field0Name5 = other.Field0Name5;
4572       }
4573       if (other.HasField0Name6) {
4574         Field0Name6 = other.Field0Name6;
4575       }
4576       if (other.HasFieldName7) {
4577         FieldName7 = other.FieldName7;
4578       }
4579       if (other.HasFieldName8) {
4580         FieldName8 = other.FieldName8;
4581       }
4582       if (other.HasFieldName9) {
4583         FieldName9 = other.FieldName9;
4584       }
4585       if (other.HasFieldName10) {
4586         FieldName10 = other.FieldName10;
4587       }
4588       if (other.HasFIELDNAME11) {
4589         FIELDNAME11 = other.FIELDNAME11;
4590       }
4591       if (other.HasFIELDName12) {
4592         FIELDName12 = other.FIELDName12;
4593       }
4594       if (other.HasFieldName13) {
4595         FieldName13 = other.FieldName13;
4596       }
4597       if (other.HasFieldName14) {
4598         FieldName14 = other.FieldName14;
4599       }
4600       if (other.HasFieldName15) {
4601         FieldName15 = other.FieldName15;
4602       }
4603       if (other.HasFieldName16) {
4604         FieldName16 = other.FieldName16;
4605       }
4606       if (other.HasFieldName17) {
4607         FieldName17 = other.FieldName17;
4608       }
4609       if (other.HasFieldName18) {
4610         FieldName18 = other.FieldName18;
4611       }
4612       switch (other.OneofFieldCase) {
4613         case OneofFieldOneofCase.OneofUint32:
4614           OneofUint32 = other.OneofUint32;
4615           break;
4616         case OneofFieldOneofCase.OneofNestedMessage:
4617           if (OneofNestedMessage == null) {
4618             OneofNestedMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage();
4619           }
4620           OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
4621           break;
4622         case OneofFieldOneofCase.OneofString:
4623           OneofString = other.OneofString;
4624           break;
4625         case OneofFieldOneofCase.OneofBytes:
4626           OneofBytes = other.OneofBytes;
4627           break;
4628         case OneofFieldOneofCase.OneofBool:
4629           OneofBool = other.OneofBool;
4630           break;
4631         case OneofFieldOneofCase.OneofUint64:
4632           OneofUint64 = other.OneofUint64;
4633           break;
4634         case OneofFieldOneofCase.OneofFloat:
4635           OneofFloat = other.OneofFloat;
4636           break;
4637         case OneofFieldOneofCase.OneofDouble:
4638           OneofDouble = other.OneofDouble;
4639           break;
4640         case OneofFieldOneofCase.OneofEnum:
4641           OneofEnum = other.OneofEnum;
4642           break;
4643       }
4644 
4645       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
4646       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4647     }
4648 
4649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)4651     public void MergeFrom(pb::CodedInputStream input) {
4652     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4653       input.ReadRawMessage(this);
4654     #else
4655       uint tag;
4656       while ((tag = input.ReadTag()) != 0) {
4657       if ((tag & 7) == 4) {
4658         // Abort on any end group tag.
4659         return;
4660       }
4661       switch(tag) {
4662           default:
4663             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
4664               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4665             }
4666             break;
4667           case 8: {
4668             OptionalInt32 = input.ReadInt32();
4669             break;
4670           }
4671           case 16: {
4672             OptionalInt64 = input.ReadInt64();
4673             break;
4674           }
4675           case 24: {
4676             OptionalUint32 = input.ReadUInt32();
4677             break;
4678           }
4679           case 32: {
4680             OptionalUint64 = input.ReadUInt64();
4681             break;
4682           }
4683           case 40: {
4684             OptionalSint32 = input.ReadSInt32();
4685             break;
4686           }
4687           case 48: {
4688             OptionalSint64 = input.ReadSInt64();
4689             break;
4690           }
4691           case 61: {
4692             OptionalFixed32 = input.ReadFixed32();
4693             break;
4694           }
4695           case 65: {
4696             OptionalFixed64 = input.ReadFixed64();
4697             break;
4698           }
4699           case 77: {
4700             OptionalSfixed32 = input.ReadSFixed32();
4701             break;
4702           }
4703           case 81: {
4704             OptionalSfixed64 = input.ReadSFixed64();
4705             break;
4706           }
4707           case 93: {
4708             OptionalFloat = input.ReadFloat();
4709             break;
4710           }
4711           case 97: {
4712             OptionalDouble = input.ReadDouble();
4713             break;
4714           }
4715           case 104: {
4716             OptionalBool = input.ReadBool();
4717             break;
4718           }
4719           case 114: {
4720             OptionalString = input.ReadString();
4721             break;
4722           }
4723           case 122: {
4724             OptionalBytes = input.ReadBytes();
4725             break;
4726           }
4727           case 146: {
4728             if (optionalNestedMessage_ == null) {
4729               OptionalNestedMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage();
4730             }
4731             input.ReadMessage(OptionalNestedMessage);
4732             break;
4733           }
4734           case 154: {
4735             if (optionalForeignMessage_ == null) {
4736               OptionalForeignMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
4737             }
4738             input.ReadMessage(OptionalForeignMessage);
4739             break;
4740           }
4741           case 168: {
4742             OptionalNestedEnum = (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum();
4743             break;
4744           }
4745           case 176: {
4746             OptionalForeignEnum = (global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2) input.ReadEnum();
4747             break;
4748           }
4749           case 194: {
4750             OptionalStringPiece = input.ReadString();
4751             break;
4752           }
4753           case 202: {
4754             OptionalCord = input.ReadString();
4755             break;
4756           }
4757           case 218: {
4758             if (recursiveMessage_ == null) {
4759               RecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2();
4760             }
4761             input.ReadMessage(RecursiveMessage);
4762             break;
4763           }
4764           case 250:
4765           case 248: {
4766             repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
4767             break;
4768           }
4769           case 258:
4770           case 256: {
4771             repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
4772             break;
4773           }
4774           case 266:
4775           case 264: {
4776             repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
4777             break;
4778           }
4779           case 274:
4780           case 272: {
4781             repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
4782             break;
4783           }
4784           case 282:
4785           case 280: {
4786             repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
4787             break;
4788           }
4789           case 290:
4790           case 288: {
4791             repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
4792             break;
4793           }
4794           case 298:
4795           case 301: {
4796             repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
4797             break;
4798           }
4799           case 306:
4800           case 305: {
4801             repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
4802             break;
4803           }
4804           case 314:
4805           case 317: {
4806             repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
4807             break;
4808           }
4809           case 322:
4810           case 321: {
4811             repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
4812             break;
4813           }
4814           case 330:
4815           case 333: {
4816             repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
4817             break;
4818           }
4819           case 338:
4820           case 337: {
4821             repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
4822             break;
4823           }
4824           case 346:
4825           case 344: {
4826             repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
4827             break;
4828           }
4829           case 354: {
4830             repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
4831             break;
4832           }
4833           case 362: {
4834             repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
4835             break;
4836           }
4837           case 386: {
4838             repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
4839             break;
4840           }
4841           case 394: {
4842             repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
4843             break;
4844           }
4845           case 410:
4846           case 408: {
4847             repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
4848             break;
4849           }
4850           case 418:
4851           case 416: {
4852             repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
4853             break;
4854           }
4855           case 434: {
4856             repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
4857             break;
4858           }
4859           case 442: {
4860             repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
4861             break;
4862           }
4863           case 450: {
4864             mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
4865             break;
4866           }
4867           case 458: {
4868             mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
4869             break;
4870           }
4871           case 466: {
4872             mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
4873             break;
4874           }
4875           case 474: {
4876             mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
4877             break;
4878           }
4879           case 482: {
4880             mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
4881             break;
4882           }
4883           case 490: {
4884             mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
4885             break;
4886           }
4887           case 498: {
4888             mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
4889             break;
4890           }
4891           case 506: {
4892             mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
4893             break;
4894           }
4895           case 514: {
4896             mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
4897             break;
4898           }
4899           case 522: {
4900             mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
4901             break;
4902           }
4903           case 530: {
4904             mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
4905             break;
4906           }
4907           case 538: {
4908             mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
4909             break;
4910           }
4911           case 546: {
4912             mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
4913             break;
4914           }
4915           case 554: {
4916             mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
4917             break;
4918           }
4919           case 562: {
4920             mapStringBytes_.AddEntriesFrom(input, _map_mapStringBytes_codec);
4921             break;
4922           }
4923           case 570: {
4924             mapStringNestedMessage_.AddEntriesFrom(input, _map_mapStringNestedMessage_codec);
4925             break;
4926           }
4927           case 578: {
4928             mapStringForeignMessage_.AddEntriesFrom(input, _map_mapStringForeignMessage_codec);
4929             break;
4930           }
4931           case 586: {
4932             mapStringNestedEnum_.AddEntriesFrom(input, _map_mapStringNestedEnum_codec);
4933             break;
4934           }
4935           case 594: {
4936             mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec);
4937             break;
4938           }
4939           case 602:
4940           case 600: {
4941             packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
4942             break;
4943           }
4944           case 610:
4945           case 608: {
4946             packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
4947             break;
4948           }
4949           case 618:
4950           case 616: {
4951             packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
4952             break;
4953           }
4954           case 626:
4955           case 624: {
4956             packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
4957             break;
4958           }
4959           case 634:
4960           case 632: {
4961             packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
4962             break;
4963           }
4964           case 642:
4965           case 640: {
4966             packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
4967             break;
4968           }
4969           case 650:
4970           case 653: {
4971             packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
4972             break;
4973           }
4974           case 658:
4975           case 657: {
4976             packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
4977             break;
4978           }
4979           case 666:
4980           case 669: {
4981             packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
4982             break;
4983           }
4984           case 674:
4985           case 673: {
4986             packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
4987             break;
4988           }
4989           case 682:
4990           case 685: {
4991             packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
4992             break;
4993           }
4994           case 690:
4995           case 689: {
4996             packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
4997             break;
4998           }
4999           case 698:
5000           case 696: {
5001             packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
5002             break;
5003           }
5004           case 706:
5005           case 704: {
5006             packedNestedEnum_.AddEntriesFrom(input, _repeated_packedNestedEnum_codec);
5007             break;
5008           }
5009           case 714:
5010           case 712: {
5011             unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
5012             break;
5013           }
5014           case 722:
5015           case 720: {
5016             unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
5017             break;
5018           }
5019           case 730:
5020           case 728: {
5021             unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
5022             break;
5023           }
5024           case 738:
5025           case 736: {
5026             unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
5027             break;
5028           }
5029           case 746:
5030           case 744: {
5031             unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
5032             break;
5033           }
5034           case 754:
5035           case 752: {
5036             unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
5037             break;
5038           }
5039           case 762:
5040           case 765: {
5041             unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
5042             break;
5043           }
5044           case 770:
5045           case 769: {
5046             unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
5047             break;
5048           }
5049           case 778:
5050           case 781: {
5051             unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
5052             break;
5053           }
5054           case 786:
5055           case 785: {
5056             unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
5057             break;
5058           }
5059           case 794:
5060           case 797: {
5061             unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
5062             break;
5063           }
5064           case 802:
5065           case 801: {
5066             unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
5067             break;
5068           }
5069           case 810:
5070           case 808: {
5071             unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
5072             break;
5073           }
5074           case 818:
5075           case 816: {
5076             unpackedNestedEnum_.AddEntriesFrom(input, _repeated_unpackedNestedEnum_codec);
5077             break;
5078           }
5079           case 888: {
5080             OneofUint32 = input.ReadUInt32();
5081             break;
5082           }
5083           case 898: {
5084             global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage();
5085             if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
5086               subBuilder.MergeFrom(OneofNestedMessage);
5087             }
5088             input.ReadMessage(subBuilder);
5089             OneofNestedMessage = subBuilder;
5090             break;
5091           }
5092           case 906: {
5093             OneofString = input.ReadString();
5094             break;
5095           }
5096           case 914: {
5097             OneofBytes = input.ReadBytes();
5098             break;
5099           }
5100           case 920: {
5101             OneofBool = input.ReadBool();
5102             break;
5103           }
5104           case 928: {
5105             OneofUint64 = input.ReadUInt64();
5106             break;
5107           }
5108           case 941: {
5109             OneofFloat = input.ReadFloat();
5110             break;
5111           }
5112           case 945: {
5113             OneofDouble = input.ReadDouble();
5114             break;
5115           }
5116           case 952: {
5117             oneofField_ = input.ReadEnum();
5118             oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
5119             break;
5120           }
5121           case 1611: {
5122             if (!HasData) {
5123               Data = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.Data();
5124             }
5125             input.ReadGroup(Data);
5126             break;
5127           }
5128           case 1635: {
5129             if (!HasMultiWordGroupField) {
5130               MultiWordGroupField = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MultiWordGroupField();
5131             }
5132             input.ReadGroup(MultiWordGroupField);
5133             break;
5134           }
5135           case 1928: {
5136             DefaultInt32 = input.ReadInt32();
5137             break;
5138           }
5139           case 1936: {
5140             DefaultInt64 = input.ReadInt64();
5141             break;
5142           }
5143           case 1944: {
5144             DefaultUint32 = input.ReadUInt32();
5145             break;
5146           }
5147           case 1952: {
5148             DefaultUint64 = input.ReadUInt64();
5149             break;
5150           }
5151           case 1960: {
5152             DefaultSint32 = input.ReadSInt32();
5153             break;
5154           }
5155           case 1968: {
5156             DefaultSint64 = input.ReadSInt64();
5157             break;
5158           }
5159           case 1981: {
5160             DefaultFixed32 = input.ReadFixed32();
5161             break;
5162           }
5163           case 1985: {
5164             DefaultFixed64 = input.ReadFixed64();
5165             break;
5166           }
5167           case 1997: {
5168             DefaultSfixed32 = input.ReadSFixed32();
5169             break;
5170           }
5171           case 2001: {
5172             DefaultSfixed64 = input.ReadSFixed64();
5173             break;
5174           }
5175           case 2013: {
5176             DefaultFloat = input.ReadFloat();
5177             break;
5178           }
5179           case 2017: {
5180             DefaultDouble = input.ReadDouble();
5181             break;
5182           }
5183           case 2024: {
5184             DefaultBool = input.ReadBool();
5185             break;
5186           }
5187           case 2034: {
5188             DefaultString = input.ReadString();
5189             break;
5190           }
5191           case 2042: {
5192             DefaultBytes = input.ReadBytes();
5193             break;
5194           }
5195           case 3208: {
5196             Fieldname1 = input.ReadInt32();
5197             break;
5198           }
5199           case 3216: {
5200             FieldName2 = input.ReadInt32();
5201             break;
5202           }
5203           case 3224: {
5204             FieldName3 = input.ReadInt32();
5205             break;
5206           }
5207           case 3232: {
5208             FieldName4 = input.ReadInt32();
5209             break;
5210           }
5211           case 3240: {
5212             Field0Name5 = input.ReadInt32();
5213             break;
5214           }
5215           case 3248: {
5216             Field0Name6 = input.ReadInt32();
5217             break;
5218           }
5219           case 3256: {
5220             FieldName7 = input.ReadInt32();
5221             break;
5222           }
5223           case 3264: {
5224             FieldName8 = input.ReadInt32();
5225             break;
5226           }
5227           case 3272: {
5228             FieldName9 = input.ReadInt32();
5229             break;
5230           }
5231           case 3280: {
5232             FieldName10 = input.ReadInt32();
5233             break;
5234           }
5235           case 3288: {
5236             FIELDNAME11 = input.ReadInt32();
5237             break;
5238           }
5239           case 3296: {
5240             FIELDName12 = input.ReadInt32();
5241             break;
5242           }
5243           case 3304: {
5244             FieldName13 = input.ReadInt32();
5245             break;
5246           }
5247           case 3312: {
5248             FieldName14 = input.ReadInt32();
5249             break;
5250           }
5251           case 3320: {
5252             FieldName15 = input.ReadInt32();
5253             break;
5254           }
5255           case 3328: {
5256             FieldName16 = input.ReadInt32();
5257             break;
5258           }
5259           case 3336: {
5260             FieldName17 = input.ReadInt32();
5261             break;
5262           }
5263           case 3344: {
5264             FieldName18 = input.ReadInt32();
5265             break;
5266           }
5267         }
5268       }
5269     #endif
5270     }
5271 
5272     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5273     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5274     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5275     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5276       uint tag;
5277       while ((tag = input.ReadTag()) != 0) {
5278       if ((tag & 7) == 4) {
5279         // Abort on any end group tag.
5280         return;
5281       }
5282       switch(tag) {
5283           default:
5284             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
5285               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5286             }
5287             break;
5288           case 8: {
5289             OptionalInt32 = input.ReadInt32();
5290             break;
5291           }
5292           case 16: {
5293             OptionalInt64 = input.ReadInt64();
5294             break;
5295           }
5296           case 24: {
5297             OptionalUint32 = input.ReadUInt32();
5298             break;
5299           }
5300           case 32: {
5301             OptionalUint64 = input.ReadUInt64();
5302             break;
5303           }
5304           case 40: {
5305             OptionalSint32 = input.ReadSInt32();
5306             break;
5307           }
5308           case 48: {
5309             OptionalSint64 = input.ReadSInt64();
5310             break;
5311           }
5312           case 61: {
5313             OptionalFixed32 = input.ReadFixed32();
5314             break;
5315           }
5316           case 65: {
5317             OptionalFixed64 = input.ReadFixed64();
5318             break;
5319           }
5320           case 77: {
5321             OptionalSfixed32 = input.ReadSFixed32();
5322             break;
5323           }
5324           case 81: {
5325             OptionalSfixed64 = input.ReadSFixed64();
5326             break;
5327           }
5328           case 93: {
5329             OptionalFloat = input.ReadFloat();
5330             break;
5331           }
5332           case 97: {
5333             OptionalDouble = input.ReadDouble();
5334             break;
5335           }
5336           case 104: {
5337             OptionalBool = input.ReadBool();
5338             break;
5339           }
5340           case 114: {
5341             OptionalString = input.ReadString();
5342             break;
5343           }
5344           case 122: {
5345             OptionalBytes = input.ReadBytes();
5346             break;
5347           }
5348           case 146: {
5349             if (optionalNestedMessage_ == null) {
5350               OptionalNestedMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage();
5351             }
5352             input.ReadMessage(OptionalNestedMessage);
5353             break;
5354           }
5355           case 154: {
5356             if (optionalForeignMessage_ == null) {
5357               OptionalForeignMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
5358             }
5359             input.ReadMessage(OptionalForeignMessage);
5360             break;
5361           }
5362           case 168: {
5363             OptionalNestedEnum = (global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum();
5364             break;
5365           }
5366           case 176: {
5367             OptionalForeignEnum = (global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2) input.ReadEnum();
5368             break;
5369           }
5370           case 194: {
5371             OptionalStringPiece = input.ReadString();
5372             break;
5373           }
5374           case 202: {
5375             OptionalCord = input.ReadString();
5376             break;
5377           }
5378           case 218: {
5379             if (recursiveMessage_ == null) {
5380               RecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2();
5381             }
5382             input.ReadMessage(RecursiveMessage);
5383             break;
5384           }
5385           case 250:
5386           case 248: {
5387             repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
5388             break;
5389           }
5390           case 258:
5391           case 256: {
5392             repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
5393             break;
5394           }
5395           case 266:
5396           case 264: {
5397             repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec);
5398             break;
5399           }
5400           case 274:
5401           case 272: {
5402             repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
5403             break;
5404           }
5405           case 282:
5406           case 280: {
5407             repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec);
5408             break;
5409           }
5410           case 290:
5411           case 288: {
5412             repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec);
5413             break;
5414           }
5415           case 298:
5416           case 301: {
5417             repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
5418             break;
5419           }
5420           case 306:
5421           case 305: {
5422             repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
5423             break;
5424           }
5425           case 314:
5426           case 317: {
5427             repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec);
5428             break;
5429           }
5430           case 322:
5431           case 321: {
5432             repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec);
5433             break;
5434           }
5435           case 330:
5436           case 333: {
5437             repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
5438             break;
5439           }
5440           case 338:
5441           case 337: {
5442             repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec);
5443             break;
5444           }
5445           case 346:
5446           case 344: {
5447             repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec);
5448             break;
5449           }
5450           case 354: {
5451             repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec);
5452             break;
5453           }
5454           case 362: {
5455             repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec);
5456             break;
5457           }
5458           case 386: {
5459             repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec);
5460             break;
5461           }
5462           case 394: {
5463             repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec);
5464             break;
5465           }
5466           case 410:
5467           case 408: {
5468             repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec);
5469             break;
5470           }
5471           case 418:
5472           case 416: {
5473             repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec);
5474             break;
5475           }
5476           case 434: {
5477             repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec);
5478             break;
5479           }
5480           case 442: {
5481             repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec);
5482             break;
5483           }
5484           case 450: {
5485             mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
5486             break;
5487           }
5488           case 458: {
5489             mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
5490             break;
5491           }
5492           case 466: {
5493             mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
5494             break;
5495           }
5496           case 474: {
5497             mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
5498             break;
5499           }
5500           case 482: {
5501             mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
5502             break;
5503           }
5504           case 490: {
5505             mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
5506             break;
5507           }
5508           case 498: {
5509             mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
5510             break;
5511           }
5512           case 506: {
5513             mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
5514             break;
5515           }
5516           case 514: {
5517             mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
5518             break;
5519           }
5520           case 522: {
5521             mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
5522             break;
5523           }
5524           case 530: {
5525             mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
5526             break;
5527           }
5528           case 538: {
5529             mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
5530             break;
5531           }
5532           case 546: {
5533             mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
5534             break;
5535           }
5536           case 554: {
5537             mapStringString_.AddEntriesFrom(ref input, _map_mapStringString_codec);
5538             break;
5539           }
5540           case 562: {
5541             mapStringBytes_.AddEntriesFrom(ref input, _map_mapStringBytes_codec);
5542             break;
5543           }
5544           case 570: {
5545             mapStringNestedMessage_.AddEntriesFrom(ref input, _map_mapStringNestedMessage_codec);
5546             break;
5547           }
5548           case 578: {
5549             mapStringForeignMessage_.AddEntriesFrom(ref input, _map_mapStringForeignMessage_codec);
5550             break;
5551           }
5552           case 586: {
5553             mapStringNestedEnum_.AddEntriesFrom(ref input, _map_mapStringNestedEnum_codec);
5554             break;
5555           }
5556           case 594: {
5557             mapStringForeignEnum_.AddEntriesFrom(ref input, _map_mapStringForeignEnum_codec);
5558             break;
5559           }
5560           case 602:
5561           case 600: {
5562             packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
5563             break;
5564           }
5565           case 610:
5566           case 608: {
5567             packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec);
5568             break;
5569           }
5570           case 618:
5571           case 616: {
5572             packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec);
5573             break;
5574           }
5575           case 626:
5576           case 624: {
5577             packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec);
5578             break;
5579           }
5580           case 634:
5581           case 632: {
5582             packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec);
5583             break;
5584           }
5585           case 642:
5586           case 640: {
5587             packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec);
5588             break;
5589           }
5590           case 650:
5591           case 653: {
5592             packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec);
5593             break;
5594           }
5595           case 658:
5596           case 657: {
5597             packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec);
5598             break;
5599           }
5600           case 666:
5601           case 669: {
5602             packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec);
5603             break;
5604           }
5605           case 674:
5606           case 673: {
5607             packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec);
5608             break;
5609           }
5610           case 682:
5611           case 685: {
5612             packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec);
5613             break;
5614           }
5615           case 690:
5616           case 689: {
5617             packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec);
5618             break;
5619           }
5620           case 698:
5621           case 696: {
5622             packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec);
5623             break;
5624           }
5625           case 706:
5626           case 704: {
5627             packedNestedEnum_.AddEntriesFrom(ref input, _repeated_packedNestedEnum_codec);
5628             break;
5629           }
5630           case 714:
5631           case 712: {
5632             unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec);
5633             break;
5634           }
5635           case 722:
5636           case 720: {
5637             unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec);
5638             break;
5639           }
5640           case 730:
5641           case 728: {
5642             unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec);
5643             break;
5644           }
5645           case 738:
5646           case 736: {
5647             unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec);
5648             break;
5649           }
5650           case 746:
5651           case 744: {
5652             unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec);
5653             break;
5654           }
5655           case 754:
5656           case 752: {
5657             unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec);
5658             break;
5659           }
5660           case 762:
5661           case 765: {
5662             unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec);
5663             break;
5664           }
5665           case 770:
5666           case 769: {
5667             unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec);
5668             break;
5669           }
5670           case 778:
5671           case 781: {
5672             unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec);
5673             break;
5674           }
5675           case 786:
5676           case 785: {
5677             unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec);
5678             break;
5679           }
5680           case 794:
5681           case 797: {
5682             unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec);
5683             break;
5684           }
5685           case 802:
5686           case 801: {
5687             unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec);
5688             break;
5689           }
5690           case 810:
5691           case 808: {
5692             unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec);
5693             break;
5694           }
5695           case 818:
5696           case 816: {
5697             unpackedNestedEnum_.AddEntriesFrom(ref input, _repeated_unpackedNestedEnum_codec);
5698             break;
5699           }
5700           case 888: {
5701             OneofUint32 = input.ReadUInt32();
5702             break;
5703           }
5704           case 898: {
5705             global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.NestedMessage();
5706             if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
5707               subBuilder.MergeFrom(OneofNestedMessage);
5708             }
5709             input.ReadMessage(subBuilder);
5710             OneofNestedMessage = subBuilder;
5711             break;
5712           }
5713           case 906: {
5714             OneofString = input.ReadString();
5715             break;
5716           }
5717           case 914: {
5718             OneofBytes = input.ReadBytes();
5719             break;
5720           }
5721           case 920: {
5722             OneofBool = input.ReadBool();
5723             break;
5724           }
5725           case 928: {
5726             OneofUint64 = input.ReadUInt64();
5727             break;
5728           }
5729           case 941: {
5730             OneofFloat = input.ReadFloat();
5731             break;
5732           }
5733           case 945: {
5734             OneofDouble = input.ReadDouble();
5735             break;
5736           }
5737           case 952: {
5738             oneofField_ = input.ReadEnum();
5739             oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
5740             break;
5741           }
5742           case 1611: {
5743             if (!HasData) {
5744               Data = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.Data();
5745             }
5746             input.ReadGroup(Data);
5747             break;
5748           }
5749           case 1635: {
5750             if (!HasMultiWordGroupField) {
5751               MultiWordGroupField = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MultiWordGroupField();
5752             }
5753             input.ReadGroup(MultiWordGroupField);
5754             break;
5755           }
5756           case 1928: {
5757             DefaultInt32 = input.ReadInt32();
5758             break;
5759           }
5760           case 1936: {
5761             DefaultInt64 = input.ReadInt64();
5762             break;
5763           }
5764           case 1944: {
5765             DefaultUint32 = input.ReadUInt32();
5766             break;
5767           }
5768           case 1952: {
5769             DefaultUint64 = input.ReadUInt64();
5770             break;
5771           }
5772           case 1960: {
5773             DefaultSint32 = input.ReadSInt32();
5774             break;
5775           }
5776           case 1968: {
5777             DefaultSint64 = input.ReadSInt64();
5778             break;
5779           }
5780           case 1981: {
5781             DefaultFixed32 = input.ReadFixed32();
5782             break;
5783           }
5784           case 1985: {
5785             DefaultFixed64 = input.ReadFixed64();
5786             break;
5787           }
5788           case 1997: {
5789             DefaultSfixed32 = input.ReadSFixed32();
5790             break;
5791           }
5792           case 2001: {
5793             DefaultSfixed64 = input.ReadSFixed64();
5794             break;
5795           }
5796           case 2013: {
5797             DefaultFloat = input.ReadFloat();
5798             break;
5799           }
5800           case 2017: {
5801             DefaultDouble = input.ReadDouble();
5802             break;
5803           }
5804           case 2024: {
5805             DefaultBool = input.ReadBool();
5806             break;
5807           }
5808           case 2034: {
5809             DefaultString = input.ReadString();
5810             break;
5811           }
5812           case 2042: {
5813             DefaultBytes = input.ReadBytes();
5814             break;
5815           }
5816           case 3208: {
5817             Fieldname1 = input.ReadInt32();
5818             break;
5819           }
5820           case 3216: {
5821             FieldName2 = input.ReadInt32();
5822             break;
5823           }
5824           case 3224: {
5825             FieldName3 = input.ReadInt32();
5826             break;
5827           }
5828           case 3232: {
5829             FieldName4 = input.ReadInt32();
5830             break;
5831           }
5832           case 3240: {
5833             Field0Name5 = input.ReadInt32();
5834             break;
5835           }
5836           case 3248: {
5837             Field0Name6 = input.ReadInt32();
5838             break;
5839           }
5840           case 3256: {
5841             FieldName7 = input.ReadInt32();
5842             break;
5843           }
5844           case 3264: {
5845             FieldName8 = input.ReadInt32();
5846             break;
5847           }
5848           case 3272: {
5849             FieldName9 = input.ReadInt32();
5850             break;
5851           }
5852           case 3280: {
5853             FieldName10 = input.ReadInt32();
5854             break;
5855           }
5856           case 3288: {
5857             FIELDNAME11 = input.ReadInt32();
5858             break;
5859           }
5860           case 3296: {
5861             FIELDName12 = input.ReadInt32();
5862             break;
5863           }
5864           case 3304: {
5865             FieldName13 = input.ReadInt32();
5866             break;
5867           }
5868           case 3312: {
5869             FieldName14 = input.ReadInt32();
5870             break;
5871           }
5872           case 3320: {
5873             FieldName15 = input.ReadInt32();
5874             break;
5875           }
5876           case 3328: {
5877             FieldName16 = input.ReadInt32();
5878             break;
5879           }
5880           case 3336: {
5881             FieldName17 = input.ReadInt32();
5882             break;
5883           }
5884           case 3344: {
5885             FieldName18 = input.ReadInt32();
5886             break;
5887           }
5888         }
5889       }
5890     }
5891     #endif
5892 
GetExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5893     public TValue GetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
5894       return pb::ExtensionSet.Get(ref _extensions, extension);
5895     }
GetExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5896     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
5897       return pb::ExtensionSet.Get(ref _extensions, extension);
5898     }
GetOrInitializeExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5899     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
5900       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
5901     }
SetExtension(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value)5902     public void SetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value) {
5903       pb::ExtensionSet.Set(ref _extensions, extension, value);
5904     }
HasExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5905     public bool HasExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
5906       return pb::ExtensionSet.Has(ref _extensions, extension);
5907     }
ClearExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5908     public void ClearExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
5909       pb::ExtensionSet.Clear(ref _extensions, extension);
5910     }
ClearExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5911     public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
5912       pb::ExtensionSet.Clear(ref _extensions, extension);
5913     }
5914 
5915     #region Nested types
5916     /// <summary>Container for nested types declared in the TestAllTypesProto2 message type.</summary>
5917     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5918     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5919     public static partial class Types {
5920       public enum NestedEnum {
5921         [pbr::OriginalName("FOO")] Foo = 0,
5922         [pbr::OriginalName("BAR")] Bar = 1,
5923         [pbr::OriginalName("BAZ")] Baz = 2,
5924         /// <summary>
5925         /// Intentionally negative.
5926         /// </summary>
5927         [pbr::OriginalName("NEG")] Neg = -1,
5928       }
5929 
5930       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
5931       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
5932       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5933           , pb::IBufferMessage
5934       #endif
5935       {
5936         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
5937         private pb::UnknownFieldSet _unknownFields;
5938         private int _hasBits0;
5939         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5940         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5941         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
5942 
5943         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5944         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5945         public static pbr::MessageDescriptor Descriptor {
5946           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[0]; }
5947         }
5948 
5949         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5950         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5951         pbr::MessageDescriptor pb::IMessage.Descriptor {
5952           get { return Descriptor; }
5953         }
5954 
5955         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5956         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()5957         public NestedMessage() {
5958           OnConstruction();
5959         }
5960 
OnConstruction()5961         partial void OnConstruction();
5962 
5963         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5964         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)5965         public NestedMessage(NestedMessage other) : this() {
5966           _hasBits0 = other._hasBits0;
5967           a_ = other.a_;
5968           corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null;
5969           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5970         }
5971 
5972         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5973         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5974         public NestedMessage Clone() {
5975           return new NestedMessage(this);
5976         }
5977 
5978         /// <summary>Field number for the "a" field.</summary>
5979         public const int AFieldNumber = 1;
5980         private readonly static int ADefaultValue = 0;
5981 
5982         private int a_;
5983         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5984         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5985         public int A {
5986           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
5987           set {
5988             _hasBits0 |= 1;
5989             a_ = value;
5990           }
5991         }
5992         /// <summary>Gets whether the "a" field is set</summary>
5993         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5994         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5995         public bool HasA {
5996           get { return (_hasBits0 & 1) != 0; }
5997         }
5998         /// <summary>Clears the value of the "a" field</summary>
5999         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6000         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()6001         public void ClearA() {
6002           _hasBits0 &= ~1;
6003         }
6004 
6005         /// <summary>Field number for the "corecursive" field.</summary>
6006         public const int CorecursiveFieldNumber = 2;
6007         private global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2 corecursive_;
6008         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6009         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6010         public global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2 Corecursive {
6011           get { return corecursive_; }
6012           set {
6013             corecursive_ = value;
6014           }
6015         }
6016 
6017         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6018         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6019         public override bool Equals(object other) {
6020           return Equals(other as NestedMessage);
6021         }
6022 
6023         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6024         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)6025         public bool Equals(NestedMessage other) {
6026           if (ReferenceEquals(other, null)) {
6027             return false;
6028           }
6029           if (ReferenceEquals(other, this)) {
6030             return true;
6031           }
6032           if (A != other.A) return false;
6033           if (!object.Equals(Corecursive, other.Corecursive)) return false;
6034           return Equals(_unknownFields, other._unknownFields);
6035         }
6036 
6037         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6038         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6039         public override int GetHashCode() {
6040           int hash = 1;
6041           if (HasA) hash ^= A.GetHashCode();
6042           if (corecursive_ != null) hash ^= Corecursive.GetHashCode();
6043           if (_unknownFields != null) {
6044             hash ^= _unknownFields.GetHashCode();
6045           }
6046           return hash;
6047         }
6048 
6049         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6050         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6051         public override string ToString() {
6052           return pb::JsonFormatter.ToDiagnosticString(this);
6053         }
6054 
6055         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6056         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6057         public void WriteTo(pb::CodedOutputStream output) {
6058         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6059           output.WriteRawMessage(this);
6060         #else
6061           if (HasA) {
6062             output.WriteRawTag(8);
6063             output.WriteInt32(A);
6064           }
6065           if (corecursive_ != null) {
6066             output.WriteRawTag(18);
6067             output.WriteMessage(Corecursive);
6068           }
6069           if (_unknownFields != null) {
6070             _unknownFields.WriteTo(output);
6071           }
6072         #endif
6073         }
6074 
6075         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6076         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6077         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6078         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6079           if (HasA) {
6080             output.WriteRawTag(8);
6081             output.WriteInt32(A);
6082           }
6083           if (corecursive_ != null) {
6084             output.WriteRawTag(18);
6085             output.WriteMessage(Corecursive);
6086           }
6087           if (_unknownFields != null) {
6088             _unknownFields.WriteTo(ref output);
6089           }
6090         }
6091         #endif
6092 
6093         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6094         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6095         public int CalculateSize() {
6096           int size = 0;
6097           if (HasA) {
6098             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
6099           }
6100           if (corecursive_ != null) {
6101             size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive);
6102           }
6103           if (_unknownFields != null) {
6104             size += _unknownFields.CalculateSize();
6105           }
6106           return size;
6107         }
6108 
6109         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6110         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)6111         public void MergeFrom(NestedMessage other) {
6112           if (other == null) {
6113             return;
6114           }
6115           if (other.HasA) {
6116             A = other.A;
6117           }
6118           if (other.corecursive_ != null) {
6119             if (corecursive_ == null) {
6120               Corecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2();
6121             }
6122             Corecursive.MergeFrom(other.Corecursive);
6123           }
6124           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6125         }
6126 
6127         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6128         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6129         public void MergeFrom(pb::CodedInputStream input) {
6130         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6131           input.ReadRawMessage(this);
6132         #else
6133           uint tag;
6134           while ((tag = input.ReadTag()) != 0) {
6135           if ((tag & 7) == 4) {
6136             // Abort on any end group tag.
6137             return;
6138           }
6139           switch(tag) {
6140               default:
6141                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6142                 break;
6143               case 8: {
6144                 A = input.ReadInt32();
6145                 break;
6146               }
6147               case 18: {
6148                 if (corecursive_ == null) {
6149                   Corecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2();
6150                 }
6151                 input.ReadMessage(Corecursive);
6152                 break;
6153               }
6154             }
6155           }
6156         #endif
6157         }
6158 
6159         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6160         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6161         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6162         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6163           uint tag;
6164           while ((tag = input.ReadTag()) != 0) {
6165           if ((tag & 7) == 4) {
6166             // Abort on any end group tag.
6167             return;
6168           }
6169           switch(tag) {
6170               default:
6171                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6172                 break;
6173               case 8: {
6174                 A = input.ReadInt32();
6175                 break;
6176               }
6177               case 18: {
6178                 if (corecursive_ == null) {
6179                   Corecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2();
6180                 }
6181                 input.ReadMessage(Corecursive);
6182                 break;
6183               }
6184             }
6185           }
6186         }
6187         #endif
6188 
6189       }
6190 
6191       /// <summary>
6192       /// groups
6193       /// </summary>
6194       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6195       public sealed partial class Data : pb::IMessage<Data>
6196       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6197           , pb::IBufferMessage
6198       #endif
6199       {
6200         private static readonly pb::MessageParser<Data> _parser = new pb::MessageParser<Data>(() => new Data());
6201         private pb::UnknownFieldSet _unknownFields;
6202         private int _hasBits0;
6203         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6204         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6205         public static pb::MessageParser<Data> Parser { get { return _parser; } }
6206 
6207         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6208         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6209         public static pbr::MessageDescriptor Descriptor {
6210           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[20]; }
6211         }
6212 
6213         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6214         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6215         pbr::MessageDescriptor pb::IMessage.Descriptor {
6216           get { return Descriptor; }
6217         }
6218 
6219         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6220         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Data()6221         public Data() {
6222           OnConstruction();
6223         }
6224 
OnConstruction()6225         partial void OnConstruction();
6226 
6227         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6228         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Data(Data other)6229         public Data(Data other) : this() {
6230           _hasBits0 = other._hasBits0;
6231           groupInt32_ = other.groupInt32_;
6232           groupUint32_ = other.groupUint32_;
6233           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6234         }
6235 
6236         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6237         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6238         public Data Clone() {
6239           return new Data(this);
6240         }
6241 
6242         /// <summary>Field number for the "group_int32" field.</summary>
6243         public const int GroupInt32FieldNumber = 202;
6244         private readonly static int GroupInt32DefaultValue = 0;
6245 
6246         private int groupInt32_;
6247         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6248         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6249         public int GroupInt32 {
6250           get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } }
6251           set {
6252             _hasBits0 |= 1;
6253             groupInt32_ = value;
6254           }
6255         }
6256         /// <summary>Gets whether the "group_int32" field is set</summary>
6257         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6258         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6259         public bool HasGroupInt32 {
6260           get { return (_hasBits0 & 1) != 0; }
6261         }
6262         /// <summary>Clears the value of the "group_int32" field</summary>
6263         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6264         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupInt32()6265         public void ClearGroupInt32() {
6266           _hasBits0 &= ~1;
6267         }
6268 
6269         /// <summary>Field number for the "group_uint32" field.</summary>
6270         public const int GroupUint32FieldNumber = 203;
6271         private readonly static uint GroupUint32DefaultValue = 0;
6272 
6273         private uint groupUint32_;
6274         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6275         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6276         public uint GroupUint32 {
6277           get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } }
6278           set {
6279             _hasBits0 |= 2;
6280             groupUint32_ = value;
6281           }
6282         }
6283         /// <summary>Gets whether the "group_uint32" field is set</summary>
6284         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6285         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6286         public bool HasGroupUint32 {
6287           get { return (_hasBits0 & 2) != 0; }
6288         }
6289         /// <summary>Clears the value of the "group_uint32" field</summary>
6290         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6291         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupUint32()6292         public void ClearGroupUint32() {
6293           _hasBits0 &= ~2;
6294         }
6295 
6296         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6297         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6298         public override bool Equals(object other) {
6299           return Equals(other as Data);
6300         }
6301 
6302         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6303         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Data other)6304         public bool Equals(Data other) {
6305           if (ReferenceEquals(other, null)) {
6306             return false;
6307           }
6308           if (ReferenceEquals(other, this)) {
6309             return true;
6310           }
6311           if (GroupInt32 != other.GroupInt32) return false;
6312           if (GroupUint32 != other.GroupUint32) return false;
6313           return Equals(_unknownFields, other._unknownFields);
6314         }
6315 
6316         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6317         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6318         public override int GetHashCode() {
6319           int hash = 1;
6320           if (HasGroupInt32) hash ^= GroupInt32.GetHashCode();
6321           if (HasGroupUint32) hash ^= GroupUint32.GetHashCode();
6322           if (_unknownFields != null) {
6323             hash ^= _unknownFields.GetHashCode();
6324           }
6325           return hash;
6326         }
6327 
6328         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6329         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6330         public override string ToString() {
6331           return pb::JsonFormatter.ToDiagnosticString(this);
6332         }
6333 
6334         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6335         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6336         public void WriteTo(pb::CodedOutputStream output) {
6337         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6338           output.WriteRawMessage(this);
6339         #else
6340           if (HasGroupInt32) {
6341             output.WriteRawTag(208, 12);
6342             output.WriteInt32(GroupInt32);
6343           }
6344           if (HasGroupUint32) {
6345             output.WriteRawTag(216, 12);
6346             output.WriteUInt32(GroupUint32);
6347           }
6348           if (_unknownFields != null) {
6349             _unknownFields.WriteTo(output);
6350           }
6351         #endif
6352         }
6353 
6354         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6355         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6356         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6357         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6358           if (HasGroupInt32) {
6359             output.WriteRawTag(208, 12);
6360             output.WriteInt32(GroupInt32);
6361           }
6362           if (HasGroupUint32) {
6363             output.WriteRawTag(216, 12);
6364             output.WriteUInt32(GroupUint32);
6365           }
6366           if (_unknownFields != null) {
6367             _unknownFields.WriteTo(ref output);
6368           }
6369         }
6370         #endif
6371 
6372         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6373         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6374         public int CalculateSize() {
6375           int size = 0;
6376           if (HasGroupInt32) {
6377             size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32);
6378           }
6379           if (HasGroupUint32) {
6380             size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32);
6381           }
6382           if (_unknownFields != null) {
6383             size += _unknownFields.CalculateSize();
6384           }
6385           return size;
6386         }
6387 
6388         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6389         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Data other)6390         public void MergeFrom(Data other) {
6391           if (other == null) {
6392             return;
6393           }
6394           if (other.HasGroupInt32) {
6395             GroupInt32 = other.GroupInt32;
6396           }
6397           if (other.HasGroupUint32) {
6398             GroupUint32 = other.GroupUint32;
6399           }
6400           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6401         }
6402 
6403         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6404         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6405         public void MergeFrom(pb::CodedInputStream input) {
6406         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6407           input.ReadRawMessage(this);
6408         #else
6409           uint tag;
6410           while ((tag = input.ReadTag()) != 0) {
6411           if ((tag & 7) == 4) {
6412             // Abort on any end group tag.
6413             return;
6414           }
6415           switch(tag) {
6416               default:
6417                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6418                 break;
6419               case 1616: {
6420                 GroupInt32 = input.ReadInt32();
6421                 break;
6422               }
6423               case 1624: {
6424                 GroupUint32 = input.ReadUInt32();
6425                 break;
6426               }
6427             }
6428           }
6429         #endif
6430         }
6431 
6432         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6433         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6434         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6435         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6436           uint tag;
6437           while ((tag = input.ReadTag()) != 0) {
6438           if ((tag & 7) == 4) {
6439             // Abort on any end group tag.
6440             return;
6441           }
6442           switch(tag) {
6443               default:
6444                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6445                 break;
6446               case 1616: {
6447                 GroupInt32 = input.ReadInt32();
6448                 break;
6449               }
6450               case 1624: {
6451                 GroupUint32 = input.ReadUInt32();
6452                 break;
6453               }
6454             }
6455           }
6456         }
6457         #endif
6458 
6459       }
6460 
6461       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6462       public sealed partial class MultiWordGroupField : pb::IMessage<MultiWordGroupField>
6463       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6464           , pb::IBufferMessage
6465       #endif
6466       {
6467         private static readonly pb::MessageParser<MultiWordGroupField> _parser = new pb::MessageParser<MultiWordGroupField>(() => new MultiWordGroupField());
6468         private pb::UnknownFieldSet _unknownFields;
6469         private int _hasBits0;
6470         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6471         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6472         public static pb::MessageParser<MultiWordGroupField> Parser { get { return _parser; } }
6473 
6474         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6475         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6476         public static pbr::MessageDescriptor Descriptor {
6477           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[21]; }
6478         }
6479 
6480         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6481         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6482         pbr::MessageDescriptor pb::IMessage.Descriptor {
6483           get { return Descriptor; }
6484         }
6485 
6486         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6487         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MultiWordGroupField()6488         public MultiWordGroupField() {
6489           OnConstruction();
6490         }
6491 
OnConstruction()6492         partial void OnConstruction();
6493 
6494         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6495         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MultiWordGroupField(MultiWordGroupField other)6496         public MultiWordGroupField(MultiWordGroupField other) : this() {
6497           _hasBits0 = other._hasBits0;
6498           groupInt32_ = other.groupInt32_;
6499           groupUint32_ = other.groupUint32_;
6500           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6501         }
6502 
6503         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6504         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6505         public MultiWordGroupField Clone() {
6506           return new MultiWordGroupField(this);
6507         }
6508 
6509         /// <summary>Field number for the "group_int32" field.</summary>
6510         public const int GroupInt32FieldNumber = 205;
6511         private readonly static int GroupInt32DefaultValue = 0;
6512 
6513         private int groupInt32_;
6514         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6515         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6516         public int GroupInt32 {
6517           get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } }
6518           set {
6519             _hasBits0 |= 1;
6520             groupInt32_ = value;
6521           }
6522         }
6523         /// <summary>Gets whether the "group_int32" field is set</summary>
6524         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6525         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6526         public bool HasGroupInt32 {
6527           get { return (_hasBits0 & 1) != 0; }
6528         }
6529         /// <summary>Clears the value of the "group_int32" field</summary>
6530         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6531         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupInt32()6532         public void ClearGroupInt32() {
6533           _hasBits0 &= ~1;
6534         }
6535 
6536         /// <summary>Field number for the "group_uint32" field.</summary>
6537         public const int GroupUint32FieldNumber = 206;
6538         private readonly static uint GroupUint32DefaultValue = 0;
6539 
6540         private uint groupUint32_;
6541         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6542         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6543         public uint GroupUint32 {
6544           get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } }
6545           set {
6546             _hasBits0 |= 2;
6547             groupUint32_ = value;
6548           }
6549         }
6550         /// <summary>Gets whether the "group_uint32" field is set</summary>
6551         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6552         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6553         public bool HasGroupUint32 {
6554           get { return (_hasBits0 & 2) != 0; }
6555         }
6556         /// <summary>Clears the value of the "group_uint32" field</summary>
6557         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6558         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupUint32()6559         public void ClearGroupUint32() {
6560           _hasBits0 &= ~2;
6561         }
6562 
6563         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6564         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6565         public override bool Equals(object other) {
6566           return Equals(other as MultiWordGroupField);
6567         }
6568 
6569         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6570         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MultiWordGroupField other)6571         public bool Equals(MultiWordGroupField other) {
6572           if (ReferenceEquals(other, null)) {
6573             return false;
6574           }
6575           if (ReferenceEquals(other, this)) {
6576             return true;
6577           }
6578           if (GroupInt32 != other.GroupInt32) return false;
6579           if (GroupUint32 != other.GroupUint32) return false;
6580           return Equals(_unknownFields, other._unknownFields);
6581         }
6582 
6583         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6584         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6585         public override int GetHashCode() {
6586           int hash = 1;
6587           if (HasGroupInt32) hash ^= GroupInt32.GetHashCode();
6588           if (HasGroupUint32) hash ^= GroupUint32.GetHashCode();
6589           if (_unknownFields != null) {
6590             hash ^= _unknownFields.GetHashCode();
6591           }
6592           return hash;
6593         }
6594 
6595         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6596         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6597         public override string ToString() {
6598           return pb::JsonFormatter.ToDiagnosticString(this);
6599         }
6600 
6601         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6602         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6603         public void WriteTo(pb::CodedOutputStream output) {
6604         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6605           output.WriteRawMessage(this);
6606         #else
6607           if (HasGroupInt32) {
6608             output.WriteRawTag(232, 12);
6609             output.WriteInt32(GroupInt32);
6610           }
6611           if (HasGroupUint32) {
6612             output.WriteRawTag(240, 12);
6613             output.WriteUInt32(GroupUint32);
6614           }
6615           if (_unknownFields != null) {
6616             _unknownFields.WriteTo(output);
6617           }
6618         #endif
6619         }
6620 
6621         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6622         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6623         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6624         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6625           if (HasGroupInt32) {
6626             output.WriteRawTag(232, 12);
6627             output.WriteInt32(GroupInt32);
6628           }
6629           if (HasGroupUint32) {
6630             output.WriteRawTag(240, 12);
6631             output.WriteUInt32(GroupUint32);
6632           }
6633           if (_unknownFields != null) {
6634             _unknownFields.WriteTo(ref output);
6635           }
6636         }
6637         #endif
6638 
6639         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6640         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6641         public int CalculateSize() {
6642           int size = 0;
6643           if (HasGroupInt32) {
6644             size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32);
6645           }
6646           if (HasGroupUint32) {
6647             size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32);
6648           }
6649           if (_unknownFields != null) {
6650             size += _unknownFields.CalculateSize();
6651           }
6652           return size;
6653         }
6654 
6655         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6656         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MultiWordGroupField other)6657         public void MergeFrom(MultiWordGroupField other) {
6658           if (other == null) {
6659             return;
6660           }
6661           if (other.HasGroupInt32) {
6662             GroupInt32 = other.GroupInt32;
6663           }
6664           if (other.HasGroupUint32) {
6665             GroupUint32 = other.GroupUint32;
6666           }
6667           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6668         }
6669 
6670         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6671         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6672         public void MergeFrom(pb::CodedInputStream input) {
6673         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6674           input.ReadRawMessage(this);
6675         #else
6676           uint tag;
6677           while ((tag = input.ReadTag()) != 0) {
6678           if ((tag & 7) == 4) {
6679             // Abort on any end group tag.
6680             return;
6681           }
6682           switch(tag) {
6683               default:
6684                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6685                 break;
6686               case 1640: {
6687                 GroupInt32 = input.ReadInt32();
6688                 break;
6689               }
6690               case 1648: {
6691                 GroupUint32 = input.ReadUInt32();
6692                 break;
6693               }
6694             }
6695           }
6696         #endif
6697         }
6698 
6699         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6700         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6701         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6702         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6703           uint tag;
6704           while ((tag = input.ReadTag()) != 0) {
6705           if ((tag & 7) == 4) {
6706             // Abort on any end group tag.
6707             return;
6708           }
6709           switch(tag) {
6710               default:
6711                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6712                 break;
6713               case 1640: {
6714                 GroupInt32 = input.ReadInt32();
6715                 break;
6716               }
6717               case 1648: {
6718                 GroupUint32 = input.ReadUInt32();
6719                 break;
6720               }
6721             }
6722           }
6723         }
6724         #endif
6725 
6726       }
6727 
6728       /// <summary>
6729       /// message_set test case.
6730       /// </summary>
6731       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6732       public sealed partial class MessageSetCorrect : pb::IExtendableMessage<MessageSetCorrect>
6733       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6734           , pb::IBufferMessage
6735       #endif
6736       {
6737         private static readonly pb::MessageParser<MessageSetCorrect> _parser = new pb::MessageParser<MessageSetCorrect>(() => new MessageSetCorrect());
6738         private pb::UnknownFieldSet _unknownFields;
6739         private pb::ExtensionSet<MessageSetCorrect> _extensions;
6740         private pb::ExtensionSet<MessageSetCorrect> _Extensions { get { return _extensions; } }
6741         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6742         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6743         public static pb::MessageParser<MessageSetCorrect> Parser { get { return _parser; } }
6744 
6745         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6746         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6747         public static pbr::MessageDescriptor Descriptor {
6748           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[22]; }
6749         }
6750 
6751         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6752         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6753         pbr::MessageDescriptor pb::IMessage.Descriptor {
6754           get { return Descriptor; }
6755         }
6756 
6757         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6758         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrect()6759         public MessageSetCorrect() {
6760           OnConstruction();
6761         }
6762 
OnConstruction()6763         partial void OnConstruction();
6764 
6765         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6766         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrect(MessageSetCorrect other)6767         public MessageSetCorrect(MessageSetCorrect other) : this() {
6768           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6769           _extensions = pb::ExtensionSet.Clone(other._extensions);
6770         }
6771 
6772         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6773         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6774         public MessageSetCorrect Clone() {
6775           return new MessageSetCorrect(this);
6776         }
6777 
6778         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6779         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6780         public override bool Equals(object other) {
6781           return Equals(other as MessageSetCorrect);
6782         }
6783 
6784         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6785         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrect other)6786         public bool Equals(MessageSetCorrect other) {
6787           if (ReferenceEquals(other, null)) {
6788             return false;
6789           }
6790           if (ReferenceEquals(other, this)) {
6791             return true;
6792           }
6793           if (!Equals(_extensions, other._extensions)) {
6794             return false;
6795           }
6796           return Equals(_unknownFields, other._unknownFields);
6797         }
6798 
6799         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6800         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6801         public override int GetHashCode() {
6802           int hash = 1;
6803           if (_extensions != null) {
6804             hash ^= _extensions.GetHashCode();
6805           }
6806           if (_unknownFields != null) {
6807             hash ^= _unknownFields.GetHashCode();
6808           }
6809           return hash;
6810         }
6811 
6812         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6813         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6814         public override string ToString() {
6815           return pb::JsonFormatter.ToDiagnosticString(this);
6816         }
6817 
6818         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6819         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6820         public void WriteTo(pb::CodedOutputStream output) {
6821         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6822           output.WriteRawMessage(this);
6823         #else
6824           if (_extensions != null) {
6825             _extensions.WriteTo(output);
6826           }
6827           if (_unknownFields != null) {
6828             _unknownFields.WriteTo(output);
6829           }
6830         #endif
6831         }
6832 
6833         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6834         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6835         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6836         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6837           if (_extensions != null) {
6838             _extensions.WriteTo(ref output);
6839           }
6840           if (_unknownFields != null) {
6841             _unknownFields.WriteTo(ref output);
6842           }
6843         }
6844         #endif
6845 
6846         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6847         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6848         public int CalculateSize() {
6849           int size = 0;
6850           if (_extensions != null) {
6851             size += _extensions.CalculateSize();
6852           }
6853           if (_unknownFields != null) {
6854             size += _unknownFields.CalculateSize();
6855           }
6856           return size;
6857         }
6858 
6859         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6860         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrect other)6861         public void MergeFrom(MessageSetCorrect other) {
6862           if (other == null) {
6863             return;
6864           }
6865           pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6866           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6867         }
6868 
6869         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6870         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6871         public void MergeFrom(pb::CodedInputStream input) {
6872         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6873           input.ReadRawMessage(this);
6874         #else
6875           uint tag;
6876           while ((tag = input.ReadTag()) != 0) {
6877           if ((tag & 7) == 4) {
6878             // Abort on any end group tag.
6879             return;
6880           }
6881           switch(tag) {
6882               default:
6883                 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6884                   _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6885                 }
6886                 break;
6887             }
6888           }
6889         #endif
6890         }
6891 
6892         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6893         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6894         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6895         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6896           uint tag;
6897           while ((tag = input.ReadTag()) != 0) {
6898           if ((tag & 7) == 4) {
6899             // Abort on any end group tag.
6900             return;
6901           }
6902           switch(tag) {
6903               default:
6904                 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
6905                   _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6906                 }
6907                 break;
6908             }
6909           }
6910         }
6911         #endif
6912 
GetExtension(pb::Extension<MessageSetCorrect, TValue> extension)6913         public TValue GetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
6914           return pb::ExtensionSet.Get(ref _extensions, extension);
6915         }
GetExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6916         public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
6917           return pb::ExtensionSet.Get(ref _extensions, extension);
6918         }
GetOrInitializeExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6919         public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
6920           return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
6921         }
SetExtension(pb::Extension<MessageSetCorrect, TValue> extension, TValue value)6922         public void SetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension, TValue value) {
6923           pb::ExtensionSet.Set(ref _extensions, extension, value);
6924         }
HasExtension(pb::Extension<MessageSetCorrect, TValue> extension)6925         public bool HasExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
6926           return pb::ExtensionSet.Has(ref _extensions, extension);
6927         }
ClearExtension(pb::Extension<MessageSetCorrect, TValue> extension)6928         public void ClearExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
6929           pb::ExtensionSet.Clear(ref _extensions, extension);
6930         }
ClearExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6931         public void ClearExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
6932           pb::ExtensionSet.Clear(ref _extensions, extension);
6933         }
6934 
6935       }
6936 
6937       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6938       public sealed partial class MessageSetCorrectExtension1 : pb::IMessage<MessageSetCorrectExtension1>
6939       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6940           , pb::IBufferMessage
6941       #endif
6942       {
6943         private static readonly pb::MessageParser<MessageSetCorrectExtension1> _parser = new pb::MessageParser<MessageSetCorrectExtension1>(() => new MessageSetCorrectExtension1());
6944         private pb::UnknownFieldSet _unknownFields;
6945         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6946         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6947         public static pb::MessageParser<MessageSetCorrectExtension1> Parser { get { return _parser; } }
6948 
6949         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6950         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6951         public static pbr::MessageDescriptor Descriptor {
6952           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[23]; }
6953         }
6954 
6955         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6956         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6957         pbr::MessageDescriptor pb::IMessage.Descriptor {
6958           get { return Descriptor; }
6959         }
6960 
6961         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6962         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension1()6963         public MessageSetCorrectExtension1() {
6964           OnConstruction();
6965         }
6966 
OnConstruction()6967         partial void OnConstruction();
6968 
6969         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6970         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension1(MessageSetCorrectExtension1 other)6971         public MessageSetCorrectExtension1(MessageSetCorrectExtension1 other) : this() {
6972           str_ = other.str_;
6973           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6974         }
6975 
6976         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6977         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6978         public MessageSetCorrectExtension1 Clone() {
6979           return new MessageSetCorrectExtension1(this);
6980         }
6981 
6982         /// <summary>Field number for the "str" field.</summary>
6983         public const int StrFieldNumber = 25;
6984         private readonly static string StrDefaultValue = "";
6985 
6986         private string str_;
6987         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6988         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6989         public string Str {
6990           get { return str_ ?? StrDefaultValue; }
6991           set {
6992             str_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6993           }
6994         }
6995         /// <summary>Gets whether the "str" field is set</summary>
6996         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6997         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6998         public bool HasStr {
6999           get { return str_ != null; }
7000         }
7001         /// <summary>Clears the value of the "str" field</summary>
7002         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7003         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStr()7004         public void ClearStr() {
7005           str_ = null;
7006         }
7007 
7008         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7009         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7010         public override bool Equals(object other) {
7011           return Equals(other as MessageSetCorrectExtension1);
7012         }
7013 
7014         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7015         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrectExtension1 other)7016         public bool Equals(MessageSetCorrectExtension1 other) {
7017           if (ReferenceEquals(other, null)) {
7018             return false;
7019           }
7020           if (ReferenceEquals(other, this)) {
7021             return true;
7022           }
7023           if (Str != other.Str) return false;
7024           return Equals(_unknownFields, other._unknownFields);
7025         }
7026 
7027         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7028         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7029         public override int GetHashCode() {
7030           int hash = 1;
7031           if (HasStr) hash ^= Str.GetHashCode();
7032           if (_unknownFields != null) {
7033             hash ^= _unknownFields.GetHashCode();
7034           }
7035           return hash;
7036         }
7037 
7038         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7039         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7040         public override string ToString() {
7041           return pb::JsonFormatter.ToDiagnosticString(this);
7042         }
7043 
7044         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7045         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7046         public void WriteTo(pb::CodedOutputStream output) {
7047         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7048           output.WriteRawMessage(this);
7049         #else
7050           if (HasStr) {
7051             output.WriteRawTag(202, 1);
7052             output.WriteString(Str);
7053           }
7054           if (_unknownFields != null) {
7055             _unknownFields.WriteTo(output);
7056           }
7057         #endif
7058         }
7059 
7060         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7061         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7062         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7063         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7064           if (HasStr) {
7065             output.WriteRawTag(202, 1);
7066             output.WriteString(Str);
7067           }
7068           if (_unknownFields != null) {
7069             _unknownFields.WriteTo(ref output);
7070           }
7071         }
7072         #endif
7073 
7074         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7075         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7076         public int CalculateSize() {
7077           int size = 0;
7078           if (HasStr) {
7079             size += 2 + pb::CodedOutputStream.ComputeStringSize(Str);
7080           }
7081           if (_unknownFields != null) {
7082             size += _unknownFields.CalculateSize();
7083           }
7084           return size;
7085         }
7086 
7087         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7088         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrectExtension1 other)7089         public void MergeFrom(MessageSetCorrectExtension1 other) {
7090           if (other == null) {
7091             return;
7092           }
7093           if (other.HasStr) {
7094             Str = other.Str;
7095           }
7096           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7097         }
7098 
7099         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7100         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7101         public void MergeFrom(pb::CodedInputStream input) {
7102         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7103           input.ReadRawMessage(this);
7104         #else
7105           uint tag;
7106           while ((tag = input.ReadTag()) != 0) {
7107           if ((tag & 7) == 4) {
7108             // Abort on any end group tag.
7109             return;
7110           }
7111           switch(tag) {
7112               default:
7113                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7114                 break;
7115               case 202: {
7116                 Str = input.ReadString();
7117                 break;
7118               }
7119             }
7120           }
7121         #endif
7122         }
7123 
7124         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7125         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7126         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7127         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7128           uint tag;
7129           while ((tag = input.ReadTag()) != 0) {
7130           if ((tag & 7) == 4) {
7131             // Abort on any end group tag.
7132             return;
7133           }
7134           switch(tag) {
7135               default:
7136                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7137                 break;
7138               case 202: {
7139                 Str = input.ReadString();
7140                 break;
7141               }
7142             }
7143           }
7144         }
7145         #endif
7146 
7147         #region Extensions
7148         /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.</summary>
7149         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7150         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7151         public static partial class Extensions {
7152           public static readonly pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1> MessageSetExtension =
7153             new pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1>(1547769, pb::FieldCodec.ForMessage(12382154, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser));
7154         }
7155         #endregion
7156 
7157       }
7158 
7159       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7160       public sealed partial class MessageSetCorrectExtension2 : pb::IMessage<MessageSetCorrectExtension2>
7161       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7162           , pb::IBufferMessage
7163       #endif
7164       {
7165         private static readonly pb::MessageParser<MessageSetCorrectExtension2> _parser = new pb::MessageParser<MessageSetCorrectExtension2>(() => new MessageSetCorrectExtension2());
7166         private pb::UnknownFieldSet _unknownFields;
7167         private int _hasBits0;
7168         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7169         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7170         public static pb::MessageParser<MessageSetCorrectExtension2> Parser { get { return _parser; } }
7171 
7172         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7173         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7174         public static pbr::MessageDescriptor Descriptor {
7175           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[24]; }
7176         }
7177 
7178         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7179         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7180         pbr::MessageDescriptor pb::IMessage.Descriptor {
7181           get { return Descriptor; }
7182         }
7183 
7184         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7185         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension2()7186         public MessageSetCorrectExtension2() {
7187           OnConstruction();
7188         }
7189 
OnConstruction()7190         partial void OnConstruction();
7191 
7192         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7193         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension2(MessageSetCorrectExtension2 other)7194         public MessageSetCorrectExtension2(MessageSetCorrectExtension2 other) : this() {
7195           _hasBits0 = other._hasBits0;
7196           i_ = other.i_;
7197           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7198         }
7199 
7200         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7201         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7202         public MessageSetCorrectExtension2 Clone() {
7203           return new MessageSetCorrectExtension2(this);
7204         }
7205 
7206         /// <summary>Field number for the "i" field.</summary>
7207         public const int IFieldNumber = 9;
7208         private readonly static int IDefaultValue = 0;
7209 
7210         private int i_;
7211         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7212         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7213         public int I {
7214           get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
7215           set {
7216             _hasBits0 |= 1;
7217             i_ = value;
7218           }
7219         }
7220         /// <summary>Gets whether the "i" field is set</summary>
7221         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7222         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7223         public bool HasI {
7224           get { return (_hasBits0 & 1) != 0; }
7225         }
7226         /// <summary>Clears the value of the "i" field</summary>
7227         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7228         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearI()7229         public void ClearI() {
7230           _hasBits0 &= ~1;
7231         }
7232 
7233         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7234         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7235         public override bool Equals(object other) {
7236           return Equals(other as MessageSetCorrectExtension2);
7237         }
7238 
7239         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7240         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrectExtension2 other)7241         public bool Equals(MessageSetCorrectExtension2 other) {
7242           if (ReferenceEquals(other, null)) {
7243             return false;
7244           }
7245           if (ReferenceEquals(other, this)) {
7246             return true;
7247           }
7248           if (I != other.I) return false;
7249           return Equals(_unknownFields, other._unknownFields);
7250         }
7251 
7252         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7253         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7254         public override int GetHashCode() {
7255           int hash = 1;
7256           if (HasI) hash ^= I.GetHashCode();
7257           if (_unknownFields != null) {
7258             hash ^= _unknownFields.GetHashCode();
7259           }
7260           return hash;
7261         }
7262 
7263         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7264         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7265         public override string ToString() {
7266           return pb::JsonFormatter.ToDiagnosticString(this);
7267         }
7268 
7269         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7270         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7271         public void WriteTo(pb::CodedOutputStream output) {
7272         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7273           output.WriteRawMessage(this);
7274         #else
7275           if (HasI) {
7276             output.WriteRawTag(72);
7277             output.WriteInt32(I);
7278           }
7279           if (_unknownFields != null) {
7280             _unknownFields.WriteTo(output);
7281           }
7282         #endif
7283         }
7284 
7285         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7286         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7287         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7288         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7289           if (HasI) {
7290             output.WriteRawTag(72);
7291             output.WriteInt32(I);
7292           }
7293           if (_unknownFields != null) {
7294             _unknownFields.WriteTo(ref output);
7295           }
7296         }
7297         #endif
7298 
7299         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7300         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7301         public int CalculateSize() {
7302           int size = 0;
7303           if (HasI) {
7304             size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
7305           }
7306           if (_unknownFields != null) {
7307             size += _unknownFields.CalculateSize();
7308           }
7309           return size;
7310         }
7311 
7312         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7313         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrectExtension2 other)7314         public void MergeFrom(MessageSetCorrectExtension2 other) {
7315           if (other == null) {
7316             return;
7317           }
7318           if (other.HasI) {
7319             I = other.I;
7320           }
7321           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7322         }
7323 
7324         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7325         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7326         public void MergeFrom(pb::CodedInputStream input) {
7327         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7328           input.ReadRawMessage(this);
7329         #else
7330           uint tag;
7331           while ((tag = input.ReadTag()) != 0) {
7332           if ((tag & 7) == 4) {
7333             // Abort on any end group tag.
7334             return;
7335           }
7336           switch(tag) {
7337               default:
7338                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7339                 break;
7340               case 72: {
7341                 I = input.ReadInt32();
7342                 break;
7343               }
7344             }
7345           }
7346         #endif
7347         }
7348 
7349         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7350         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7351         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7352         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7353           uint tag;
7354           while ((tag = input.ReadTag()) != 0) {
7355           if ((tag & 7) == 4) {
7356             // Abort on any end group tag.
7357             return;
7358           }
7359           switch(tag) {
7360               default:
7361                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7362                 break;
7363               case 72: {
7364                 I = input.ReadInt32();
7365                 break;
7366               }
7367             }
7368           }
7369         }
7370         #endif
7371 
7372         #region Extensions
7373         /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.</summary>
7374         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7375         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7376         public static partial class Extensions {
7377           public static readonly pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2> MessageSetExtension =
7378             new pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2>(4135312, pb::FieldCodec.ForMessage(33082498, global::ProtobufTestMessages.Editions.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser));
7379         }
7380         #endregion
7381 
7382       }
7383 
7384     }
7385     #endregion
7386 
7387   }
7388 
7389   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7390   public sealed partial class ForeignMessageProto2 : pb::IMessage<ForeignMessageProto2>
7391   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7392       , pb::IBufferMessage
7393   #endif
7394   {
7395     private static readonly pb::MessageParser<ForeignMessageProto2> _parser = new pb::MessageParser<ForeignMessageProto2>(() => new ForeignMessageProto2());
7396     private pb::UnknownFieldSet _unknownFields;
7397     private int _hasBits0;
7398     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7399     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7400     public static pb::MessageParser<ForeignMessageProto2> Parser { get { return _parser; } }
7401 
7402     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7403     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7404     public static pbr::MessageDescriptor Descriptor {
7405       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[1]; }
7406     }
7407 
7408     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7409     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7410     pbr::MessageDescriptor pb::IMessage.Descriptor {
7411       get { return Descriptor; }
7412     }
7413 
7414     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7415     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ForeignMessageProto2()7416     public ForeignMessageProto2() {
7417       OnConstruction();
7418     }
7419 
OnConstruction()7420     partial void OnConstruction();
7421 
7422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7423     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ForeignMessageProto2(ForeignMessageProto2 other)7424     public ForeignMessageProto2(ForeignMessageProto2 other) : this() {
7425       _hasBits0 = other._hasBits0;
7426       c_ = other.c_;
7427       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7428     }
7429 
7430     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7431     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7432     public ForeignMessageProto2 Clone() {
7433       return new ForeignMessageProto2(this);
7434     }
7435 
7436     /// <summary>Field number for the "c" field.</summary>
7437     public const int CFieldNumber = 1;
7438     private readonly static int CDefaultValue = 0;
7439 
7440     private int c_;
7441     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7442     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7443     public int C {
7444       get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } }
7445       set {
7446         _hasBits0 |= 1;
7447         c_ = value;
7448       }
7449     }
7450     /// <summary>Gets whether the "c" field is set</summary>
7451     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7452     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7453     public bool HasC {
7454       get { return (_hasBits0 & 1) != 0; }
7455     }
7456     /// <summary>Clears the value of the "c" field</summary>
7457     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7458     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearC()7459     public void ClearC() {
7460       _hasBits0 &= ~1;
7461     }
7462 
7463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7465     public override bool Equals(object other) {
7466       return Equals(other as ForeignMessageProto2);
7467     }
7468 
7469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ForeignMessageProto2 other)7471     public bool Equals(ForeignMessageProto2 other) {
7472       if (ReferenceEquals(other, null)) {
7473         return false;
7474       }
7475       if (ReferenceEquals(other, this)) {
7476         return true;
7477       }
7478       if (C != other.C) return false;
7479       return Equals(_unknownFields, other._unknownFields);
7480     }
7481 
7482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7483     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7484     public override int GetHashCode() {
7485       int hash = 1;
7486       if (HasC) hash ^= C.GetHashCode();
7487       if (_unknownFields != null) {
7488         hash ^= _unknownFields.GetHashCode();
7489       }
7490       return hash;
7491     }
7492 
7493     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7494     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7495     public override string ToString() {
7496       return pb::JsonFormatter.ToDiagnosticString(this);
7497     }
7498 
7499     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7500     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7501     public void WriteTo(pb::CodedOutputStream output) {
7502     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7503       output.WriteRawMessage(this);
7504     #else
7505       if (HasC) {
7506         output.WriteRawTag(8);
7507         output.WriteInt32(C);
7508       }
7509       if (_unknownFields != null) {
7510         _unknownFields.WriteTo(output);
7511       }
7512     #endif
7513     }
7514 
7515     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7517     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7518     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7519       if (HasC) {
7520         output.WriteRawTag(8);
7521         output.WriteInt32(C);
7522       }
7523       if (_unknownFields != null) {
7524         _unknownFields.WriteTo(ref output);
7525       }
7526     }
7527     #endif
7528 
7529     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7530     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7531     public int CalculateSize() {
7532       int size = 0;
7533       if (HasC) {
7534         size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
7535       }
7536       if (_unknownFields != null) {
7537         size += _unknownFields.CalculateSize();
7538       }
7539       return size;
7540     }
7541 
7542     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7543     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ForeignMessageProto2 other)7544     public void MergeFrom(ForeignMessageProto2 other) {
7545       if (other == null) {
7546         return;
7547       }
7548       if (other.HasC) {
7549         C = other.C;
7550       }
7551       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7552     }
7553 
7554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7555     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7556     public void MergeFrom(pb::CodedInputStream input) {
7557     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7558       input.ReadRawMessage(this);
7559     #else
7560       uint tag;
7561       while ((tag = input.ReadTag()) != 0) {
7562       if ((tag & 7) == 4) {
7563         // Abort on any end group tag.
7564         return;
7565       }
7566       switch(tag) {
7567           default:
7568             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7569             break;
7570           case 8: {
7571             C = input.ReadInt32();
7572             break;
7573           }
7574         }
7575       }
7576     #endif
7577     }
7578 
7579     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7581     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7582     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7583       uint tag;
7584       while ((tag = input.ReadTag()) != 0) {
7585       if ((tag & 7) == 4) {
7586         // Abort on any end group tag.
7587         return;
7588       }
7589       switch(tag) {
7590           default:
7591             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7592             break;
7593           case 8: {
7594             C = input.ReadInt32();
7595             break;
7596           }
7597         }
7598       }
7599     }
7600     #endif
7601 
7602   }
7603 
7604   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7605   public sealed partial class GroupField : pb::IMessage<GroupField>
7606   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7607       , pb::IBufferMessage
7608   #endif
7609   {
7610     private static readonly pb::MessageParser<GroupField> _parser = new pb::MessageParser<GroupField>(() => new GroupField());
7611     private pb::UnknownFieldSet _unknownFields;
7612     private int _hasBits0;
7613     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7614     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7615     public static pb::MessageParser<GroupField> Parser { get { return _parser; } }
7616 
7617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7618     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7619     public static pbr::MessageDescriptor Descriptor {
7620       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[2]; }
7621     }
7622 
7623     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7624     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7625     pbr::MessageDescriptor pb::IMessage.Descriptor {
7626       get { return Descriptor; }
7627     }
7628 
7629     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7630     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GroupField()7631     public GroupField() {
7632       OnConstruction();
7633     }
7634 
OnConstruction()7635     partial void OnConstruction();
7636 
7637     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7638     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GroupField(GroupField other)7639     public GroupField(GroupField other) : this() {
7640       _hasBits0 = other._hasBits0;
7641       groupInt32_ = other.groupInt32_;
7642       groupUint32_ = other.groupUint32_;
7643       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7644     }
7645 
7646     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7647     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7648     public GroupField Clone() {
7649       return new GroupField(this);
7650     }
7651 
7652     /// <summary>Field number for the "group_int32" field.</summary>
7653     public const int GroupInt32FieldNumber = 122;
7654     private readonly static int GroupInt32DefaultValue = 0;
7655 
7656     private int groupInt32_;
7657     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7658     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7659     public int GroupInt32 {
7660       get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } }
7661       set {
7662         _hasBits0 |= 1;
7663         groupInt32_ = value;
7664       }
7665     }
7666     /// <summary>Gets whether the "group_int32" field is set</summary>
7667     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7668     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7669     public bool HasGroupInt32 {
7670       get { return (_hasBits0 & 1) != 0; }
7671     }
7672     /// <summary>Clears the value of the "group_int32" field</summary>
7673     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7674     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupInt32()7675     public void ClearGroupInt32() {
7676       _hasBits0 &= ~1;
7677     }
7678 
7679     /// <summary>Field number for the "group_uint32" field.</summary>
7680     public const int GroupUint32FieldNumber = 123;
7681     private readonly static uint GroupUint32DefaultValue = 0;
7682 
7683     private uint groupUint32_;
7684     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7685     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7686     public uint GroupUint32 {
7687       get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } }
7688       set {
7689         _hasBits0 |= 2;
7690         groupUint32_ = value;
7691       }
7692     }
7693     /// <summary>Gets whether the "group_uint32" field is set</summary>
7694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7695     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7696     public bool HasGroupUint32 {
7697       get { return (_hasBits0 & 2) != 0; }
7698     }
7699     /// <summary>Clears the value of the "group_uint32" field</summary>
7700     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7701     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupUint32()7702     public void ClearGroupUint32() {
7703       _hasBits0 &= ~2;
7704     }
7705 
7706     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7707     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7708     public override bool Equals(object other) {
7709       return Equals(other as GroupField);
7710     }
7711 
7712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7713     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(GroupField other)7714     public bool Equals(GroupField other) {
7715       if (ReferenceEquals(other, null)) {
7716         return false;
7717       }
7718       if (ReferenceEquals(other, this)) {
7719         return true;
7720       }
7721       if (GroupInt32 != other.GroupInt32) return false;
7722       if (GroupUint32 != other.GroupUint32) return false;
7723       return Equals(_unknownFields, other._unknownFields);
7724     }
7725 
7726     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7727     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7728     public override int GetHashCode() {
7729       int hash = 1;
7730       if (HasGroupInt32) hash ^= GroupInt32.GetHashCode();
7731       if (HasGroupUint32) hash ^= GroupUint32.GetHashCode();
7732       if (_unknownFields != null) {
7733         hash ^= _unknownFields.GetHashCode();
7734       }
7735       return hash;
7736     }
7737 
7738     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7739     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7740     public override string ToString() {
7741       return pb::JsonFormatter.ToDiagnosticString(this);
7742     }
7743 
7744     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7745     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7746     public void WriteTo(pb::CodedOutputStream output) {
7747     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7748       output.WriteRawMessage(this);
7749     #else
7750       if (HasGroupInt32) {
7751         output.WriteRawTag(208, 7);
7752         output.WriteInt32(GroupInt32);
7753       }
7754       if (HasGroupUint32) {
7755         output.WriteRawTag(216, 7);
7756         output.WriteUInt32(GroupUint32);
7757       }
7758       if (_unknownFields != null) {
7759         _unknownFields.WriteTo(output);
7760       }
7761     #endif
7762     }
7763 
7764     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7765     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7766     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7767     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7768       if (HasGroupInt32) {
7769         output.WriteRawTag(208, 7);
7770         output.WriteInt32(GroupInt32);
7771       }
7772       if (HasGroupUint32) {
7773         output.WriteRawTag(216, 7);
7774         output.WriteUInt32(GroupUint32);
7775       }
7776       if (_unknownFields != null) {
7777         _unknownFields.WriteTo(ref output);
7778       }
7779     }
7780     #endif
7781 
7782     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7783     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7784     public int CalculateSize() {
7785       int size = 0;
7786       if (HasGroupInt32) {
7787         size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32);
7788       }
7789       if (HasGroupUint32) {
7790         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32);
7791       }
7792       if (_unknownFields != null) {
7793         size += _unknownFields.CalculateSize();
7794       }
7795       return size;
7796     }
7797 
7798     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7799     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(GroupField other)7800     public void MergeFrom(GroupField other) {
7801       if (other == null) {
7802         return;
7803       }
7804       if (other.HasGroupInt32) {
7805         GroupInt32 = other.GroupInt32;
7806       }
7807       if (other.HasGroupUint32) {
7808         GroupUint32 = other.GroupUint32;
7809       }
7810       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7811     }
7812 
7813     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7814     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7815     public void MergeFrom(pb::CodedInputStream input) {
7816     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7817       input.ReadRawMessage(this);
7818     #else
7819       uint tag;
7820       while ((tag = input.ReadTag()) != 0) {
7821       if ((tag & 7) == 4) {
7822         // Abort on any end group tag.
7823         return;
7824       }
7825       switch(tag) {
7826           default:
7827             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7828             break;
7829           case 976: {
7830             GroupInt32 = input.ReadInt32();
7831             break;
7832           }
7833           case 984: {
7834             GroupUint32 = input.ReadUInt32();
7835             break;
7836           }
7837         }
7838       }
7839     #endif
7840     }
7841 
7842     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7844     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7845     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7846       uint tag;
7847       while ((tag = input.ReadTag()) != 0) {
7848       if ((tag & 7) == 4) {
7849         // Abort on any end group tag.
7850         return;
7851       }
7852       switch(tag) {
7853           default:
7854             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7855             break;
7856           case 976: {
7857             GroupInt32 = input.ReadInt32();
7858             break;
7859           }
7860           case 984: {
7861             GroupUint32 = input.ReadUInt32();
7862             break;
7863           }
7864         }
7865       }
7866     }
7867     #endif
7868 
7869   }
7870 
7871   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7872   public sealed partial class UnknownToTestAllTypes : pb::IMessage<UnknownToTestAllTypes>
7873   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7874       , pb::IBufferMessage
7875   #endif
7876   {
7877     private static readonly pb::MessageParser<UnknownToTestAllTypes> _parser = new pb::MessageParser<UnknownToTestAllTypes>(() => new UnknownToTestAllTypes());
7878     private pb::UnknownFieldSet _unknownFields;
7879     private int _hasBits0;
7880     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7881     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7882     public static pb::MessageParser<UnknownToTestAllTypes> Parser { get { return _parser; } }
7883 
7884     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7885     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7886     public static pbr::MessageDescriptor Descriptor {
7887       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[3]; }
7888     }
7889 
7890     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7891     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7892     pbr::MessageDescriptor pb::IMessage.Descriptor {
7893       get { return Descriptor; }
7894     }
7895 
7896     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7897     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
UnknownToTestAllTypes()7898     public UnknownToTestAllTypes() {
7899       OnConstruction();
7900     }
7901 
OnConstruction()7902     partial void OnConstruction();
7903 
7904     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7905     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
UnknownToTestAllTypes(UnknownToTestAllTypes other)7906     public UnknownToTestAllTypes(UnknownToTestAllTypes other) : this() {
7907       _hasBits0 = other._hasBits0;
7908       optionalInt32_ = other.optionalInt32_;
7909       optionalString_ = other.optionalString_;
7910       nestedMessage_ = other.nestedMessage_ != null ? other.nestedMessage_.Clone() : null;
7911       optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
7912       optionalBool_ = other.optionalBool_;
7913       repeatedInt32_ = other.repeatedInt32_.Clone();
7914       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7915     }
7916 
7917     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7918     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7919     public UnknownToTestAllTypes Clone() {
7920       return new UnknownToTestAllTypes(this);
7921     }
7922 
7923     /// <summary>Field number for the "optional_int32" field.</summary>
7924     public const int OptionalInt32FieldNumber = 1001;
7925     private readonly static int OptionalInt32DefaultValue = 0;
7926 
7927     private int optionalInt32_;
7928     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7929     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7930     public int OptionalInt32 {
7931       get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
7932       set {
7933         _hasBits0 |= 1;
7934         optionalInt32_ = value;
7935       }
7936     }
7937     /// <summary>Gets whether the "optional_int32" field is set</summary>
7938     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7939     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7940     public bool HasOptionalInt32 {
7941       get { return (_hasBits0 & 1) != 0; }
7942     }
7943     /// <summary>Clears the value of the "optional_int32" field</summary>
7944     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7945     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt32()7946     public void ClearOptionalInt32() {
7947       _hasBits0 &= ~1;
7948     }
7949 
7950     /// <summary>Field number for the "optional_string" field.</summary>
7951     public const int OptionalStringFieldNumber = 1002;
7952     private readonly static string OptionalStringDefaultValue = "";
7953 
7954     private string optionalString_;
7955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7956     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7957     public string OptionalString {
7958       get { return optionalString_ ?? OptionalStringDefaultValue; }
7959       set {
7960         optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7961       }
7962     }
7963     /// <summary>Gets whether the "optional_string" field is set</summary>
7964     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7965     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7966     public bool HasOptionalString {
7967       get { return optionalString_ != null; }
7968     }
7969     /// <summary>Clears the value of the "optional_string" field</summary>
7970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7971     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalString()7972     public void ClearOptionalString() {
7973       optionalString_ = null;
7974     }
7975 
7976     /// <summary>Field number for the "nested_message" field.</summary>
7977     public const int NestedMessageFieldNumber = 1003;
7978     private global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2 nestedMessage_;
7979     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7980     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7981     public global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2 NestedMessage {
7982       get { return nestedMessage_; }
7983       set {
7984         nestedMessage_ = value;
7985       }
7986     }
7987 
7988     /// <summary>Field number for the "optionalgroup" field.</summary>
7989     public const int OptionalGroupFieldNumber = 1004;
7990     private global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Types.OptionalGroup optionalGroup_;
7991     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7992     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7993     public global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Types.OptionalGroup OptionalGroup {
7994       get { return optionalGroup_; }
7995       set {
7996         optionalGroup_ = value;
7997       }
7998     }
7999     /// <summary>Gets whether the optionalgroup field is set</summary>
8000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8001     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8002     public bool HasOptionalGroup {
8003       get { return optionalGroup_ != null; }
8004     }
8005     /// <summary>Clears the value of the optionalgroup field</summary>
8006     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8007     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalGroup()8008     public void ClearOptionalGroup() {
8009       optionalGroup_ = null;
8010     }
8011 
8012     /// <summary>Field number for the "optional_bool" field.</summary>
8013     public const int OptionalBoolFieldNumber = 1006;
8014     private readonly static bool OptionalBoolDefaultValue = false;
8015 
8016     private bool optionalBool_;
8017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8019     public bool OptionalBool {
8020       get { if ((_hasBits0 & 2) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
8021       set {
8022         _hasBits0 |= 2;
8023         optionalBool_ = value;
8024       }
8025     }
8026     /// <summary>Gets whether the "optional_bool" field is set</summary>
8027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8029     public bool HasOptionalBool {
8030       get { return (_hasBits0 & 2) != 0; }
8031     }
8032     /// <summary>Clears the value of the "optional_bool" field</summary>
8033     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8034     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBool()8035     public void ClearOptionalBool() {
8036       _hasBits0 &= ~2;
8037     }
8038 
8039     /// <summary>Field number for the "repeated_int32" field.</summary>
8040     public const int RepeatedInt32FieldNumber = 1011;
8041     private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
8042         = pb::FieldCodec.ForInt32(8088);
8043     private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
8044     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8045     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8046     public pbc::RepeatedField<int> RepeatedInt32 {
8047       get { return repeatedInt32_; }
8048     }
8049 
8050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8051     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)8052     public override bool Equals(object other) {
8053       return Equals(other as UnknownToTestAllTypes);
8054     }
8055 
8056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(UnknownToTestAllTypes other)8058     public bool Equals(UnknownToTestAllTypes other) {
8059       if (ReferenceEquals(other, null)) {
8060         return false;
8061       }
8062       if (ReferenceEquals(other, this)) {
8063         return true;
8064       }
8065       if (OptionalInt32 != other.OptionalInt32) return false;
8066       if (OptionalString != other.OptionalString) return false;
8067       if (!object.Equals(NestedMessage, other.NestedMessage)) return false;
8068       if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
8069       if (OptionalBool != other.OptionalBool) return false;
8070       if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
8071       return Equals(_unknownFields, other._unknownFields);
8072     }
8073 
8074     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8075     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()8076     public override int GetHashCode() {
8077       int hash = 1;
8078       if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
8079       if (HasOptionalString) hash ^= OptionalString.GetHashCode();
8080       if (nestedMessage_ != null) hash ^= NestedMessage.GetHashCode();
8081       if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
8082       if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
8083       hash ^= repeatedInt32_.GetHashCode();
8084       if (_unknownFields != null) {
8085         hash ^= _unknownFields.GetHashCode();
8086       }
8087       return hash;
8088     }
8089 
8090     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8091     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8092     public override string ToString() {
8093       return pb::JsonFormatter.ToDiagnosticString(this);
8094     }
8095 
8096     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8097     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8098     public void WriteTo(pb::CodedOutputStream output) {
8099     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8100       output.WriteRawMessage(this);
8101     #else
8102       if (HasOptionalInt32) {
8103         output.WriteRawTag(200, 62);
8104         output.WriteInt32(OptionalInt32);
8105       }
8106       if (HasOptionalString) {
8107         output.WriteRawTag(210, 62);
8108         output.WriteString(OptionalString);
8109       }
8110       if (nestedMessage_ != null) {
8111         output.WriteRawTag(218, 62);
8112         output.WriteMessage(NestedMessage);
8113       }
8114       if (HasOptionalGroup) {
8115         output.WriteRawTag(227, 62);
8116         output.WriteGroup(OptionalGroup);
8117         output.WriteRawTag(228, 62);
8118       }
8119       if (HasOptionalBool) {
8120         output.WriteRawTag(240, 62);
8121         output.WriteBool(OptionalBool);
8122       }
8123       repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
8124       if (_unknownFields != null) {
8125         _unknownFields.WriteTo(output);
8126       }
8127     #endif
8128     }
8129 
8130     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8132     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8133     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8134       if (HasOptionalInt32) {
8135         output.WriteRawTag(200, 62);
8136         output.WriteInt32(OptionalInt32);
8137       }
8138       if (HasOptionalString) {
8139         output.WriteRawTag(210, 62);
8140         output.WriteString(OptionalString);
8141       }
8142       if (nestedMessage_ != null) {
8143         output.WriteRawTag(218, 62);
8144         output.WriteMessage(NestedMessage);
8145       }
8146       if (HasOptionalGroup) {
8147         output.WriteRawTag(227, 62);
8148         output.WriteGroup(OptionalGroup);
8149         output.WriteRawTag(228, 62);
8150       }
8151       if (HasOptionalBool) {
8152         output.WriteRawTag(240, 62);
8153         output.WriteBool(OptionalBool);
8154       }
8155       repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
8156       if (_unknownFields != null) {
8157         _unknownFields.WriteTo(ref output);
8158       }
8159     }
8160     #endif
8161 
8162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8163     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()8164     public int CalculateSize() {
8165       int size = 0;
8166       if (HasOptionalInt32) {
8167         size += 2 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
8168       }
8169       if (HasOptionalString) {
8170         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
8171       }
8172       if (nestedMessage_ != null) {
8173         size += 2 + pb::CodedOutputStream.ComputeMessageSize(NestedMessage);
8174       }
8175       if (HasOptionalGroup) {
8176         size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
8177       }
8178       if (HasOptionalBool) {
8179         size += 2 + 1;
8180       }
8181       size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
8182       if (_unknownFields != null) {
8183         size += _unknownFields.CalculateSize();
8184       }
8185       return size;
8186     }
8187 
8188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8189     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(UnknownToTestAllTypes other)8190     public void MergeFrom(UnknownToTestAllTypes other) {
8191       if (other == null) {
8192         return;
8193       }
8194       if (other.HasOptionalInt32) {
8195         OptionalInt32 = other.OptionalInt32;
8196       }
8197       if (other.HasOptionalString) {
8198         OptionalString = other.OptionalString;
8199       }
8200       if (other.nestedMessage_ != null) {
8201         if (nestedMessage_ == null) {
8202           NestedMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
8203         }
8204         NestedMessage.MergeFrom(other.NestedMessage);
8205       }
8206       if (other.HasOptionalGroup) {
8207         if (!HasOptionalGroup) {
8208           OptionalGroup = new global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
8209         }
8210         OptionalGroup.MergeFrom(other.OptionalGroup);
8211       }
8212       if (other.HasOptionalBool) {
8213         OptionalBool = other.OptionalBool;
8214       }
8215       repeatedInt32_.Add(other.repeatedInt32_);
8216       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8217     }
8218 
8219     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8220     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)8221     public void MergeFrom(pb::CodedInputStream input) {
8222     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8223       input.ReadRawMessage(this);
8224     #else
8225       uint tag;
8226       while ((tag = input.ReadTag()) != 0) {
8227       if ((tag & 7) == 4) {
8228         // Abort on any end group tag.
8229         return;
8230       }
8231       switch(tag) {
8232           default:
8233             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8234             break;
8235           case 8008: {
8236             OptionalInt32 = input.ReadInt32();
8237             break;
8238           }
8239           case 8018: {
8240             OptionalString = input.ReadString();
8241             break;
8242           }
8243           case 8026: {
8244             if (nestedMessage_ == null) {
8245               NestedMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
8246             }
8247             input.ReadMessage(NestedMessage);
8248             break;
8249           }
8250           case 8035: {
8251             if (!HasOptionalGroup) {
8252               OptionalGroup = new global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
8253             }
8254             input.ReadGroup(OptionalGroup);
8255             break;
8256           }
8257           case 8048: {
8258             OptionalBool = input.ReadBool();
8259             break;
8260           }
8261           case 8090:
8262           case 8088: {
8263             repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
8264             break;
8265           }
8266         }
8267       }
8268     #endif
8269     }
8270 
8271     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8272     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8273     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8274     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8275       uint tag;
8276       while ((tag = input.ReadTag()) != 0) {
8277       if ((tag & 7) == 4) {
8278         // Abort on any end group tag.
8279         return;
8280       }
8281       switch(tag) {
8282           default:
8283             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8284             break;
8285           case 8008: {
8286             OptionalInt32 = input.ReadInt32();
8287             break;
8288           }
8289           case 8018: {
8290             OptionalString = input.ReadString();
8291             break;
8292           }
8293           case 8026: {
8294             if (nestedMessage_ == null) {
8295               NestedMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
8296             }
8297             input.ReadMessage(NestedMessage);
8298             break;
8299           }
8300           case 8035: {
8301             if (!HasOptionalGroup) {
8302               OptionalGroup = new global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
8303             }
8304             input.ReadGroup(OptionalGroup);
8305             break;
8306           }
8307           case 8048: {
8308             OptionalBool = input.ReadBool();
8309             break;
8310           }
8311           case 8090:
8312           case 8088: {
8313             repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
8314             break;
8315           }
8316         }
8317       }
8318     }
8319     #endif
8320 
8321     #region Nested types
8322     /// <summary>Container for nested types declared in the UnknownToTestAllTypes message type.</summary>
8323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8324     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8325     public static partial class Types {
8326       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8327       public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
8328       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8329           , pb::IBufferMessage
8330       #endif
8331       {
8332         private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
8333         private pb::UnknownFieldSet _unknownFields;
8334         private int _hasBits0;
8335         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8336         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8337         public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
8338 
8339         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8340         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8341         public static pbr::MessageDescriptor Descriptor {
8342           get { return global::ProtobufTestMessages.Editions.Proto2.UnknownToTestAllTypes.Descriptor.NestedTypes[0]; }
8343         }
8344 
8345         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8346         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8347         pbr::MessageDescriptor pb::IMessage.Descriptor {
8348           get { return Descriptor; }
8349         }
8350 
8351         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8352         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup()8353         public OptionalGroup() {
8354           OnConstruction();
8355         }
8356 
OnConstruction()8357         partial void OnConstruction();
8358 
8359         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8360         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup(OptionalGroup other)8361         public OptionalGroup(OptionalGroup other) : this() {
8362           _hasBits0 = other._hasBits0;
8363           a_ = other.a_;
8364           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8365         }
8366 
8367         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8368         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()8369         public OptionalGroup Clone() {
8370           return new OptionalGroup(this);
8371         }
8372 
8373         /// <summary>Field number for the "a" field.</summary>
8374         public const int AFieldNumber = 1;
8375         private readonly static int ADefaultValue = 0;
8376 
8377         private int a_;
8378         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8379         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8380         public int A {
8381           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
8382           set {
8383             _hasBits0 |= 1;
8384             a_ = value;
8385           }
8386         }
8387         /// <summary>Gets whether the "a" field is set</summary>
8388         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8389         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8390         public bool HasA {
8391           get { return (_hasBits0 & 1) != 0; }
8392         }
8393         /// <summary>Clears the value of the "a" field</summary>
8394         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8395         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()8396         public void ClearA() {
8397           _hasBits0 &= ~1;
8398         }
8399 
8400         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8401         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)8402         public override bool Equals(object other) {
8403           return Equals(other as OptionalGroup);
8404         }
8405 
8406         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8407         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup other)8408         public bool Equals(OptionalGroup other) {
8409           if (ReferenceEquals(other, null)) {
8410             return false;
8411           }
8412           if (ReferenceEquals(other, this)) {
8413             return true;
8414           }
8415           if (A != other.A) return false;
8416           return Equals(_unknownFields, other._unknownFields);
8417         }
8418 
8419         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8420         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()8421         public override int GetHashCode() {
8422           int hash = 1;
8423           if (HasA) hash ^= A.GetHashCode();
8424           if (_unknownFields != null) {
8425             hash ^= _unknownFields.GetHashCode();
8426           }
8427           return hash;
8428         }
8429 
8430         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8431         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8432         public override string ToString() {
8433           return pb::JsonFormatter.ToDiagnosticString(this);
8434         }
8435 
8436         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8437         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8438         public void WriteTo(pb::CodedOutputStream output) {
8439         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8440           output.WriteRawMessage(this);
8441         #else
8442           if (HasA) {
8443             output.WriteRawTag(8);
8444             output.WriteInt32(A);
8445           }
8446           if (_unknownFields != null) {
8447             _unknownFields.WriteTo(output);
8448           }
8449         #endif
8450         }
8451 
8452         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8453         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8454         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8455         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8456           if (HasA) {
8457             output.WriteRawTag(8);
8458             output.WriteInt32(A);
8459           }
8460           if (_unknownFields != null) {
8461             _unknownFields.WriteTo(ref output);
8462           }
8463         }
8464         #endif
8465 
8466         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8467         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()8468         public int CalculateSize() {
8469           int size = 0;
8470           if (HasA) {
8471             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
8472           }
8473           if (_unknownFields != null) {
8474             size += _unknownFields.CalculateSize();
8475           }
8476           return size;
8477         }
8478 
8479         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8480         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup other)8481         public void MergeFrom(OptionalGroup other) {
8482           if (other == null) {
8483             return;
8484           }
8485           if (other.HasA) {
8486             A = other.A;
8487           }
8488           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8489         }
8490 
8491         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8492         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)8493         public void MergeFrom(pb::CodedInputStream input) {
8494         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8495           input.ReadRawMessage(this);
8496         #else
8497           uint tag;
8498           while ((tag = input.ReadTag()) != 0) {
8499           if ((tag & 7) == 4) {
8500             // Abort on any end group tag.
8501             return;
8502           }
8503           switch(tag) {
8504               default:
8505                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8506                 break;
8507               case 8: {
8508                 A = input.ReadInt32();
8509                 break;
8510               }
8511             }
8512           }
8513         #endif
8514         }
8515 
8516         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8517         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8518         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8519         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8520           uint tag;
8521           while ((tag = input.ReadTag()) != 0) {
8522           if ((tag & 7) == 4) {
8523             // Abort on any end group tag.
8524             return;
8525           }
8526           switch(tag) {
8527               default:
8528                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8529                 break;
8530               case 8: {
8531                 A = input.ReadInt32();
8532                 break;
8533               }
8534             }
8535           }
8536         }
8537         #endif
8538 
8539       }
8540 
8541     }
8542     #endregion
8543 
8544   }
8545 
8546   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8547   public sealed partial class NullHypothesisProto2 : pb::IMessage<NullHypothesisProto2>
8548   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8549       , pb::IBufferMessage
8550   #endif
8551   {
8552     private static readonly pb::MessageParser<NullHypothesisProto2> _parser = new pb::MessageParser<NullHypothesisProto2>(() => new NullHypothesisProto2());
8553     private pb::UnknownFieldSet _unknownFields;
8554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8555     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8556     public static pb::MessageParser<NullHypothesisProto2> Parser { get { return _parser; } }
8557 
8558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8559     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8560     public static pbr::MessageDescriptor Descriptor {
8561       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[4]; }
8562     }
8563 
8564     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8565     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8566     pbr::MessageDescriptor pb::IMessage.Descriptor {
8567       get { return Descriptor; }
8568     }
8569 
8570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8571     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NullHypothesisProto2()8572     public NullHypothesisProto2() {
8573       OnConstruction();
8574     }
8575 
OnConstruction()8576     partial void OnConstruction();
8577 
8578     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8579     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NullHypothesisProto2(NullHypothesisProto2 other)8580     public NullHypothesisProto2(NullHypothesisProto2 other) : this() {
8581       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8582     }
8583 
8584     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8585     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()8586     public NullHypothesisProto2 Clone() {
8587       return new NullHypothesisProto2(this);
8588     }
8589 
8590     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8591     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)8592     public override bool Equals(object other) {
8593       return Equals(other as NullHypothesisProto2);
8594     }
8595 
8596     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8597     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NullHypothesisProto2 other)8598     public bool Equals(NullHypothesisProto2 other) {
8599       if (ReferenceEquals(other, null)) {
8600         return false;
8601       }
8602       if (ReferenceEquals(other, this)) {
8603         return true;
8604       }
8605       return Equals(_unknownFields, other._unknownFields);
8606     }
8607 
8608     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8609     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()8610     public override int GetHashCode() {
8611       int hash = 1;
8612       if (_unknownFields != null) {
8613         hash ^= _unknownFields.GetHashCode();
8614       }
8615       return hash;
8616     }
8617 
8618     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8619     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8620     public override string ToString() {
8621       return pb::JsonFormatter.ToDiagnosticString(this);
8622     }
8623 
8624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8625     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8626     public void WriteTo(pb::CodedOutputStream output) {
8627     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8628       output.WriteRawMessage(this);
8629     #else
8630       if (_unknownFields != null) {
8631         _unknownFields.WriteTo(output);
8632       }
8633     #endif
8634     }
8635 
8636     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8637     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8638     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8639     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8640       if (_unknownFields != null) {
8641         _unknownFields.WriteTo(ref output);
8642       }
8643     }
8644     #endif
8645 
8646     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8647     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()8648     public int CalculateSize() {
8649       int size = 0;
8650       if (_unknownFields != null) {
8651         size += _unknownFields.CalculateSize();
8652       }
8653       return size;
8654     }
8655 
8656     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8657     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NullHypothesisProto2 other)8658     public void MergeFrom(NullHypothesisProto2 other) {
8659       if (other == null) {
8660         return;
8661       }
8662       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8663     }
8664 
8665     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8666     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)8667     public void MergeFrom(pb::CodedInputStream input) {
8668     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8669       input.ReadRawMessage(this);
8670     #else
8671       uint tag;
8672       while ((tag = input.ReadTag()) != 0) {
8673       if ((tag & 7) == 4) {
8674         // Abort on any end group tag.
8675         return;
8676       }
8677       switch(tag) {
8678           default:
8679             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8680             break;
8681         }
8682       }
8683     #endif
8684     }
8685 
8686     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8687     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8688     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8689     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8690       uint tag;
8691       while ((tag = input.ReadTag()) != 0) {
8692       if ((tag & 7) == 4) {
8693         // Abort on any end group tag.
8694         return;
8695       }
8696       switch(tag) {
8697           default:
8698             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8699             break;
8700         }
8701       }
8702     }
8703     #endif
8704 
8705   }
8706 
8707   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8708   public sealed partial class EnumOnlyProto2 : pb::IMessage<EnumOnlyProto2>
8709   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8710       , pb::IBufferMessage
8711   #endif
8712   {
8713     private static readonly pb::MessageParser<EnumOnlyProto2> _parser = new pb::MessageParser<EnumOnlyProto2>(() => new EnumOnlyProto2());
8714     private pb::UnknownFieldSet _unknownFields;
8715     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8716     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8717     public static pb::MessageParser<EnumOnlyProto2> Parser { get { return _parser; } }
8718 
8719     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8720     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8721     public static pbr::MessageDescriptor Descriptor {
8722       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[5]; }
8723     }
8724 
8725     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8726     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8727     pbr::MessageDescriptor pb::IMessage.Descriptor {
8728       get { return Descriptor; }
8729     }
8730 
8731     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8732     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumOnlyProto2()8733     public EnumOnlyProto2() {
8734       OnConstruction();
8735     }
8736 
OnConstruction()8737     partial void OnConstruction();
8738 
8739     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8740     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumOnlyProto2(EnumOnlyProto2 other)8741     public EnumOnlyProto2(EnumOnlyProto2 other) : this() {
8742       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8743     }
8744 
8745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8746     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()8747     public EnumOnlyProto2 Clone() {
8748       return new EnumOnlyProto2(this);
8749     }
8750 
8751     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8752     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)8753     public override bool Equals(object other) {
8754       return Equals(other as EnumOnlyProto2);
8755     }
8756 
8757     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8758     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EnumOnlyProto2 other)8759     public bool Equals(EnumOnlyProto2 other) {
8760       if (ReferenceEquals(other, null)) {
8761         return false;
8762       }
8763       if (ReferenceEquals(other, this)) {
8764         return true;
8765       }
8766       return Equals(_unknownFields, other._unknownFields);
8767     }
8768 
8769     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8770     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()8771     public override int GetHashCode() {
8772       int hash = 1;
8773       if (_unknownFields != null) {
8774         hash ^= _unknownFields.GetHashCode();
8775       }
8776       return hash;
8777     }
8778 
8779     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8780     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8781     public override string ToString() {
8782       return pb::JsonFormatter.ToDiagnosticString(this);
8783     }
8784 
8785     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8786     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8787     public void WriteTo(pb::CodedOutputStream output) {
8788     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8789       output.WriteRawMessage(this);
8790     #else
8791       if (_unknownFields != null) {
8792         _unknownFields.WriteTo(output);
8793       }
8794     #endif
8795     }
8796 
8797     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8798     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8799     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8800     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8801       if (_unknownFields != null) {
8802         _unknownFields.WriteTo(ref output);
8803       }
8804     }
8805     #endif
8806 
8807     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8808     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()8809     public int CalculateSize() {
8810       int size = 0;
8811       if (_unknownFields != null) {
8812         size += _unknownFields.CalculateSize();
8813       }
8814       return size;
8815     }
8816 
8817     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8818     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EnumOnlyProto2 other)8819     public void MergeFrom(EnumOnlyProto2 other) {
8820       if (other == null) {
8821         return;
8822       }
8823       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8824     }
8825 
8826     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8827     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)8828     public void MergeFrom(pb::CodedInputStream input) {
8829     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8830       input.ReadRawMessage(this);
8831     #else
8832       uint tag;
8833       while ((tag = input.ReadTag()) != 0) {
8834       if ((tag & 7) == 4) {
8835         // Abort on any end group tag.
8836         return;
8837       }
8838       switch(tag) {
8839           default:
8840             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8841             break;
8842         }
8843       }
8844     #endif
8845     }
8846 
8847     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8848     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8849     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8850     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8851       uint tag;
8852       while ((tag = input.ReadTag()) != 0) {
8853       if ((tag & 7) == 4) {
8854         // Abort on any end group tag.
8855         return;
8856       }
8857       switch(tag) {
8858           default:
8859             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8860             break;
8861         }
8862       }
8863     }
8864     #endif
8865 
8866     #region Nested types
8867     /// <summary>Container for nested types declared in the EnumOnlyProto2 message type.</summary>
8868     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8869     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8870     public static partial class Types {
8871       public enum Bool {
8872         [pbr::OriginalName("kFalse")] KFalse = 0,
8873         [pbr::OriginalName("kTrue")] KTrue = 1,
8874       }
8875 
8876     }
8877     #endregion
8878 
8879   }
8880 
8881   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8882   public sealed partial class OneStringProto2 : pb::IMessage<OneStringProto2>
8883   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8884       , pb::IBufferMessage
8885   #endif
8886   {
8887     private static readonly pb::MessageParser<OneStringProto2> _parser = new pb::MessageParser<OneStringProto2>(() => new OneStringProto2());
8888     private pb::UnknownFieldSet _unknownFields;
8889     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8890     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8891     public static pb::MessageParser<OneStringProto2> Parser { get { return _parser; } }
8892 
8893     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8894     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8895     public static pbr::MessageDescriptor Descriptor {
8896       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[6]; }
8897     }
8898 
8899     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8900     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8901     pbr::MessageDescriptor pb::IMessage.Descriptor {
8902       get { return Descriptor; }
8903     }
8904 
8905     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8906     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneStringProto2()8907     public OneStringProto2() {
8908       OnConstruction();
8909     }
8910 
OnConstruction()8911     partial void OnConstruction();
8912 
8913     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8914     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneStringProto2(OneStringProto2 other)8915     public OneStringProto2(OneStringProto2 other) : this() {
8916       data_ = other.data_;
8917       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8918     }
8919 
8920     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8921     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()8922     public OneStringProto2 Clone() {
8923       return new OneStringProto2(this);
8924     }
8925 
8926     /// <summary>Field number for the "data" field.</summary>
8927     public const int DataFieldNumber = 1;
8928     private readonly static string DataDefaultValue = "";
8929 
8930     private string data_;
8931     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8932     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8933     public string Data {
8934       get { return data_ ?? DataDefaultValue; }
8935       set {
8936         data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
8937       }
8938     }
8939     /// <summary>Gets whether the "data" field is set</summary>
8940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8941     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8942     public bool HasData {
8943       get { return data_ != null; }
8944     }
8945     /// <summary>Clears the value of the "data" field</summary>
8946     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8947     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()8948     public void ClearData() {
8949       data_ = null;
8950     }
8951 
8952     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8953     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)8954     public override bool Equals(object other) {
8955       return Equals(other as OneStringProto2);
8956     }
8957 
8958     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8959     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OneStringProto2 other)8960     public bool Equals(OneStringProto2 other) {
8961       if (ReferenceEquals(other, null)) {
8962         return false;
8963       }
8964       if (ReferenceEquals(other, this)) {
8965         return true;
8966       }
8967       if (Data != other.Data) return false;
8968       return Equals(_unknownFields, other._unknownFields);
8969     }
8970 
8971     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8972     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()8973     public override int GetHashCode() {
8974       int hash = 1;
8975       if (HasData) hash ^= Data.GetHashCode();
8976       if (_unknownFields != null) {
8977         hash ^= _unknownFields.GetHashCode();
8978       }
8979       return hash;
8980     }
8981 
8982     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8983     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8984     public override string ToString() {
8985       return pb::JsonFormatter.ToDiagnosticString(this);
8986     }
8987 
8988     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8989     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8990     public void WriteTo(pb::CodedOutputStream output) {
8991     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8992       output.WriteRawMessage(this);
8993     #else
8994       if (HasData) {
8995         output.WriteRawTag(10);
8996         output.WriteString(Data);
8997       }
8998       if (_unknownFields != null) {
8999         _unknownFields.WriteTo(output);
9000       }
9001     #endif
9002     }
9003 
9004     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9005     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9006     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9007     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9008       if (HasData) {
9009         output.WriteRawTag(10);
9010         output.WriteString(Data);
9011       }
9012       if (_unknownFields != null) {
9013         _unknownFields.WriteTo(ref output);
9014       }
9015     }
9016     #endif
9017 
9018     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9019     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()9020     public int CalculateSize() {
9021       int size = 0;
9022       if (HasData) {
9023         size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
9024       }
9025       if (_unknownFields != null) {
9026         size += _unknownFields.CalculateSize();
9027       }
9028       return size;
9029     }
9030 
9031     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9032     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OneStringProto2 other)9033     public void MergeFrom(OneStringProto2 other) {
9034       if (other == null) {
9035         return;
9036       }
9037       if (other.HasData) {
9038         Data = other.Data;
9039       }
9040       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9041     }
9042 
9043     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9044     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)9045     public void MergeFrom(pb::CodedInputStream input) {
9046     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9047       input.ReadRawMessage(this);
9048     #else
9049       uint tag;
9050       while ((tag = input.ReadTag()) != 0) {
9051       if ((tag & 7) == 4) {
9052         // Abort on any end group tag.
9053         return;
9054       }
9055       switch(tag) {
9056           default:
9057             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9058             break;
9059           case 10: {
9060             Data = input.ReadString();
9061             break;
9062           }
9063         }
9064       }
9065     #endif
9066     }
9067 
9068     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9069     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9070     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9071     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
9072       uint tag;
9073       while ((tag = input.ReadTag()) != 0) {
9074       if ((tag & 7) == 4) {
9075         // Abort on any end group tag.
9076         return;
9077       }
9078       switch(tag) {
9079           default:
9080             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
9081             break;
9082           case 10: {
9083             Data = input.ReadString();
9084             break;
9085           }
9086         }
9087       }
9088     }
9089     #endif
9090 
9091   }
9092 
9093   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
9094   public sealed partial class ProtoWithKeywords : pb::IMessage<ProtoWithKeywords>
9095   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9096       , pb::IBufferMessage
9097   #endif
9098   {
9099     private static readonly pb::MessageParser<ProtoWithKeywords> _parser = new pb::MessageParser<ProtoWithKeywords>(() => new ProtoWithKeywords());
9100     private pb::UnknownFieldSet _unknownFields;
9101     private int _hasBits0;
9102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9103     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9104     public static pb::MessageParser<ProtoWithKeywords> Parser { get { return _parser; } }
9105 
9106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9108     public static pbr::MessageDescriptor Descriptor {
9109       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[7]; }
9110     }
9111 
9112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9113     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9114     pbr::MessageDescriptor pb::IMessage.Descriptor {
9115       get { return Descriptor; }
9116     }
9117 
9118     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9119     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ProtoWithKeywords()9120     public ProtoWithKeywords() {
9121       OnConstruction();
9122     }
9123 
OnConstruction()9124     partial void OnConstruction();
9125 
9126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9127     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ProtoWithKeywords(ProtoWithKeywords other)9128     public ProtoWithKeywords(ProtoWithKeywords other) : this() {
9129       _hasBits0 = other._hasBits0;
9130       inline_ = other.inline_;
9131       concept_ = other.concept_;
9132       requires_ = other.requires_.Clone();
9133       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9134     }
9135 
9136     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9137     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()9138     public ProtoWithKeywords Clone() {
9139       return new ProtoWithKeywords(this);
9140     }
9141 
9142     /// <summary>Field number for the "inline" field.</summary>
9143     public const int InlineFieldNumber = 1;
9144     private readonly static int InlineDefaultValue = 0;
9145 
9146     private int inline_;
9147     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9148     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9149     public int Inline {
9150       get { if ((_hasBits0 & 1) != 0) { return inline_; } else { return InlineDefaultValue; } }
9151       set {
9152         _hasBits0 |= 1;
9153         inline_ = value;
9154       }
9155     }
9156     /// <summary>Gets whether the "inline" field is set</summary>
9157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9158     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9159     public bool HasInline {
9160       get { return (_hasBits0 & 1) != 0; }
9161     }
9162     /// <summary>Clears the value of the "inline" field</summary>
9163     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9164     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearInline()9165     public void ClearInline() {
9166       _hasBits0 &= ~1;
9167     }
9168 
9169     /// <summary>Field number for the "concept" field.</summary>
9170     public const int ConceptFieldNumber = 2;
9171     private readonly static string ConceptDefaultValue = "";
9172 
9173     private string concept_;
9174     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9175     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9176     public string Concept {
9177       get { return concept_ ?? ConceptDefaultValue; }
9178       set {
9179         concept_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9180       }
9181     }
9182     /// <summary>Gets whether the "concept" field is set</summary>
9183     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9184     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9185     public bool HasConcept {
9186       get { return concept_ != null; }
9187     }
9188     /// <summary>Clears the value of the "concept" field</summary>
9189     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9190     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearConcept()9191     public void ClearConcept() {
9192       concept_ = null;
9193     }
9194 
9195     /// <summary>Field number for the "requires" field.</summary>
9196     public const int RequiresFieldNumber = 3;
9197     private static readonly pb::FieldCodec<string> _repeated_requires_codec
9198         = pb::FieldCodec.ForString(26);
9199     private readonly pbc::RepeatedField<string> requires_ = new pbc::RepeatedField<string>();
9200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9202     public pbc::RepeatedField<string> Requires {
9203       get { return requires_; }
9204     }
9205 
9206     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9207     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)9208     public override bool Equals(object other) {
9209       return Equals(other as ProtoWithKeywords);
9210     }
9211 
9212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9213     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ProtoWithKeywords other)9214     public bool Equals(ProtoWithKeywords other) {
9215       if (ReferenceEquals(other, null)) {
9216         return false;
9217       }
9218       if (ReferenceEquals(other, this)) {
9219         return true;
9220       }
9221       if (Inline != other.Inline) return false;
9222       if (Concept != other.Concept) return false;
9223       if(!requires_.Equals(other.requires_)) return false;
9224       return Equals(_unknownFields, other._unknownFields);
9225     }
9226 
9227     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9228     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()9229     public override int GetHashCode() {
9230       int hash = 1;
9231       if (HasInline) hash ^= Inline.GetHashCode();
9232       if (HasConcept) hash ^= Concept.GetHashCode();
9233       hash ^= requires_.GetHashCode();
9234       if (_unknownFields != null) {
9235         hash ^= _unknownFields.GetHashCode();
9236       }
9237       return hash;
9238     }
9239 
9240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9241     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()9242     public override string ToString() {
9243       return pb::JsonFormatter.ToDiagnosticString(this);
9244     }
9245 
9246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)9248     public void WriteTo(pb::CodedOutputStream output) {
9249     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9250       output.WriteRawMessage(this);
9251     #else
9252       if (HasInline) {
9253         output.WriteRawTag(8);
9254         output.WriteInt32(Inline);
9255       }
9256       if (HasConcept) {
9257         output.WriteRawTag(18);
9258         output.WriteString(Concept);
9259       }
9260       requires_.WriteTo(output, _repeated_requires_codec);
9261       if (_unknownFields != null) {
9262         _unknownFields.WriteTo(output);
9263       }
9264     #endif
9265     }
9266 
9267     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9268     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9269     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9270     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9271       if (HasInline) {
9272         output.WriteRawTag(8);
9273         output.WriteInt32(Inline);
9274       }
9275       if (HasConcept) {
9276         output.WriteRawTag(18);
9277         output.WriteString(Concept);
9278       }
9279       requires_.WriteTo(ref output, _repeated_requires_codec);
9280       if (_unknownFields != null) {
9281         _unknownFields.WriteTo(ref output);
9282       }
9283     }
9284     #endif
9285 
9286     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9287     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()9288     public int CalculateSize() {
9289       int size = 0;
9290       if (HasInline) {
9291         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Inline);
9292       }
9293       if (HasConcept) {
9294         size += 1 + pb::CodedOutputStream.ComputeStringSize(Concept);
9295       }
9296       size += requires_.CalculateSize(_repeated_requires_codec);
9297       if (_unknownFields != null) {
9298         size += _unknownFields.CalculateSize();
9299       }
9300       return size;
9301     }
9302 
9303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9304     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ProtoWithKeywords other)9305     public void MergeFrom(ProtoWithKeywords other) {
9306       if (other == null) {
9307         return;
9308       }
9309       if (other.HasInline) {
9310         Inline = other.Inline;
9311       }
9312       if (other.HasConcept) {
9313         Concept = other.Concept;
9314       }
9315       requires_.Add(other.requires_);
9316       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9317     }
9318 
9319     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9320     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)9321     public void MergeFrom(pb::CodedInputStream input) {
9322     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9323       input.ReadRawMessage(this);
9324     #else
9325       uint tag;
9326       while ((tag = input.ReadTag()) != 0) {
9327       if ((tag & 7) == 4) {
9328         // Abort on any end group tag.
9329         return;
9330       }
9331       switch(tag) {
9332           default:
9333             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9334             break;
9335           case 8: {
9336             Inline = input.ReadInt32();
9337             break;
9338           }
9339           case 18: {
9340             Concept = input.ReadString();
9341             break;
9342           }
9343           case 26: {
9344             requires_.AddEntriesFrom(input, _repeated_requires_codec);
9345             break;
9346           }
9347         }
9348       }
9349     #endif
9350     }
9351 
9352     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9353     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9354     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9355     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
9356       uint tag;
9357       while ((tag = input.ReadTag()) != 0) {
9358       if ((tag & 7) == 4) {
9359         // Abort on any end group tag.
9360         return;
9361       }
9362       switch(tag) {
9363           default:
9364             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
9365             break;
9366           case 8: {
9367             Inline = input.ReadInt32();
9368             break;
9369           }
9370           case 18: {
9371             Concept = input.ReadString();
9372             break;
9373           }
9374           case 26: {
9375             requires_.AddEntriesFrom(ref input, _repeated_requires_codec);
9376             break;
9377           }
9378         }
9379       }
9380     }
9381     #endif
9382 
9383   }
9384 
9385   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
9386   public sealed partial class TestAllRequiredTypesProto2 : pb::IExtendableMessage<TestAllRequiredTypesProto2>
9387   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9388       , pb::IBufferMessage
9389   #endif
9390   {
9391     private static readonly pb::MessageParser<TestAllRequiredTypesProto2> _parser = new pb::MessageParser<TestAllRequiredTypesProto2>(() => new TestAllRequiredTypesProto2());
9392     private pb::UnknownFieldSet _unknownFields;
9393     private pb::ExtensionSet<TestAllRequiredTypesProto2> _extensions;
9394     private pb::ExtensionSet<TestAllRequiredTypesProto2> _Extensions { get { return _extensions; } }
9395     private int _hasBits0;
9396     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9397     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9398     public static pb::MessageParser<TestAllRequiredTypesProto2> Parser { get { return _parser; } }
9399 
9400     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9401     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9402     public static pbr::MessageDescriptor Descriptor {
9403       get { return global::ProtobufTestMessages.Editions.Proto2.TestMessagesProto2EditionsReflection.Descriptor.MessageTypes[8]; }
9404     }
9405 
9406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9408     pbr::MessageDescriptor pb::IMessage.Descriptor {
9409       get { return Descriptor; }
9410     }
9411 
9412     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9413     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllRequiredTypesProto2()9414     public TestAllRequiredTypesProto2() {
9415       OnConstruction();
9416     }
9417 
OnConstruction()9418     partial void OnConstruction();
9419 
9420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllRequiredTypesProto2(TestAllRequiredTypesProto2 other)9422     public TestAllRequiredTypesProto2(TestAllRequiredTypesProto2 other) : this() {
9423       _hasBits0 = other._hasBits0;
9424       requiredInt32_ = other.requiredInt32_;
9425       requiredInt64_ = other.requiredInt64_;
9426       requiredUint32_ = other.requiredUint32_;
9427       requiredUint64_ = other.requiredUint64_;
9428       requiredSint32_ = other.requiredSint32_;
9429       requiredSint64_ = other.requiredSint64_;
9430       requiredFixed32_ = other.requiredFixed32_;
9431       requiredFixed64_ = other.requiredFixed64_;
9432       requiredSfixed32_ = other.requiredSfixed32_;
9433       requiredSfixed64_ = other.requiredSfixed64_;
9434       requiredFloat_ = other.requiredFloat_;
9435       requiredDouble_ = other.requiredDouble_;
9436       requiredBool_ = other.requiredBool_;
9437       requiredString_ = other.requiredString_;
9438       requiredBytes_ = other.requiredBytes_;
9439       requiredNestedMessage_ = other.requiredNestedMessage_ != null ? other.requiredNestedMessage_.Clone() : null;
9440       requiredForeignMessage_ = other.requiredForeignMessage_ != null ? other.requiredForeignMessage_.Clone() : null;
9441       requiredNestedEnum_ = other.requiredNestedEnum_;
9442       requiredForeignEnum_ = other.requiredForeignEnum_;
9443       requiredStringPiece_ = other.requiredStringPiece_;
9444       requiredCord_ = other.requiredCord_;
9445       recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null;
9446       optionalRecursiveMessage_ = other.optionalRecursiveMessage_ != null ? other.optionalRecursiveMessage_.Clone() : null;
9447       data_ = other.HasData ? other.data_.Clone() : null;
9448       defaultInt32_ = other.defaultInt32_;
9449       defaultInt64_ = other.defaultInt64_;
9450       defaultUint32_ = other.defaultUint32_;
9451       defaultUint64_ = other.defaultUint64_;
9452       defaultSint32_ = other.defaultSint32_;
9453       defaultSint64_ = other.defaultSint64_;
9454       defaultFixed32_ = other.defaultFixed32_;
9455       defaultFixed64_ = other.defaultFixed64_;
9456       defaultSfixed32_ = other.defaultSfixed32_;
9457       defaultSfixed64_ = other.defaultSfixed64_;
9458       defaultFloat_ = other.defaultFloat_;
9459       defaultDouble_ = other.defaultDouble_;
9460       defaultBool_ = other.defaultBool_;
9461       defaultString_ = other.defaultString_;
9462       defaultBytes_ = other.defaultBytes_;
9463       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9464       _extensions = pb::ExtensionSet.Clone(other._extensions);
9465     }
9466 
9467     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9468     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()9469     public TestAllRequiredTypesProto2 Clone() {
9470       return new TestAllRequiredTypesProto2(this);
9471     }
9472 
9473     /// <summary>Field number for the "required_int32" field.</summary>
9474     public const int RequiredInt32FieldNumber = 1;
9475     private readonly static int RequiredInt32DefaultValue = 0;
9476 
9477     private int requiredInt32_;
9478     /// <summary>
9479     /// Singular
9480     /// </summary>
9481     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9482     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9483     public int RequiredInt32 {
9484       get { if ((_hasBits0 & 1) != 0) { return requiredInt32_; } else { return RequiredInt32DefaultValue; } }
9485       set {
9486         _hasBits0 |= 1;
9487         requiredInt32_ = value;
9488       }
9489     }
9490     /// <summary>Gets whether the "required_int32" field is set</summary>
9491     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9492     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9493     public bool HasRequiredInt32 {
9494       get { return (_hasBits0 & 1) != 0; }
9495     }
9496     /// <summary>Clears the value of the "required_int32" field</summary>
9497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9498     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredInt32()9499     public void ClearRequiredInt32() {
9500       _hasBits0 &= ~1;
9501     }
9502 
9503     /// <summary>Field number for the "required_int64" field.</summary>
9504     public const int RequiredInt64FieldNumber = 2;
9505     private readonly static long RequiredInt64DefaultValue = 0L;
9506 
9507     private long requiredInt64_;
9508     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9509     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9510     public long RequiredInt64 {
9511       get { if ((_hasBits0 & 2) != 0) { return requiredInt64_; } else { return RequiredInt64DefaultValue; } }
9512       set {
9513         _hasBits0 |= 2;
9514         requiredInt64_ = value;
9515       }
9516     }
9517     /// <summary>Gets whether the "required_int64" field is set</summary>
9518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9519     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9520     public bool HasRequiredInt64 {
9521       get { return (_hasBits0 & 2) != 0; }
9522     }
9523     /// <summary>Clears the value of the "required_int64" field</summary>
9524     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9525     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredInt64()9526     public void ClearRequiredInt64() {
9527       _hasBits0 &= ~2;
9528     }
9529 
9530     /// <summary>Field number for the "required_uint32" field.</summary>
9531     public const int RequiredUint32FieldNumber = 3;
9532     private readonly static uint RequiredUint32DefaultValue = 0;
9533 
9534     private uint requiredUint32_;
9535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9536     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9537     public uint RequiredUint32 {
9538       get { if ((_hasBits0 & 4) != 0) { return requiredUint32_; } else { return RequiredUint32DefaultValue; } }
9539       set {
9540         _hasBits0 |= 4;
9541         requiredUint32_ = value;
9542       }
9543     }
9544     /// <summary>Gets whether the "required_uint32" field is set</summary>
9545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9547     public bool HasRequiredUint32 {
9548       get { return (_hasBits0 & 4) != 0; }
9549     }
9550     /// <summary>Clears the value of the "required_uint32" field</summary>
9551     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9552     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredUint32()9553     public void ClearRequiredUint32() {
9554       _hasBits0 &= ~4;
9555     }
9556 
9557     /// <summary>Field number for the "required_uint64" field.</summary>
9558     public const int RequiredUint64FieldNumber = 4;
9559     private readonly static ulong RequiredUint64DefaultValue = 0UL;
9560 
9561     private ulong requiredUint64_;
9562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9563     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9564     public ulong RequiredUint64 {
9565       get { if ((_hasBits0 & 8) != 0) { return requiredUint64_; } else { return RequiredUint64DefaultValue; } }
9566       set {
9567         _hasBits0 |= 8;
9568         requiredUint64_ = value;
9569       }
9570     }
9571     /// <summary>Gets whether the "required_uint64" field is set</summary>
9572     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9573     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9574     public bool HasRequiredUint64 {
9575       get { return (_hasBits0 & 8) != 0; }
9576     }
9577     /// <summary>Clears the value of the "required_uint64" field</summary>
9578     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9579     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredUint64()9580     public void ClearRequiredUint64() {
9581       _hasBits0 &= ~8;
9582     }
9583 
9584     /// <summary>Field number for the "required_sint32" field.</summary>
9585     public const int RequiredSint32FieldNumber = 5;
9586     private readonly static int RequiredSint32DefaultValue = 0;
9587 
9588     private int requiredSint32_;
9589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9590     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9591     public int RequiredSint32 {
9592       get { if ((_hasBits0 & 16) != 0) { return requiredSint32_; } else { return RequiredSint32DefaultValue; } }
9593       set {
9594         _hasBits0 |= 16;
9595         requiredSint32_ = value;
9596       }
9597     }
9598     /// <summary>Gets whether the "required_sint32" field is set</summary>
9599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9601     public bool HasRequiredSint32 {
9602       get { return (_hasBits0 & 16) != 0; }
9603     }
9604     /// <summary>Clears the value of the "required_sint32" field</summary>
9605     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9606     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredSint32()9607     public void ClearRequiredSint32() {
9608       _hasBits0 &= ~16;
9609     }
9610 
9611     /// <summary>Field number for the "required_sint64" field.</summary>
9612     public const int RequiredSint64FieldNumber = 6;
9613     private readonly static long RequiredSint64DefaultValue = 0L;
9614 
9615     private long requiredSint64_;
9616     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9617     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9618     public long RequiredSint64 {
9619       get { if ((_hasBits0 & 32) != 0) { return requiredSint64_; } else { return RequiredSint64DefaultValue; } }
9620       set {
9621         _hasBits0 |= 32;
9622         requiredSint64_ = value;
9623       }
9624     }
9625     /// <summary>Gets whether the "required_sint64" field is set</summary>
9626     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9627     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9628     public bool HasRequiredSint64 {
9629       get { return (_hasBits0 & 32) != 0; }
9630     }
9631     /// <summary>Clears the value of the "required_sint64" field</summary>
9632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9633     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredSint64()9634     public void ClearRequiredSint64() {
9635       _hasBits0 &= ~32;
9636     }
9637 
9638     /// <summary>Field number for the "required_fixed32" field.</summary>
9639     public const int RequiredFixed32FieldNumber = 7;
9640     private readonly static uint RequiredFixed32DefaultValue = 0;
9641 
9642     private uint requiredFixed32_;
9643     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9644     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9645     public uint RequiredFixed32 {
9646       get { if ((_hasBits0 & 64) != 0) { return requiredFixed32_; } else { return RequiredFixed32DefaultValue; } }
9647       set {
9648         _hasBits0 |= 64;
9649         requiredFixed32_ = value;
9650       }
9651     }
9652     /// <summary>Gets whether the "required_fixed32" field is set</summary>
9653     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9654     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9655     public bool HasRequiredFixed32 {
9656       get { return (_hasBits0 & 64) != 0; }
9657     }
9658     /// <summary>Clears the value of the "required_fixed32" field</summary>
9659     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9660     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredFixed32()9661     public void ClearRequiredFixed32() {
9662       _hasBits0 &= ~64;
9663     }
9664 
9665     /// <summary>Field number for the "required_fixed64" field.</summary>
9666     public const int RequiredFixed64FieldNumber = 8;
9667     private readonly static ulong RequiredFixed64DefaultValue = 0UL;
9668 
9669     private ulong requiredFixed64_;
9670     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9671     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9672     public ulong RequiredFixed64 {
9673       get { if ((_hasBits0 & 128) != 0) { return requiredFixed64_; } else { return RequiredFixed64DefaultValue; } }
9674       set {
9675         _hasBits0 |= 128;
9676         requiredFixed64_ = value;
9677       }
9678     }
9679     /// <summary>Gets whether the "required_fixed64" field is set</summary>
9680     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9681     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9682     public bool HasRequiredFixed64 {
9683       get { return (_hasBits0 & 128) != 0; }
9684     }
9685     /// <summary>Clears the value of the "required_fixed64" field</summary>
9686     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9687     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredFixed64()9688     public void ClearRequiredFixed64() {
9689       _hasBits0 &= ~128;
9690     }
9691 
9692     /// <summary>Field number for the "required_sfixed32" field.</summary>
9693     public const int RequiredSfixed32FieldNumber = 9;
9694     private readonly static int RequiredSfixed32DefaultValue = 0;
9695 
9696     private int requiredSfixed32_;
9697     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9698     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9699     public int RequiredSfixed32 {
9700       get { if ((_hasBits0 & 256) != 0) { return requiredSfixed32_; } else { return RequiredSfixed32DefaultValue; } }
9701       set {
9702         _hasBits0 |= 256;
9703         requiredSfixed32_ = value;
9704       }
9705     }
9706     /// <summary>Gets whether the "required_sfixed32" field is set</summary>
9707     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9708     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9709     public bool HasRequiredSfixed32 {
9710       get { return (_hasBits0 & 256) != 0; }
9711     }
9712     /// <summary>Clears the value of the "required_sfixed32" field</summary>
9713     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9714     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredSfixed32()9715     public void ClearRequiredSfixed32() {
9716       _hasBits0 &= ~256;
9717     }
9718 
9719     /// <summary>Field number for the "required_sfixed64" field.</summary>
9720     public const int RequiredSfixed64FieldNumber = 10;
9721     private readonly static long RequiredSfixed64DefaultValue = 0L;
9722 
9723     private long requiredSfixed64_;
9724     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9725     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9726     public long RequiredSfixed64 {
9727       get { if ((_hasBits0 & 512) != 0) { return requiredSfixed64_; } else { return RequiredSfixed64DefaultValue; } }
9728       set {
9729         _hasBits0 |= 512;
9730         requiredSfixed64_ = value;
9731       }
9732     }
9733     /// <summary>Gets whether the "required_sfixed64" field is set</summary>
9734     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9735     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9736     public bool HasRequiredSfixed64 {
9737       get { return (_hasBits0 & 512) != 0; }
9738     }
9739     /// <summary>Clears the value of the "required_sfixed64" field</summary>
9740     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9741     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredSfixed64()9742     public void ClearRequiredSfixed64() {
9743       _hasBits0 &= ~512;
9744     }
9745 
9746     /// <summary>Field number for the "required_float" field.</summary>
9747     public const int RequiredFloatFieldNumber = 11;
9748     private readonly static float RequiredFloatDefaultValue = 0F;
9749 
9750     private float requiredFloat_;
9751     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9752     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9753     public float RequiredFloat {
9754       get { if ((_hasBits0 & 1024) != 0) { return requiredFloat_; } else { return RequiredFloatDefaultValue; } }
9755       set {
9756         _hasBits0 |= 1024;
9757         requiredFloat_ = value;
9758       }
9759     }
9760     /// <summary>Gets whether the "required_float" field is set</summary>
9761     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9762     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9763     public bool HasRequiredFloat {
9764       get { return (_hasBits0 & 1024) != 0; }
9765     }
9766     /// <summary>Clears the value of the "required_float" field</summary>
9767     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9768     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredFloat()9769     public void ClearRequiredFloat() {
9770       _hasBits0 &= ~1024;
9771     }
9772 
9773     /// <summary>Field number for the "required_double" field.</summary>
9774     public const int RequiredDoubleFieldNumber = 12;
9775     private readonly static double RequiredDoubleDefaultValue = 0D;
9776 
9777     private double requiredDouble_;
9778     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9779     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9780     public double RequiredDouble {
9781       get { if ((_hasBits0 & 2048) != 0) { return requiredDouble_; } else { return RequiredDoubleDefaultValue; } }
9782       set {
9783         _hasBits0 |= 2048;
9784         requiredDouble_ = value;
9785       }
9786     }
9787     /// <summary>Gets whether the "required_double" field is set</summary>
9788     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9789     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9790     public bool HasRequiredDouble {
9791       get { return (_hasBits0 & 2048) != 0; }
9792     }
9793     /// <summary>Clears the value of the "required_double" field</summary>
9794     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9795     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredDouble()9796     public void ClearRequiredDouble() {
9797       _hasBits0 &= ~2048;
9798     }
9799 
9800     /// <summary>Field number for the "required_bool" field.</summary>
9801     public const int RequiredBoolFieldNumber = 13;
9802     private readonly static bool RequiredBoolDefaultValue = false;
9803 
9804     private bool requiredBool_;
9805     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9806     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9807     public bool RequiredBool {
9808       get { if ((_hasBits0 & 4096) != 0) { return requiredBool_; } else { return RequiredBoolDefaultValue; } }
9809       set {
9810         _hasBits0 |= 4096;
9811         requiredBool_ = value;
9812       }
9813     }
9814     /// <summary>Gets whether the "required_bool" field is set</summary>
9815     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9816     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9817     public bool HasRequiredBool {
9818       get { return (_hasBits0 & 4096) != 0; }
9819     }
9820     /// <summary>Clears the value of the "required_bool" field</summary>
9821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9822     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredBool()9823     public void ClearRequiredBool() {
9824       _hasBits0 &= ~4096;
9825     }
9826 
9827     /// <summary>Field number for the "required_string" field.</summary>
9828     public const int RequiredStringFieldNumber = 14;
9829     private readonly static string RequiredStringDefaultValue = "";
9830 
9831     private string requiredString_;
9832     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9833     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9834     public string RequiredString {
9835       get { return requiredString_ ?? RequiredStringDefaultValue; }
9836       set {
9837         requiredString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9838       }
9839     }
9840     /// <summary>Gets whether the "required_string" field is set</summary>
9841     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9842     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9843     public bool HasRequiredString {
9844       get { return requiredString_ != null; }
9845     }
9846     /// <summary>Clears the value of the "required_string" field</summary>
9847     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9848     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredString()9849     public void ClearRequiredString() {
9850       requiredString_ = null;
9851     }
9852 
9853     /// <summary>Field number for the "required_bytes" field.</summary>
9854     public const int RequiredBytesFieldNumber = 15;
9855     private readonly static pb::ByteString RequiredBytesDefaultValue = pb::ByteString.Empty;
9856 
9857     private pb::ByteString requiredBytes_;
9858     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9859     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9860     public pb::ByteString RequiredBytes {
9861       get { return requiredBytes_ ?? RequiredBytesDefaultValue; }
9862       set {
9863         requiredBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9864       }
9865     }
9866     /// <summary>Gets whether the "required_bytes" field is set</summary>
9867     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9868     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9869     public bool HasRequiredBytes {
9870       get { return requiredBytes_ != null; }
9871     }
9872     /// <summary>Clears the value of the "required_bytes" field</summary>
9873     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9874     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredBytes()9875     public void ClearRequiredBytes() {
9876       requiredBytes_ = null;
9877     }
9878 
9879     /// <summary>Field number for the "required_nested_message" field.</summary>
9880     public const int RequiredNestedMessageFieldNumber = 18;
9881     private global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage requiredNestedMessage_;
9882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9884     public global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage RequiredNestedMessage {
9885       get { return requiredNestedMessage_; }
9886       set {
9887         requiredNestedMessage_ = value;
9888       }
9889     }
9890 
9891     /// <summary>Field number for the "required_foreign_message" field.</summary>
9892     public const int RequiredForeignMessageFieldNumber = 19;
9893     private global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2 requiredForeignMessage_;
9894     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9895     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9896     public global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2 RequiredForeignMessage {
9897       get { return requiredForeignMessage_; }
9898       set {
9899         requiredForeignMessage_ = value;
9900       }
9901     }
9902 
9903     /// <summary>Field number for the "required_nested_enum" field.</summary>
9904     public const int RequiredNestedEnumFieldNumber = 21;
9905     private readonly static global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum RequiredNestedEnumDefaultValue = global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum.Foo;
9906 
9907     private global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum requiredNestedEnum_;
9908     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9909     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9910     public global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum RequiredNestedEnum {
9911       get { if ((_hasBits0 & 8192) != 0) { return requiredNestedEnum_; } else { return RequiredNestedEnumDefaultValue; } }
9912       set {
9913         _hasBits0 |= 8192;
9914         requiredNestedEnum_ = value;
9915       }
9916     }
9917     /// <summary>Gets whether the "required_nested_enum" field is set</summary>
9918     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9919     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9920     public bool HasRequiredNestedEnum {
9921       get { return (_hasBits0 & 8192) != 0; }
9922     }
9923     /// <summary>Clears the value of the "required_nested_enum" field</summary>
9924     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9925     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredNestedEnum()9926     public void ClearRequiredNestedEnum() {
9927       _hasBits0 &= ~8192;
9928     }
9929 
9930     /// <summary>Field number for the "required_foreign_enum" field.</summary>
9931     public const int RequiredForeignEnumFieldNumber = 22;
9932     private readonly static global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2 RequiredForeignEnumDefaultValue = global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2.ForeignFoo;
9933 
9934     private global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2 requiredForeignEnum_;
9935     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9936     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9937     public global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2 RequiredForeignEnum {
9938       get { if ((_hasBits0 & 16384) != 0) { return requiredForeignEnum_; } else { return RequiredForeignEnumDefaultValue; } }
9939       set {
9940         _hasBits0 |= 16384;
9941         requiredForeignEnum_ = value;
9942       }
9943     }
9944     /// <summary>Gets whether the "required_foreign_enum" field is set</summary>
9945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9946     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9947     public bool HasRequiredForeignEnum {
9948       get { return (_hasBits0 & 16384) != 0; }
9949     }
9950     /// <summary>Clears the value of the "required_foreign_enum" field</summary>
9951     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9952     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredForeignEnum()9953     public void ClearRequiredForeignEnum() {
9954       _hasBits0 &= ~16384;
9955     }
9956 
9957     /// <summary>Field number for the "required_string_piece" field.</summary>
9958     public const int RequiredStringPieceFieldNumber = 24;
9959     private readonly static string RequiredStringPieceDefaultValue = "";
9960 
9961     private string requiredStringPiece_;
9962     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9963     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9964     public string RequiredStringPiece {
9965       get { return requiredStringPiece_ ?? RequiredStringPieceDefaultValue; }
9966       set {
9967         requiredStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9968       }
9969     }
9970     /// <summary>Gets whether the "required_string_piece" field is set</summary>
9971     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9972     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9973     public bool HasRequiredStringPiece {
9974       get { return requiredStringPiece_ != null; }
9975     }
9976     /// <summary>Clears the value of the "required_string_piece" field</summary>
9977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredStringPiece()9979     public void ClearRequiredStringPiece() {
9980       requiredStringPiece_ = null;
9981     }
9982 
9983     /// <summary>Field number for the "required_cord" field.</summary>
9984     public const int RequiredCordFieldNumber = 25;
9985     private readonly static string RequiredCordDefaultValue = "";
9986 
9987     private string requiredCord_;
9988     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9989     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9990     public string RequiredCord {
9991       get { return requiredCord_ ?? RequiredCordDefaultValue; }
9992       set {
9993         requiredCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9994       }
9995     }
9996     /// <summary>Gets whether the "required_cord" field is set</summary>
9997     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9998     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9999     public bool HasRequiredCord {
10000       get { return requiredCord_ != null; }
10001     }
10002     /// <summary>Clears the value of the "required_cord" field</summary>
10003     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10004     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRequiredCord()10005     public void ClearRequiredCord() {
10006       requiredCord_ = null;
10007     }
10008 
10009     /// <summary>Field number for the "recursive_message" field.</summary>
10010     public const int RecursiveMessageFieldNumber = 27;
10011     private global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 recursiveMessage_;
10012     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10013     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10014     public global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 RecursiveMessage {
10015       get { return recursiveMessage_; }
10016       set {
10017         recursiveMessage_ = value;
10018       }
10019     }
10020 
10021     /// <summary>Field number for the "optional_recursive_message" field.</summary>
10022     public const int OptionalRecursiveMessageFieldNumber = 28;
10023     private global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 optionalRecursiveMessage_;
10024     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10025     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10026     public global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 OptionalRecursiveMessage {
10027       get { return optionalRecursiveMessage_; }
10028       set {
10029         optionalRecursiveMessage_ = value;
10030       }
10031     }
10032 
10033     /// <summary>Field number for the "data" field.</summary>
10034     public const int DataFieldNumber = 201;
10035     private global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.Data data_;
10036     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10037     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10038     public global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.Data Data {
10039       get { return data_; }
10040       set {
10041         data_ = value;
10042       }
10043     }
10044     /// <summary>Gets whether the data field is set</summary>
10045     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10046     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10047     public bool HasData {
10048       get { return data_ != null; }
10049     }
10050     /// <summary>Clears the value of the data field</summary>
10051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10052     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()10053     public void ClearData() {
10054       data_ = null;
10055     }
10056 
10057     /// <summary>Field number for the "default_int32" field.</summary>
10058     public const int DefaultInt32FieldNumber = 241;
10059     private readonly static int DefaultInt32DefaultValue = -123456789;
10060 
10061     private int defaultInt32_;
10062     /// <summary>
10063     /// default values
10064     /// </summary>
10065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10066     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10067     public int DefaultInt32 {
10068       get { if ((_hasBits0 & 32768) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } }
10069       set {
10070         _hasBits0 |= 32768;
10071         defaultInt32_ = value;
10072       }
10073     }
10074     /// <summary>Gets whether the "default_int32" field is set</summary>
10075     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10076     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10077     public bool HasDefaultInt32 {
10078       get { return (_hasBits0 & 32768) != 0; }
10079     }
10080     /// <summary>Clears the value of the "default_int32" field</summary>
10081     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10082     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt32()10083     public void ClearDefaultInt32() {
10084       _hasBits0 &= ~32768;
10085     }
10086 
10087     /// <summary>Field number for the "default_int64" field.</summary>
10088     public const int DefaultInt64FieldNumber = 242;
10089     private readonly static long DefaultInt64DefaultValue = -9123456789123456789L;
10090 
10091     private long defaultInt64_;
10092     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10093     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10094     public long DefaultInt64 {
10095       get { if ((_hasBits0 & 65536) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } }
10096       set {
10097         _hasBits0 |= 65536;
10098         defaultInt64_ = value;
10099       }
10100     }
10101     /// <summary>Gets whether the "default_int64" field is set</summary>
10102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10103     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10104     public bool HasDefaultInt64 {
10105       get { return (_hasBits0 & 65536) != 0; }
10106     }
10107     /// <summary>Clears the value of the "default_int64" field</summary>
10108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10109     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt64()10110     public void ClearDefaultInt64() {
10111       _hasBits0 &= ~65536;
10112     }
10113 
10114     /// <summary>Field number for the "default_uint32" field.</summary>
10115     public const int DefaultUint32FieldNumber = 243;
10116     private readonly static uint DefaultUint32DefaultValue = 2123456789;
10117 
10118     private uint defaultUint32_;
10119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10120     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10121     public uint DefaultUint32 {
10122       get { if ((_hasBits0 & 131072) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } }
10123       set {
10124         _hasBits0 |= 131072;
10125         defaultUint32_ = value;
10126       }
10127     }
10128     /// <summary>Gets whether the "default_uint32" field is set</summary>
10129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10130     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10131     public bool HasDefaultUint32 {
10132       get { return (_hasBits0 & 131072) != 0; }
10133     }
10134     /// <summary>Clears the value of the "default_uint32" field</summary>
10135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10136     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint32()10137     public void ClearDefaultUint32() {
10138       _hasBits0 &= ~131072;
10139     }
10140 
10141     /// <summary>Field number for the "default_uint64" field.</summary>
10142     public const int DefaultUint64FieldNumber = 244;
10143     private readonly static ulong DefaultUint64DefaultValue = 10123456789123456789UL;
10144 
10145     private ulong defaultUint64_;
10146     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10147     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10148     public ulong DefaultUint64 {
10149       get { if ((_hasBits0 & 262144) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } }
10150       set {
10151         _hasBits0 |= 262144;
10152         defaultUint64_ = value;
10153       }
10154     }
10155     /// <summary>Gets whether the "default_uint64" field is set</summary>
10156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10157     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10158     public bool HasDefaultUint64 {
10159       get { return (_hasBits0 & 262144) != 0; }
10160     }
10161     /// <summary>Clears the value of the "default_uint64" field</summary>
10162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10163     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint64()10164     public void ClearDefaultUint64() {
10165       _hasBits0 &= ~262144;
10166     }
10167 
10168     /// <summary>Field number for the "default_sint32" field.</summary>
10169     public const int DefaultSint32FieldNumber = 245;
10170     private readonly static int DefaultSint32DefaultValue = -123456789;
10171 
10172     private int defaultSint32_;
10173     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10174     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10175     public int DefaultSint32 {
10176       get { if ((_hasBits0 & 524288) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } }
10177       set {
10178         _hasBits0 |= 524288;
10179         defaultSint32_ = value;
10180       }
10181     }
10182     /// <summary>Gets whether the "default_sint32" field is set</summary>
10183     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10184     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10185     public bool HasDefaultSint32 {
10186       get { return (_hasBits0 & 524288) != 0; }
10187     }
10188     /// <summary>Clears the value of the "default_sint32" field</summary>
10189     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10190     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint32()10191     public void ClearDefaultSint32() {
10192       _hasBits0 &= ~524288;
10193     }
10194 
10195     /// <summary>Field number for the "default_sint64" field.</summary>
10196     public const int DefaultSint64FieldNumber = 246;
10197     private readonly static long DefaultSint64DefaultValue = -9123456789123456789L;
10198 
10199     private long defaultSint64_;
10200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10202     public long DefaultSint64 {
10203       get { if ((_hasBits0 & 1048576) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } }
10204       set {
10205         _hasBits0 |= 1048576;
10206         defaultSint64_ = value;
10207       }
10208     }
10209     /// <summary>Gets whether the "default_sint64" field is set</summary>
10210     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10211     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10212     public bool HasDefaultSint64 {
10213       get { return (_hasBits0 & 1048576) != 0; }
10214     }
10215     /// <summary>Clears the value of the "default_sint64" field</summary>
10216     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10217     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint64()10218     public void ClearDefaultSint64() {
10219       _hasBits0 &= ~1048576;
10220     }
10221 
10222     /// <summary>Field number for the "default_fixed32" field.</summary>
10223     public const int DefaultFixed32FieldNumber = 247;
10224     private readonly static uint DefaultFixed32DefaultValue = 2123456789;
10225 
10226     private uint defaultFixed32_;
10227     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10228     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10229     public uint DefaultFixed32 {
10230       get { if ((_hasBits0 & 2097152) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } }
10231       set {
10232         _hasBits0 |= 2097152;
10233         defaultFixed32_ = value;
10234       }
10235     }
10236     /// <summary>Gets whether the "default_fixed32" field is set</summary>
10237     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10238     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10239     public bool HasDefaultFixed32 {
10240       get { return (_hasBits0 & 2097152) != 0; }
10241     }
10242     /// <summary>Clears the value of the "default_fixed32" field</summary>
10243     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10244     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed32()10245     public void ClearDefaultFixed32() {
10246       _hasBits0 &= ~2097152;
10247     }
10248 
10249     /// <summary>Field number for the "default_fixed64" field.</summary>
10250     public const int DefaultFixed64FieldNumber = 248;
10251     private readonly static ulong DefaultFixed64DefaultValue = 10123456789123456789UL;
10252 
10253     private ulong defaultFixed64_;
10254     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10255     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10256     public ulong DefaultFixed64 {
10257       get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } }
10258       set {
10259         _hasBits0 |= 4194304;
10260         defaultFixed64_ = value;
10261       }
10262     }
10263     /// <summary>Gets whether the "default_fixed64" field is set</summary>
10264     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10265     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10266     public bool HasDefaultFixed64 {
10267       get { return (_hasBits0 & 4194304) != 0; }
10268     }
10269     /// <summary>Clears the value of the "default_fixed64" field</summary>
10270     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10271     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed64()10272     public void ClearDefaultFixed64() {
10273       _hasBits0 &= ~4194304;
10274     }
10275 
10276     /// <summary>Field number for the "default_sfixed32" field.</summary>
10277     public const int DefaultSfixed32FieldNumber = 249;
10278     private readonly static int DefaultSfixed32DefaultValue = -123456789;
10279 
10280     private int defaultSfixed32_;
10281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10283     public int DefaultSfixed32 {
10284       get { if ((_hasBits0 & 8388608) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } }
10285       set {
10286         _hasBits0 |= 8388608;
10287         defaultSfixed32_ = value;
10288       }
10289     }
10290     /// <summary>Gets whether the "default_sfixed32" field is set</summary>
10291     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10292     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10293     public bool HasDefaultSfixed32 {
10294       get { return (_hasBits0 & 8388608) != 0; }
10295     }
10296     /// <summary>Clears the value of the "default_sfixed32" field</summary>
10297     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10298     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed32()10299     public void ClearDefaultSfixed32() {
10300       _hasBits0 &= ~8388608;
10301     }
10302 
10303     /// <summary>Field number for the "default_sfixed64" field.</summary>
10304     public const int DefaultSfixed64FieldNumber = 250;
10305     private readonly static long DefaultSfixed64DefaultValue = -9123456789123456789L;
10306 
10307     private long defaultSfixed64_;
10308     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10309     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10310     public long DefaultSfixed64 {
10311       get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } }
10312       set {
10313         _hasBits0 |= 16777216;
10314         defaultSfixed64_ = value;
10315       }
10316     }
10317     /// <summary>Gets whether the "default_sfixed64" field is set</summary>
10318     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10319     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10320     public bool HasDefaultSfixed64 {
10321       get { return (_hasBits0 & 16777216) != 0; }
10322     }
10323     /// <summary>Clears the value of the "default_sfixed64" field</summary>
10324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10325     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed64()10326     public void ClearDefaultSfixed64() {
10327       _hasBits0 &= ~16777216;
10328     }
10329 
10330     /// <summary>Field number for the "default_float" field.</summary>
10331     public const int DefaultFloatFieldNumber = 251;
10332     private readonly static float DefaultFloatDefaultValue = 9e+09F;
10333 
10334     private float defaultFloat_;
10335     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10336     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10337     public float DefaultFloat {
10338       get { if ((_hasBits0 & 33554432) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } }
10339       set {
10340         _hasBits0 |= 33554432;
10341         defaultFloat_ = value;
10342       }
10343     }
10344     /// <summary>Gets whether the "default_float" field is set</summary>
10345     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10346     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10347     public bool HasDefaultFloat {
10348       get { return (_hasBits0 & 33554432) != 0; }
10349     }
10350     /// <summary>Clears the value of the "default_float" field</summary>
10351     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10352     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFloat()10353     public void ClearDefaultFloat() {
10354       _hasBits0 &= ~33554432;
10355     }
10356 
10357     /// <summary>Field number for the "default_double" field.</summary>
10358     public const int DefaultDoubleFieldNumber = 252;
10359     private readonly static double DefaultDoubleDefaultValue = 7e+22D;
10360 
10361     private double defaultDouble_;
10362     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10363     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10364     public double DefaultDouble {
10365       get { if ((_hasBits0 & 67108864) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } }
10366       set {
10367         _hasBits0 |= 67108864;
10368         defaultDouble_ = value;
10369       }
10370     }
10371     /// <summary>Gets whether the "default_double" field is set</summary>
10372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10373     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10374     public bool HasDefaultDouble {
10375       get { return (_hasBits0 & 67108864) != 0; }
10376     }
10377     /// <summary>Clears the value of the "default_double" field</summary>
10378     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10379     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultDouble()10380     public void ClearDefaultDouble() {
10381       _hasBits0 &= ~67108864;
10382     }
10383 
10384     /// <summary>Field number for the "default_bool" field.</summary>
10385     public const int DefaultBoolFieldNumber = 253;
10386     private readonly static bool DefaultBoolDefaultValue = true;
10387 
10388     private bool defaultBool_;
10389     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10390     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10391     public bool DefaultBool {
10392       get { if ((_hasBits0 & 134217728) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } }
10393       set {
10394         _hasBits0 |= 134217728;
10395         defaultBool_ = value;
10396       }
10397     }
10398     /// <summary>Gets whether the "default_bool" field is set</summary>
10399     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10400     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10401     public bool HasDefaultBool {
10402       get { return (_hasBits0 & 134217728) != 0; }
10403     }
10404     /// <summary>Clears the value of the "default_bool" field</summary>
10405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10406     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBool()10407     public void ClearDefaultBool() {
10408       _hasBits0 &= ~134217728;
10409     }
10410 
10411     /// <summary>Field number for the "default_string" field.</summary>
10412     public const int DefaultStringFieldNumber = 254;
10413     private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Um9zZWJ1ZA=="), 0, 7);
10414 
10415     private string defaultString_;
10416     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10417     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10418     public string DefaultString {
10419       get { return defaultString_ ?? DefaultStringDefaultValue; }
10420       set {
10421         defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
10422       }
10423     }
10424     /// <summary>Gets whether the "default_string" field is set</summary>
10425     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10426     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10427     public bool HasDefaultString {
10428       get { return defaultString_ != null; }
10429     }
10430     /// <summary>Clears the value of the "default_string" field</summary>
10431     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10432     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultString()10433     public void ClearDefaultString() {
10434       defaultString_ = null;
10435     }
10436 
10437     /// <summary>Field number for the "default_bytes" field.</summary>
10438     public const int DefaultBytesFieldNumber = 255;
10439     private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("am9zaHVh");
10440 
10441     private pb::ByteString defaultBytes_;
10442     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10443     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10444     public pb::ByteString DefaultBytes {
10445       get { return defaultBytes_ ?? DefaultBytesDefaultValue; }
10446       set {
10447         defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
10448       }
10449     }
10450     /// <summary>Gets whether the "default_bytes" field is set</summary>
10451     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10452     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10453     public bool HasDefaultBytes {
10454       get { return defaultBytes_ != null; }
10455     }
10456     /// <summary>Clears the value of the "default_bytes" field</summary>
10457     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10458     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBytes()10459     public void ClearDefaultBytes() {
10460       defaultBytes_ = null;
10461     }
10462 
10463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10465     public override bool Equals(object other) {
10466       return Equals(other as TestAllRequiredTypesProto2);
10467     }
10468 
10469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestAllRequiredTypesProto2 other)10471     public bool Equals(TestAllRequiredTypesProto2 other) {
10472       if (ReferenceEquals(other, null)) {
10473         return false;
10474       }
10475       if (ReferenceEquals(other, this)) {
10476         return true;
10477       }
10478       if (RequiredInt32 != other.RequiredInt32) return false;
10479       if (RequiredInt64 != other.RequiredInt64) return false;
10480       if (RequiredUint32 != other.RequiredUint32) return false;
10481       if (RequiredUint64 != other.RequiredUint64) return false;
10482       if (RequiredSint32 != other.RequiredSint32) return false;
10483       if (RequiredSint64 != other.RequiredSint64) return false;
10484       if (RequiredFixed32 != other.RequiredFixed32) return false;
10485       if (RequiredFixed64 != other.RequiredFixed64) return false;
10486       if (RequiredSfixed32 != other.RequiredSfixed32) return false;
10487       if (RequiredSfixed64 != other.RequiredSfixed64) return false;
10488       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RequiredFloat, other.RequiredFloat)) return false;
10489       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RequiredDouble, other.RequiredDouble)) return false;
10490       if (RequiredBool != other.RequiredBool) return false;
10491       if (RequiredString != other.RequiredString) return false;
10492       if (RequiredBytes != other.RequiredBytes) return false;
10493       if (!object.Equals(RequiredNestedMessage, other.RequiredNestedMessage)) return false;
10494       if (!object.Equals(RequiredForeignMessage, other.RequiredForeignMessage)) return false;
10495       if (RequiredNestedEnum != other.RequiredNestedEnum) return false;
10496       if (RequiredForeignEnum != other.RequiredForeignEnum) return false;
10497       if (RequiredStringPiece != other.RequiredStringPiece) return false;
10498       if (RequiredCord != other.RequiredCord) return false;
10499       if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
10500       if (!object.Equals(OptionalRecursiveMessage, other.OptionalRecursiveMessage)) return false;
10501       if (!object.Equals(Data, other.Data)) return false;
10502       if (DefaultInt32 != other.DefaultInt32) return false;
10503       if (DefaultInt64 != other.DefaultInt64) return false;
10504       if (DefaultUint32 != other.DefaultUint32) return false;
10505       if (DefaultUint64 != other.DefaultUint64) return false;
10506       if (DefaultSint32 != other.DefaultSint32) return false;
10507       if (DefaultSint64 != other.DefaultSint64) return false;
10508       if (DefaultFixed32 != other.DefaultFixed32) return false;
10509       if (DefaultFixed64 != other.DefaultFixed64) return false;
10510       if (DefaultSfixed32 != other.DefaultSfixed32) return false;
10511       if (DefaultSfixed64 != other.DefaultSfixed64) return false;
10512       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false;
10513       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false;
10514       if (DefaultBool != other.DefaultBool) return false;
10515       if (DefaultString != other.DefaultString) return false;
10516       if (DefaultBytes != other.DefaultBytes) return false;
10517       if (!Equals(_extensions, other._extensions)) {
10518         return false;
10519       }
10520       return Equals(_unknownFields, other._unknownFields);
10521     }
10522 
10523     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10524     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10525     public override int GetHashCode() {
10526       int hash = 1;
10527       if (HasRequiredInt32) hash ^= RequiredInt32.GetHashCode();
10528       if (HasRequiredInt64) hash ^= RequiredInt64.GetHashCode();
10529       if (HasRequiredUint32) hash ^= RequiredUint32.GetHashCode();
10530       if (HasRequiredUint64) hash ^= RequiredUint64.GetHashCode();
10531       if (HasRequiredSint32) hash ^= RequiredSint32.GetHashCode();
10532       if (HasRequiredSint64) hash ^= RequiredSint64.GetHashCode();
10533       if (HasRequiredFixed32) hash ^= RequiredFixed32.GetHashCode();
10534       if (HasRequiredFixed64) hash ^= RequiredFixed64.GetHashCode();
10535       if (HasRequiredSfixed32) hash ^= RequiredSfixed32.GetHashCode();
10536       if (HasRequiredSfixed64) hash ^= RequiredSfixed64.GetHashCode();
10537       if (HasRequiredFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RequiredFloat);
10538       if (HasRequiredDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RequiredDouble);
10539       if (HasRequiredBool) hash ^= RequiredBool.GetHashCode();
10540       if (HasRequiredString) hash ^= RequiredString.GetHashCode();
10541       if (HasRequiredBytes) hash ^= RequiredBytes.GetHashCode();
10542       if (requiredNestedMessage_ != null) hash ^= RequiredNestedMessage.GetHashCode();
10543       if (requiredForeignMessage_ != null) hash ^= RequiredForeignMessage.GetHashCode();
10544       if (HasRequiredNestedEnum) hash ^= RequiredNestedEnum.GetHashCode();
10545       if (HasRequiredForeignEnum) hash ^= RequiredForeignEnum.GetHashCode();
10546       if (HasRequiredStringPiece) hash ^= RequiredStringPiece.GetHashCode();
10547       if (HasRequiredCord) hash ^= RequiredCord.GetHashCode();
10548       if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode();
10549       if (optionalRecursiveMessage_ != null) hash ^= OptionalRecursiveMessage.GetHashCode();
10550       if (HasData) hash ^= Data.GetHashCode();
10551       if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode();
10552       if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode();
10553       if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode();
10554       if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode();
10555       if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode();
10556       if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode();
10557       if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode();
10558       if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode();
10559       if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode();
10560       if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode();
10561       if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat);
10562       if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble);
10563       if (HasDefaultBool) hash ^= DefaultBool.GetHashCode();
10564       if (HasDefaultString) hash ^= DefaultString.GetHashCode();
10565       if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode();
10566       if (_extensions != null) {
10567         hash ^= _extensions.GetHashCode();
10568       }
10569       if (_unknownFields != null) {
10570         hash ^= _unknownFields.GetHashCode();
10571       }
10572       return hash;
10573     }
10574 
10575     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10576     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10577     public override string ToString() {
10578       return pb::JsonFormatter.ToDiagnosticString(this);
10579     }
10580 
10581     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10582     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10583     public void WriteTo(pb::CodedOutputStream output) {
10584     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10585       output.WriteRawMessage(this);
10586     #else
10587       if (HasRequiredInt32) {
10588         output.WriteRawTag(8);
10589         output.WriteInt32(RequiredInt32);
10590       }
10591       if (HasRequiredInt64) {
10592         output.WriteRawTag(16);
10593         output.WriteInt64(RequiredInt64);
10594       }
10595       if (HasRequiredUint32) {
10596         output.WriteRawTag(24);
10597         output.WriteUInt32(RequiredUint32);
10598       }
10599       if (HasRequiredUint64) {
10600         output.WriteRawTag(32);
10601         output.WriteUInt64(RequiredUint64);
10602       }
10603       if (HasRequiredSint32) {
10604         output.WriteRawTag(40);
10605         output.WriteSInt32(RequiredSint32);
10606       }
10607       if (HasRequiredSint64) {
10608         output.WriteRawTag(48);
10609         output.WriteSInt64(RequiredSint64);
10610       }
10611       if (HasRequiredFixed32) {
10612         output.WriteRawTag(61);
10613         output.WriteFixed32(RequiredFixed32);
10614       }
10615       if (HasRequiredFixed64) {
10616         output.WriteRawTag(65);
10617         output.WriteFixed64(RequiredFixed64);
10618       }
10619       if (HasRequiredSfixed32) {
10620         output.WriteRawTag(77);
10621         output.WriteSFixed32(RequiredSfixed32);
10622       }
10623       if (HasRequiredSfixed64) {
10624         output.WriteRawTag(81);
10625         output.WriteSFixed64(RequiredSfixed64);
10626       }
10627       if (HasRequiredFloat) {
10628         output.WriteRawTag(93);
10629         output.WriteFloat(RequiredFloat);
10630       }
10631       if (HasRequiredDouble) {
10632         output.WriteRawTag(97);
10633         output.WriteDouble(RequiredDouble);
10634       }
10635       if (HasRequiredBool) {
10636         output.WriteRawTag(104);
10637         output.WriteBool(RequiredBool);
10638       }
10639       if (HasRequiredString) {
10640         output.WriteRawTag(114);
10641         output.WriteString(RequiredString);
10642       }
10643       if (HasRequiredBytes) {
10644         output.WriteRawTag(122);
10645         output.WriteBytes(RequiredBytes);
10646       }
10647       if (requiredNestedMessage_ != null) {
10648         output.WriteRawTag(146, 1);
10649         output.WriteMessage(RequiredNestedMessage);
10650       }
10651       if (requiredForeignMessage_ != null) {
10652         output.WriteRawTag(154, 1);
10653         output.WriteMessage(RequiredForeignMessage);
10654       }
10655       if (HasRequiredNestedEnum) {
10656         output.WriteRawTag(168, 1);
10657         output.WriteEnum((int) RequiredNestedEnum);
10658       }
10659       if (HasRequiredForeignEnum) {
10660         output.WriteRawTag(176, 1);
10661         output.WriteEnum((int) RequiredForeignEnum);
10662       }
10663       if (HasRequiredStringPiece) {
10664         output.WriteRawTag(194, 1);
10665         output.WriteString(RequiredStringPiece);
10666       }
10667       if (HasRequiredCord) {
10668         output.WriteRawTag(202, 1);
10669         output.WriteString(RequiredCord);
10670       }
10671       if (recursiveMessage_ != null) {
10672         output.WriteRawTag(218, 1);
10673         output.WriteMessage(RecursiveMessage);
10674       }
10675       if (optionalRecursiveMessage_ != null) {
10676         output.WriteRawTag(226, 1);
10677         output.WriteMessage(OptionalRecursiveMessage);
10678       }
10679       if (HasData) {
10680         output.WriteRawTag(203, 12);
10681         output.WriteGroup(Data);
10682         output.WriteRawTag(204, 12);
10683       }
10684       if (HasDefaultInt32) {
10685         output.WriteRawTag(136, 15);
10686         output.WriteInt32(DefaultInt32);
10687       }
10688       if (HasDefaultInt64) {
10689         output.WriteRawTag(144, 15);
10690         output.WriteInt64(DefaultInt64);
10691       }
10692       if (HasDefaultUint32) {
10693         output.WriteRawTag(152, 15);
10694         output.WriteUInt32(DefaultUint32);
10695       }
10696       if (HasDefaultUint64) {
10697         output.WriteRawTag(160, 15);
10698         output.WriteUInt64(DefaultUint64);
10699       }
10700       if (HasDefaultSint32) {
10701         output.WriteRawTag(168, 15);
10702         output.WriteSInt32(DefaultSint32);
10703       }
10704       if (HasDefaultSint64) {
10705         output.WriteRawTag(176, 15);
10706         output.WriteSInt64(DefaultSint64);
10707       }
10708       if (HasDefaultFixed32) {
10709         output.WriteRawTag(189, 15);
10710         output.WriteFixed32(DefaultFixed32);
10711       }
10712       if (HasDefaultFixed64) {
10713         output.WriteRawTag(193, 15);
10714         output.WriteFixed64(DefaultFixed64);
10715       }
10716       if (HasDefaultSfixed32) {
10717         output.WriteRawTag(205, 15);
10718         output.WriteSFixed32(DefaultSfixed32);
10719       }
10720       if (HasDefaultSfixed64) {
10721         output.WriteRawTag(209, 15);
10722         output.WriteSFixed64(DefaultSfixed64);
10723       }
10724       if (HasDefaultFloat) {
10725         output.WriteRawTag(221, 15);
10726         output.WriteFloat(DefaultFloat);
10727       }
10728       if (HasDefaultDouble) {
10729         output.WriteRawTag(225, 15);
10730         output.WriteDouble(DefaultDouble);
10731       }
10732       if (HasDefaultBool) {
10733         output.WriteRawTag(232, 15);
10734         output.WriteBool(DefaultBool);
10735       }
10736       if (HasDefaultString) {
10737         output.WriteRawTag(242, 15);
10738         output.WriteString(DefaultString);
10739       }
10740       if (HasDefaultBytes) {
10741         output.WriteRawTag(250, 15);
10742         output.WriteBytes(DefaultBytes);
10743       }
10744       if (_extensions != null) {
10745         _extensions.WriteTo(output);
10746       }
10747       if (_unknownFields != null) {
10748         _unknownFields.WriteTo(output);
10749       }
10750     #endif
10751     }
10752 
10753     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10754     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10755     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10756     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10757       if (HasRequiredInt32) {
10758         output.WriteRawTag(8);
10759         output.WriteInt32(RequiredInt32);
10760       }
10761       if (HasRequiredInt64) {
10762         output.WriteRawTag(16);
10763         output.WriteInt64(RequiredInt64);
10764       }
10765       if (HasRequiredUint32) {
10766         output.WriteRawTag(24);
10767         output.WriteUInt32(RequiredUint32);
10768       }
10769       if (HasRequiredUint64) {
10770         output.WriteRawTag(32);
10771         output.WriteUInt64(RequiredUint64);
10772       }
10773       if (HasRequiredSint32) {
10774         output.WriteRawTag(40);
10775         output.WriteSInt32(RequiredSint32);
10776       }
10777       if (HasRequiredSint64) {
10778         output.WriteRawTag(48);
10779         output.WriteSInt64(RequiredSint64);
10780       }
10781       if (HasRequiredFixed32) {
10782         output.WriteRawTag(61);
10783         output.WriteFixed32(RequiredFixed32);
10784       }
10785       if (HasRequiredFixed64) {
10786         output.WriteRawTag(65);
10787         output.WriteFixed64(RequiredFixed64);
10788       }
10789       if (HasRequiredSfixed32) {
10790         output.WriteRawTag(77);
10791         output.WriteSFixed32(RequiredSfixed32);
10792       }
10793       if (HasRequiredSfixed64) {
10794         output.WriteRawTag(81);
10795         output.WriteSFixed64(RequiredSfixed64);
10796       }
10797       if (HasRequiredFloat) {
10798         output.WriteRawTag(93);
10799         output.WriteFloat(RequiredFloat);
10800       }
10801       if (HasRequiredDouble) {
10802         output.WriteRawTag(97);
10803         output.WriteDouble(RequiredDouble);
10804       }
10805       if (HasRequiredBool) {
10806         output.WriteRawTag(104);
10807         output.WriteBool(RequiredBool);
10808       }
10809       if (HasRequiredString) {
10810         output.WriteRawTag(114);
10811         output.WriteString(RequiredString);
10812       }
10813       if (HasRequiredBytes) {
10814         output.WriteRawTag(122);
10815         output.WriteBytes(RequiredBytes);
10816       }
10817       if (requiredNestedMessage_ != null) {
10818         output.WriteRawTag(146, 1);
10819         output.WriteMessage(RequiredNestedMessage);
10820       }
10821       if (requiredForeignMessage_ != null) {
10822         output.WriteRawTag(154, 1);
10823         output.WriteMessage(RequiredForeignMessage);
10824       }
10825       if (HasRequiredNestedEnum) {
10826         output.WriteRawTag(168, 1);
10827         output.WriteEnum((int) RequiredNestedEnum);
10828       }
10829       if (HasRequiredForeignEnum) {
10830         output.WriteRawTag(176, 1);
10831         output.WriteEnum((int) RequiredForeignEnum);
10832       }
10833       if (HasRequiredStringPiece) {
10834         output.WriteRawTag(194, 1);
10835         output.WriteString(RequiredStringPiece);
10836       }
10837       if (HasRequiredCord) {
10838         output.WriteRawTag(202, 1);
10839         output.WriteString(RequiredCord);
10840       }
10841       if (recursiveMessage_ != null) {
10842         output.WriteRawTag(218, 1);
10843         output.WriteMessage(RecursiveMessage);
10844       }
10845       if (optionalRecursiveMessage_ != null) {
10846         output.WriteRawTag(226, 1);
10847         output.WriteMessage(OptionalRecursiveMessage);
10848       }
10849       if (HasData) {
10850         output.WriteRawTag(203, 12);
10851         output.WriteGroup(Data);
10852         output.WriteRawTag(204, 12);
10853       }
10854       if (HasDefaultInt32) {
10855         output.WriteRawTag(136, 15);
10856         output.WriteInt32(DefaultInt32);
10857       }
10858       if (HasDefaultInt64) {
10859         output.WriteRawTag(144, 15);
10860         output.WriteInt64(DefaultInt64);
10861       }
10862       if (HasDefaultUint32) {
10863         output.WriteRawTag(152, 15);
10864         output.WriteUInt32(DefaultUint32);
10865       }
10866       if (HasDefaultUint64) {
10867         output.WriteRawTag(160, 15);
10868         output.WriteUInt64(DefaultUint64);
10869       }
10870       if (HasDefaultSint32) {
10871         output.WriteRawTag(168, 15);
10872         output.WriteSInt32(DefaultSint32);
10873       }
10874       if (HasDefaultSint64) {
10875         output.WriteRawTag(176, 15);
10876         output.WriteSInt64(DefaultSint64);
10877       }
10878       if (HasDefaultFixed32) {
10879         output.WriteRawTag(189, 15);
10880         output.WriteFixed32(DefaultFixed32);
10881       }
10882       if (HasDefaultFixed64) {
10883         output.WriteRawTag(193, 15);
10884         output.WriteFixed64(DefaultFixed64);
10885       }
10886       if (HasDefaultSfixed32) {
10887         output.WriteRawTag(205, 15);
10888         output.WriteSFixed32(DefaultSfixed32);
10889       }
10890       if (HasDefaultSfixed64) {
10891         output.WriteRawTag(209, 15);
10892         output.WriteSFixed64(DefaultSfixed64);
10893       }
10894       if (HasDefaultFloat) {
10895         output.WriteRawTag(221, 15);
10896         output.WriteFloat(DefaultFloat);
10897       }
10898       if (HasDefaultDouble) {
10899         output.WriteRawTag(225, 15);
10900         output.WriteDouble(DefaultDouble);
10901       }
10902       if (HasDefaultBool) {
10903         output.WriteRawTag(232, 15);
10904         output.WriteBool(DefaultBool);
10905       }
10906       if (HasDefaultString) {
10907         output.WriteRawTag(242, 15);
10908         output.WriteString(DefaultString);
10909       }
10910       if (HasDefaultBytes) {
10911         output.WriteRawTag(250, 15);
10912         output.WriteBytes(DefaultBytes);
10913       }
10914       if (_extensions != null) {
10915         _extensions.WriteTo(ref output);
10916       }
10917       if (_unknownFields != null) {
10918         _unknownFields.WriteTo(ref output);
10919       }
10920     }
10921     #endif
10922 
10923     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10924     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10925     public int CalculateSize() {
10926       int size = 0;
10927       if (HasRequiredInt32) {
10928         size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredInt32);
10929       }
10930       if (HasRequiredInt64) {
10931         size += 1 + pb::CodedOutputStream.ComputeInt64Size(RequiredInt64);
10932       }
10933       if (HasRequiredUint32) {
10934         size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RequiredUint32);
10935       }
10936       if (HasRequiredUint64) {
10937         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequiredUint64);
10938       }
10939       if (HasRequiredSint32) {
10940         size += 1 + pb::CodedOutputStream.ComputeSInt32Size(RequiredSint32);
10941       }
10942       if (HasRequiredSint64) {
10943         size += 1 + pb::CodedOutputStream.ComputeSInt64Size(RequiredSint64);
10944       }
10945       if (HasRequiredFixed32) {
10946         size += 1 + 4;
10947       }
10948       if (HasRequiredFixed64) {
10949         size += 1 + 8;
10950       }
10951       if (HasRequiredSfixed32) {
10952         size += 1 + 4;
10953       }
10954       if (HasRequiredSfixed64) {
10955         size += 1 + 8;
10956       }
10957       if (HasRequiredFloat) {
10958         size += 1 + 4;
10959       }
10960       if (HasRequiredDouble) {
10961         size += 1 + 8;
10962       }
10963       if (HasRequiredBool) {
10964         size += 1 + 1;
10965       }
10966       if (HasRequiredString) {
10967         size += 1 + pb::CodedOutputStream.ComputeStringSize(RequiredString);
10968       }
10969       if (HasRequiredBytes) {
10970         size += 1 + pb::CodedOutputStream.ComputeBytesSize(RequiredBytes);
10971       }
10972       if (requiredNestedMessage_ != null) {
10973         size += 2 + pb::CodedOutputStream.ComputeMessageSize(RequiredNestedMessage);
10974       }
10975       if (requiredForeignMessage_ != null) {
10976         size += 2 + pb::CodedOutputStream.ComputeMessageSize(RequiredForeignMessage);
10977       }
10978       if (HasRequiredNestedEnum) {
10979         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RequiredNestedEnum);
10980       }
10981       if (HasRequiredForeignEnum) {
10982         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RequiredForeignEnum);
10983       }
10984       if (HasRequiredStringPiece) {
10985         size += 2 + pb::CodedOutputStream.ComputeStringSize(RequiredStringPiece);
10986       }
10987       if (HasRequiredCord) {
10988         size += 2 + pb::CodedOutputStream.ComputeStringSize(RequiredCord);
10989       }
10990       if (recursiveMessage_ != null) {
10991         size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage);
10992       }
10993       if (optionalRecursiveMessage_ != null) {
10994         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalRecursiveMessage);
10995       }
10996       if (HasData) {
10997         size += 4 + pb::CodedOutputStream.ComputeGroupSize(Data);
10998       }
10999       if (HasDefaultInt32) {
11000         size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32);
11001       }
11002       if (HasDefaultInt64) {
11003         size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64);
11004       }
11005       if (HasDefaultUint32) {
11006         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32);
11007       }
11008       if (HasDefaultUint64) {
11009         size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64);
11010       }
11011       if (HasDefaultSint32) {
11012         size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32);
11013       }
11014       if (HasDefaultSint64) {
11015         size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64);
11016       }
11017       if (HasDefaultFixed32) {
11018         size += 2 + 4;
11019       }
11020       if (HasDefaultFixed64) {
11021         size += 2 + 8;
11022       }
11023       if (HasDefaultSfixed32) {
11024         size += 2 + 4;
11025       }
11026       if (HasDefaultSfixed64) {
11027         size += 2 + 8;
11028       }
11029       if (HasDefaultFloat) {
11030         size += 2 + 4;
11031       }
11032       if (HasDefaultDouble) {
11033         size += 2 + 8;
11034       }
11035       if (HasDefaultBool) {
11036         size += 2 + 1;
11037       }
11038       if (HasDefaultString) {
11039         size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString);
11040       }
11041       if (HasDefaultBytes) {
11042         size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes);
11043       }
11044       if (_extensions != null) {
11045         size += _extensions.CalculateSize();
11046       }
11047       if (_unknownFields != null) {
11048         size += _unknownFields.CalculateSize();
11049       }
11050       return size;
11051     }
11052 
11053     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11054     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestAllRequiredTypesProto2 other)11055     public void MergeFrom(TestAllRequiredTypesProto2 other) {
11056       if (other == null) {
11057         return;
11058       }
11059       if (other.HasRequiredInt32) {
11060         RequiredInt32 = other.RequiredInt32;
11061       }
11062       if (other.HasRequiredInt64) {
11063         RequiredInt64 = other.RequiredInt64;
11064       }
11065       if (other.HasRequiredUint32) {
11066         RequiredUint32 = other.RequiredUint32;
11067       }
11068       if (other.HasRequiredUint64) {
11069         RequiredUint64 = other.RequiredUint64;
11070       }
11071       if (other.HasRequiredSint32) {
11072         RequiredSint32 = other.RequiredSint32;
11073       }
11074       if (other.HasRequiredSint64) {
11075         RequiredSint64 = other.RequiredSint64;
11076       }
11077       if (other.HasRequiredFixed32) {
11078         RequiredFixed32 = other.RequiredFixed32;
11079       }
11080       if (other.HasRequiredFixed64) {
11081         RequiredFixed64 = other.RequiredFixed64;
11082       }
11083       if (other.HasRequiredSfixed32) {
11084         RequiredSfixed32 = other.RequiredSfixed32;
11085       }
11086       if (other.HasRequiredSfixed64) {
11087         RequiredSfixed64 = other.RequiredSfixed64;
11088       }
11089       if (other.HasRequiredFloat) {
11090         RequiredFloat = other.RequiredFloat;
11091       }
11092       if (other.HasRequiredDouble) {
11093         RequiredDouble = other.RequiredDouble;
11094       }
11095       if (other.HasRequiredBool) {
11096         RequiredBool = other.RequiredBool;
11097       }
11098       if (other.HasRequiredString) {
11099         RequiredString = other.RequiredString;
11100       }
11101       if (other.HasRequiredBytes) {
11102         RequiredBytes = other.RequiredBytes;
11103       }
11104       if (other.requiredNestedMessage_ != null) {
11105         if (requiredNestedMessage_ == null) {
11106           RequiredNestedMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage();
11107         }
11108         RequiredNestedMessage.MergeFrom(other.RequiredNestedMessage);
11109       }
11110       if (other.requiredForeignMessage_ != null) {
11111         if (requiredForeignMessage_ == null) {
11112           RequiredForeignMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
11113         }
11114         RequiredForeignMessage.MergeFrom(other.RequiredForeignMessage);
11115       }
11116       if (other.HasRequiredNestedEnum) {
11117         RequiredNestedEnum = other.RequiredNestedEnum;
11118       }
11119       if (other.HasRequiredForeignEnum) {
11120         RequiredForeignEnum = other.RequiredForeignEnum;
11121       }
11122       if (other.HasRequiredStringPiece) {
11123         RequiredStringPiece = other.RequiredStringPiece;
11124       }
11125       if (other.HasRequiredCord) {
11126         RequiredCord = other.RequiredCord;
11127       }
11128       if (other.recursiveMessage_ != null) {
11129         if (recursiveMessage_ == null) {
11130           RecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11131         }
11132         RecursiveMessage.MergeFrom(other.RecursiveMessage);
11133       }
11134       if (other.optionalRecursiveMessage_ != null) {
11135         if (optionalRecursiveMessage_ == null) {
11136           OptionalRecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11137         }
11138         OptionalRecursiveMessage.MergeFrom(other.OptionalRecursiveMessage);
11139       }
11140       if (other.HasData) {
11141         if (!HasData) {
11142           Data = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.Data();
11143         }
11144         Data.MergeFrom(other.Data);
11145       }
11146       if (other.HasDefaultInt32) {
11147         DefaultInt32 = other.DefaultInt32;
11148       }
11149       if (other.HasDefaultInt64) {
11150         DefaultInt64 = other.DefaultInt64;
11151       }
11152       if (other.HasDefaultUint32) {
11153         DefaultUint32 = other.DefaultUint32;
11154       }
11155       if (other.HasDefaultUint64) {
11156         DefaultUint64 = other.DefaultUint64;
11157       }
11158       if (other.HasDefaultSint32) {
11159         DefaultSint32 = other.DefaultSint32;
11160       }
11161       if (other.HasDefaultSint64) {
11162         DefaultSint64 = other.DefaultSint64;
11163       }
11164       if (other.HasDefaultFixed32) {
11165         DefaultFixed32 = other.DefaultFixed32;
11166       }
11167       if (other.HasDefaultFixed64) {
11168         DefaultFixed64 = other.DefaultFixed64;
11169       }
11170       if (other.HasDefaultSfixed32) {
11171         DefaultSfixed32 = other.DefaultSfixed32;
11172       }
11173       if (other.HasDefaultSfixed64) {
11174         DefaultSfixed64 = other.DefaultSfixed64;
11175       }
11176       if (other.HasDefaultFloat) {
11177         DefaultFloat = other.DefaultFloat;
11178       }
11179       if (other.HasDefaultDouble) {
11180         DefaultDouble = other.DefaultDouble;
11181       }
11182       if (other.HasDefaultBool) {
11183         DefaultBool = other.DefaultBool;
11184       }
11185       if (other.HasDefaultString) {
11186         DefaultString = other.DefaultString;
11187       }
11188       if (other.HasDefaultBytes) {
11189         DefaultBytes = other.DefaultBytes;
11190       }
11191       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
11192       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11193     }
11194 
11195     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11196     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11197     public void MergeFrom(pb::CodedInputStream input) {
11198     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11199       input.ReadRawMessage(this);
11200     #else
11201       uint tag;
11202       while ((tag = input.ReadTag()) != 0) {
11203       if ((tag & 7) == 4) {
11204         // Abort on any end group tag.
11205         return;
11206       }
11207       switch(tag) {
11208           default:
11209             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
11210               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11211             }
11212             break;
11213           case 8: {
11214             RequiredInt32 = input.ReadInt32();
11215             break;
11216           }
11217           case 16: {
11218             RequiredInt64 = input.ReadInt64();
11219             break;
11220           }
11221           case 24: {
11222             RequiredUint32 = input.ReadUInt32();
11223             break;
11224           }
11225           case 32: {
11226             RequiredUint64 = input.ReadUInt64();
11227             break;
11228           }
11229           case 40: {
11230             RequiredSint32 = input.ReadSInt32();
11231             break;
11232           }
11233           case 48: {
11234             RequiredSint64 = input.ReadSInt64();
11235             break;
11236           }
11237           case 61: {
11238             RequiredFixed32 = input.ReadFixed32();
11239             break;
11240           }
11241           case 65: {
11242             RequiredFixed64 = input.ReadFixed64();
11243             break;
11244           }
11245           case 77: {
11246             RequiredSfixed32 = input.ReadSFixed32();
11247             break;
11248           }
11249           case 81: {
11250             RequiredSfixed64 = input.ReadSFixed64();
11251             break;
11252           }
11253           case 93: {
11254             RequiredFloat = input.ReadFloat();
11255             break;
11256           }
11257           case 97: {
11258             RequiredDouble = input.ReadDouble();
11259             break;
11260           }
11261           case 104: {
11262             RequiredBool = input.ReadBool();
11263             break;
11264           }
11265           case 114: {
11266             RequiredString = input.ReadString();
11267             break;
11268           }
11269           case 122: {
11270             RequiredBytes = input.ReadBytes();
11271             break;
11272           }
11273           case 146: {
11274             if (requiredNestedMessage_ == null) {
11275               RequiredNestedMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage();
11276             }
11277             input.ReadMessage(RequiredNestedMessage);
11278             break;
11279           }
11280           case 154: {
11281             if (requiredForeignMessage_ == null) {
11282               RequiredForeignMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
11283             }
11284             input.ReadMessage(RequiredForeignMessage);
11285             break;
11286           }
11287           case 168: {
11288             RequiredNestedEnum = (global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum) input.ReadEnum();
11289             break;
11290           }
11291           case 176: {
11292             RequiredForeignEnum = (global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2) input.ReadEnum();
11293             break;
11294           }
11295           case 194: {
11296             RequiredStringPiece = input.ReadString();
11297             break;
11298           }
11299           case 202: {
11300             RequiredCord = input.ReadString();
11301             break;
11302           }
11303           case 218: {
11304             if (recursiveMessage_ == null) {
11305               RecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11306             }
11307             input.ReadMessage(RecursiveMessage);
11308             break;
11309           }
11310           case 226: {
11311             if (optionalRecursiveMessage_ == null) {
11312               OptionalRecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11313             }
11314             input.ReadMessage(OptionalRecursiveMessage);
11315             break;
11316           }
11317           case 1611: {
11318             if (!HasData) {
11319               Data = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.Data();
11320             }
11321             input.ReadGroup(Data);
11322             break;
11323           }
11324           case 1928: {
11325             DefaultInt32 = input.ReadInt32();
11326             break;
11327           }
11328           case 1936: {
11329             DefaultInt64 = input.ReadInt64();
11330             break;
11331           }
11332           case 1944: {
11333             DefaultUint32 = input.ReadUInt32();
11334             break;
11335           }
11336           case 1952: {
11337             DefaultUint64 = input.ReadUInt64();
11338             break;
11339           }
11340           case 1960: {
11341             DefaultSint32 = input.ReadSInt32();
11342             break;
11343           }
11344           case 1968: {
11345             DefaultSint64 = input.ReadSInt64();
11346             break;
11347           }
11348           case 1981: {
11349             DefaultFixed32 = input.ReadFixed32();
11350             break;
11351           }
11352           case 1985: {
11353             DefaultFixed64 = input.ReadFixed64();
11354             break;
11355           }
11356           case 1997: {
11357             DefaultSfixed32 = input.ReadSFixed32();
11358             break;
11359           }
11360           case 2001: {
11361             DefaultSfixed64 = input.ReadSFixed64();
11362             break;
11363           }
11364           case 2013: {
11365             DefaultFloat = input.ReadFloat();
11366             break;
11367           }
11368           case 2017: {
11369             DefaultDouble = input.ReadDouble();
11370             break;
11371           }
11372           case 2024: {
11373             DefaultBool = input.ReadBool();
11374             break;
11375           }
11376           case 2034: {
11377             DefaultString = input.ReadString();
11378             break;
11379           }
11380           case 2042: {
11381             DefaultBytes = input.ReadBytes();
11382             break;
11383           }
11384         }
11385       }
11386     #endif
11387     }
11388 
11389     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11390     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11391     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11392     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11393       uint tag;
11394       while ((tag = input.ReadTag()) != 0) {
11395       if ((tag & 7) == 4) {
11396         // Abort on any end group tag.
11397         return;
11398       }
11399       switch(tag) {
11400           default:
11401             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
11402               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11403             }
11404             break;
11405           case 8: {
11406             RequiredInt32 = input.ReadInt32();
11407             break;
11408           }
11409           case 16: {
11410             RequiredInt64 = input.ReadInt64();
11411             break;
11412           }
11413           case 24: {
11414             RequiredUint32 = input.ReadUInt32();
11415             break;
11416           }
11417           case 32: {
11418             RequiredUint64 = input.ReadUInt64();
11419             break;
11420           }
11421           case 40: {
11422             RequiredSint32 = input.ReadSInt32();
11423             break;
11424           }
11425           case 48: {
11426             RequiredSint64 = input.ReadSInt64();
11427             break;
11428           }
11429           case 61: {
11430             RequiredFixed32 = input.ReadFixed32();
11431             break;
11432           }
11433           case 65: {
11434             RequiredFixed64 = input.ReadFixed64();
11435             break;
11436           }
11437           case 77: {
11438             RequiredSfixed32 = input.ReadSFixed32();
11439             break;
11440           }
11441           case 81: {
11442             RequiredSfixed64 = input.ReadSFixed64();
11443             break;
11444           }
11445           case 93: {
11446             RequiredFloat = input.ReadFloat();
11447             break;
11448           }
11449           case 97: {
11450             RequiredDouble = input.ReadDouble();
11451             break;
11452           }
11453           case 104: {
11454             RequiredBool = input.ReadBool();
11455             break;
11456           }
11457           case 114: {
11458             RequiredString = input.ReadString();
11459             break;
11460           }
11461           case 122: {
11462             RequiredBytes = input.ReadBytes();
11463             break;
11464           }
11465           case 146: {
11466             if (requiredNestedMessage_ == null) {
11467               RequiredNestedMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage();
11468             }
11469             input.ReadMessage(RequiredNestedMessage);
11470             break;
11471           }
11472           case 154: {
11473             if (requiredForeignMessage_ == null) {
11474               RequiredForeignMessage = new global::ProtobufTestMessages.Editions.Proto2.ForeignMessageProto2();
11475             }
11476             input.ReadMessage(RequiredForeignMessage);
11477             break;
11478           }
11479           case 168: {
11480             RequiredNestedEnum = (global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum) input.ReadEnum();
11481             break;
11482           }
11483           case 176: {
11484             RequiredForeignEnum = (global::ProtobufTestMessages.Editions.Proto2.ForeignEnumProto2) input.ReadEnum();
11485             break;
11486           }
11487           case 194: {
11488             RequiredStringPiece = input.ReadString();
11489             break;
11490           }
11491           case 202: {
11492             RequiredCord = input.ReadString();
11493             break;
11494           }
11495           case 218: {
11496             if (recursiveMessage_ == null) {
11497               RecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11498             }
11499             input.ReadMessage(RecursiveMessage);
11500             break;
11501           }
11502           case 226: {
11503             if (optionalRecursiveMessage_ == null) {
11504               OptionalRecursiveMessage = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11505             }
11506             input.ReadMessage(OptionalRecursiveMessage);
11507             break;
11508           }
11509           case 1611: {
11510             if (!HasData) {
11511               Data = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.Data();
11512             }
11513             input.ReadGroup(Data);
11514             break;
11515           }
11516           case 1928: {
11517             DefaultInt32 = input.ReadInt32();
11518             break;
11519           }
11520           case 1936: {
11521             DefaultInt64 = input.ReadInt64();
11522             break;
11523           }
11524           case 1944: {
11525             DefaultUint32 = input.ReadUInt32();
11526             break;
11527           }
11528           case 1952: {
11529             DefaultUint64 = input.ReadUInt64();
11530             break;
11531           }
11532           case 1960: {
11533             DefaultSint32 = input.ReadSInt32();
11534             break;
11535           }
11536           case 1968: {
11537             DefaultSint64 = input.ReadSInt64();
11538             break;
11539           }
11540           case 1981: {
11541             DefaultFixed32 = input.ReadFixed32();
11542             break;
11543           }
11544           case 1985: {
11545             DefaultFixed64 = input.ReadFixed64();
11546             break;
11547           }
11548           case 1997: {
11549             DefaultSfixed32 = input.ReadSFixed32();
11550             break;
11551           }
11552           case 2001: {
11553             DefaultSfixed64 = input.ReadSFixed64();
11554             break;
11555           }
11556           case 2013: {
11557             DefaultFloat = input.ReadFloat();
11558             break;
11559           }
11560           case 2017: {
11561             DefaultDouble = input.ReadDouble();
11562             break;
11563           }
11564           case 2024: {
11565             DefaultBool = input.ReadBool();
11566             break;
11567           }
11568           case 2034: {
11569             DefaultString = input.ReadString();
11570             break;
11571           }
11572           case 2042: {
11573             DefaultBytes = input.ReadBytes();
11574             break;
11575           }
11576         }
11577       }
11578     }
11579     #endif
11580 
GetExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension)11581     public TValue GetExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension) {
11582       return pb::ExtensionSet.Get(ref _extensions, extension);
11583     }
GetExtension(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension)11584     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension) {
11585       return pb::ExtensionSet.Get(ref _extensions, extension);
11586     }
GetOrInitializeExtension(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension)11587     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension) {
11588       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
11589     }
SetExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension, TValue value)11590     public void SetExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension, TValue value) {
11591       pb::ExtensionSet.Set(ref _extensions, extension, value);
11592     }
HasExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension)11593     public bool HasExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension) {
11594       return pb::ExtensionSet.Has(ref _extensions, extension);
11595     }
ClearExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension)11596     public void ClearExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension) {
11597       pb::ExtensionSet.Clear(ref _extensions, extension);
11598     }
ClearExtension(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension)11599     public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension) {
11600       pb::ExtensionSet.Clear(ref _extensions, extension);
11601     }
11602 
11603     #region Nested types
11604     /// <summary>Container for nested types declared in the TestAllRequiredTypesProto2 message type.</summary>
11605     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11606     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11607     public static partial class Types {
11608       public enum NestedEnum {
11609         [pbr::OriginalName("FOO")] Foo = 0,
11610         [pbr::OriginalName("BAR")] Bar = 1,
11611         [pbr::OriginalName("BAZ")] Baz = 2,
11612         /// <summary>
11613         /// Intentionally negative.
11614         /// </summary>
11615         [pbr::OriginalName("NEG")] Neg = -1,
11616       }
11617 
11618       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
11619       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
11620       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11621           , pb::IBufferMessage
11622       #endif
11623       {
11624         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
11625         private pb::UnknownFieldSet _unknownFields;
11626         private int _hasBits0;
11627         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11628         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11629         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
11630 
11631         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11632         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11633         public static pbr::MessageDescriptor Descriptor {
11634           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[0]; }
11635         }
11636 
11637         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11638         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11639         pbr::MessageDescriptor pb::IMessage.Descriptor {
11640           get { return Descriptor; }
11641         }
11642 
11643         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11644         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()11645         public NestedMessage() {
11646           OnConstruction();
11647         }
11648 
OnConstruction()11649         partial void OnConstruction();
11650 
11651         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11652         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)11653         public NestedMessage(NestedMessage other) : this() {
11654           _hasBits0 = other._hasBits0;
11655           a_ = other.a_;
11656           corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null;
11657           optionalCorecursive_ = other.optionalCorecursive_ != null ? other.optionalCorecursive_.Clone() : null;
11658           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11659         }
11660 
11661         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11662         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11663         public NestedMessage Clone() {
11664           return new NestedMessage(this);
11665         }
11666 
11667         /// <summary>Field number for the "a" field.</summary>
11668         public const int AFieldNumber = 1;
11669         private readonly static int ADefaultValue = 0;
11670 
11671         private int a_;
11672         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11673         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11674         public int A {
11675           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
11676           set {
11677             _hasBits0 |= 1;
11678             a_ = value;
11679           }
11680         }
11681         /// <summary>Gets whether the "a" field is set</summary>
11682         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11683         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11684         public bool HasA {
11685           get { return (_hasBits0 & 1) != 0; }
11686         }
11687         /// <summary>Clears the value of the "a" field</summary>
11688         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11689         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()11690         public void ClearA() {
11691           _hasBits0 &= ~1;
11692         }
11693 
11694         /// <summary>Field number for the "corecursive" field.</summary>
11695         public const int CorecursiveFieldNumber = 2;
11696         private global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 corecursive_;
11697         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11698         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11699         public global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 Corecursive {
11700           get { return corecursive_; }
11701           set {
11702             corecursive_ = value;
11703           }
11704         }
11705 
11706         /// <summary>Field number for the "optional_corecursive" field.</summary>
11707         public const int OptionalCorecursiveFieldNumber = 3;
11708         private global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 optionalCorecursive_;
11709         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11710         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11711         public global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2 OptionalCorecursive {
11712           get { return optionalCorecursive_; }
11713           set {
11714             optionalCorecursive_ = value;
11715           }
11716         }
11717 
11718         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11719         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)11720         public override bool Equals(object other) {
11721           return Equals(other as NestedMessage);
11722         }
11723 
11724         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11725         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)11726         public bool Equals(NestedMessage other) {
11727           if (ReferenceEquals(other, null)) {
11728             return false;
11729           }
11730           if (ReferenceEquals(other, this)) {
11731             return true;
11732           }
11733           if (A != other.A) return false;
11734           if (!object.Equals(Corecursive, other.Corecursive)) return false;
11735           if (!object.Equals(OptionalCorecursive, other.OptionalCorecursive)) return false;
11736           return Equals(_unknownFields, other._unknownFields);
11737         }
11738 
11739         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11740         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()11741         public override int GetHashCode() {
11742           int hash = 1;
11743           if (HasA) hash ^= A.GetHashCode();
11744           if (corecursive_ != null) hash ^= Corecursive.GetHashCode();
11745           if (optionalCorecursive_ != null) hash ^= OptionalCorecursive.GetHashCode();
11746           if (_unknownFields != null) {
11747             hash ^= _unknownFields.GetHashCode();
11748           }
11749           return hash;
11750         }
11751 
11752         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11753         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11754         public override string ToString() {
11755           return pb::JsonFormatter.ToDiagnosticString(this);
11756         }
11757 
11758         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11759         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11760         public void WriteTo(pb::CodedOutputStream output) {
11761         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11762           output.WriteRawMessage(this);
11763         #else
11764           if (HasA) {
11765             output.WriteRawTag(8);
11766             output.WriteInt32(A);
11767           }
11768           if (corecursive_ != null) {
11769             output.WriteRawTag(18);
11770             output.WriteMessage(Corecursive);
11771           }
11772           if (optionalCorecursive_ != null) {
11773             output.WriteRawTag(26);
11774             output.WriteMessage(OptionalCorecursive);
11775           }
11776           if (_unknownFields != null) {
11777             _unknownFields.WriteTo(output);
11778           }
11779         #endif
11780         }
11781 
11782         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11783         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11784         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11785         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11786           if (HasA) {
11787             output.WriteRawTag(8);
11788             output.WriteInt32(A);
11789           }
11790           if (corecursive_ != null) {
11791             output.WriteRawTag(18);
11792             output.WriteMessage(Corecursive);
11793           }
11794           if (optionalCorecursive_ != null) {
11795             output.WriteRawTag(26);
11796             output.WriteMessage(OptionalCorecursive);
11797           }
11798           if (_unknownFields != null) {
11799             _unknownFields.WriteTo(ref output);
11800           }
11801         }
11802         #endif
11803 
11804         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11805         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11806         public int CalculateSize() {
11807           int size = 0;
11808           if (HasA) {
11809             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
11810           }
11811           if (corecursive_ != null) {
11812             size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive);
11813           }
11814           if (optionalCorecursive_ != null) {
11815             size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalCorecursive);
11816           }
11817           if (_unknownFields != null) {
11818             size += _unknownFields.CalculateSize();
11819           }
11820           return size;
11821         }
11822 
11823         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11824         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)11825         public void MergeFrom(NestedMessage other) {
11826           if (other == null) {
11827             return;
11828           }
11829           if (other.HasA) {
11830             A = other.A;
11831           }
11832           if (other.corecursive_ != null) {
11833             if (corecursive_ == null) {
11834               Corecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11835             }
11836             Corecursive.MergeFrom(other.Corecursive);
11837           }
11838           if (other.optionalCorecursive_ != null) {
11839             if (optionalCorecursive_ == null) {
11840               OptionalCorecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11841             }
11842             OptionalCorecursive.MergeFrom(other.OptionalCorecursive);
11843           }
11844           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11845         }
11846 
11847         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11848         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11849         public void MergeFrom(pb::CodedInputStream input) {
11850         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11851           input.ReadRawMessage(this);
11852         #else
11853           uint tag;
11854           while ((tag = input.ReadTag()) != 0) {
11855           if ((tag & 7) == 4) {
11856             // Abort on any end group tag.
11857             return;
11858           }
11859           switch(tag) {
11860               default:
11861                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11862                 break;
11863               case 8: {
11864                 A = input.ReadInt32();
11865                 break;
11866               }
11867               case 18: {
11868                 if (corecursive_ == null) {
11869                   Corecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11870                 }
11871                 input.ReadMessage(Corecursive);
11872                 break;
11873               }
11874               case 26: {
11875                 if (optionalCorecursive_ == null) {
11876                   OptionalCorecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11877                 }
11878                 input.ReadMessage(OptionalCorecursive);
11879                 break;
11880               }
11881             }
11882           }
11883         #endif
11884         }
11885 
11886         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11887         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11888         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11889         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11890           uint tag;
11891           while ((tag = input.ReadTag()) != 0) {
11892           if ((tag & 7) == 4) {
11893             // Abort on any end group tag.
11894             return;
11895           }
11896           switch(tag) {
11897               default:
11898                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11899                 break;
11900               case 8: {
11901                 A = input.ReadInt32();
11902                 break;
11903               }
11904               case 18: {
11905                 if (corecursive_ == null) {
11906                   Corecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11907                 }
11908                 input.ReadMessage(Corecursive);
11909                 break;
11910               }
11911               case 26: {
11912                 if (optionalCorecursive_ == null) {
11913                   OptionalCorecursive = new global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2();
11914                 }
11915                 input.ReadMessage(OptionalCorecursive);
11916                 break;
11917               }
11918             }
11919           }
11920         }
11921         #endif
11922 
11923       }
11924 
11925       /// <summary>
11926       /// groups
11927       /// </summary>
11928       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
11929       public sealed partial class Data : pb::IMessage<Data>
11930       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11931           , pb::IBufferMessage
11932       #endif
11933       {
11934         private static readonly pb::MessageParser<Data> _parser = new pb::MessageParser<Data>(() => new Data());
11935         private pb::UnknownFieldSet _unknownFields;
11936         private int _hasBits0;
11937         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11938         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11939         public static pb::MessageParser<Data> Parser { get { return _parser; } }
11940 
11941         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11942         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11943         public static pbr::MessageDescriptor Descriptor {
11944           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[1]; }
11945         }
11946 
11947         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11948         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11949         pbr::MessageDescriptor pb::IMessage.Descriptor {
11950           get { return Descriptor; }
11951         }
11952 
11953         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11954         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Data()11955         public Data() {
11956           OnConstruction();
11957         }
11958 
OnConstruction()11959         partial void OnConstruction();
11960 
11961         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11962         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Data(Data other)11963         public Data(Data other) : this() {
11964           _hasBits0 = other._hasBits0;
11965           groupInt32_ = other.groupInt32_;
11966           groupUint32_ = other.groupUint32_;
11967           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11968         }
11969 
11970         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11971         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11972         public Data Clone() {
11973           return new Data(this);
11974         }
11975 
11976         /// <summary>Field number for the "group_int32" field.</summary>
11977         public const int GroupInt32FieldNumber = 202;
11978         private readonly static int GroupInt32DefaultValue = 0;
11979 
11980         private int groupInt32_;
11981         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11982         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11983         public int GroupInt32 {
11984           get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } }
11985           set {
11986             _hasBits0 |= 1;
11987             groupInt32_ = value;
11988           }
11989         }
11990         /// <summary>Gets whether the "group_int32" field is set</summary>
11991         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11992         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11993         public bool HasGroupInt32 {
11994           get { return (_hasBits0 & 1) != 0; }
11995         }
11996         /// <summary>Clears the value of the "group_int32" field</summary>
11997         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11998         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupInt32()11999         public void ClearGroupInt32() {
12000           _hasBits0 &= ~1;
12001         }
12002 
12003         /// <summary>Field number for the "group_uint32" field.</summary>
12004         public const int GroupUint32FieldNumber = 203;
12005         private readonly static uint GroupUint32DefaultValue = 0;
12006 
12007         private uint groupUint32_;
12008         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12009         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12010         public uint GroupUint32 {
12011           get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } }
12012           set {
12013             _hasBits0 |= 2;
12014             groupUint32_ = value;
12015           }
12016         }
12017         /// <summary>Gets whether the "group_uint32" field is set</summary>
12018         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12019         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12020         public bool HasGroupUint32 {
12021           get { return (_hasBits0 & 2) != 0; }
12022         }
12023         /// <summary>Clears the value of the "group_uint32" field</summary>
12024         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12025         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupUint32()12026         public void ClearGroupUint32() {
12027           _hasBits0 &= ~2;
12028         }
12029 
12030         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12031         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12032         public override bool Equals(object other) {
12033           return Equals(other as Data);
12034         }
12035 
12036         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12037         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Data other)12038         public bool Equals(Data other) {
12039           if (ReferenceEquals(other, null)) {
12040             return false;
12041           }
12042           if (ReferenceEquals(other, this)) {
12043             return true;
12044           }
12045           if (GroupInt32 != other.GroupInt32) return false;
12046           if (GroupUint32 != other.GroupUint32) return false;
12047           return Equals(_unknownFields, other._unknownFields);
12048         }
12049 
12050         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12051         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12052         public override int GetHashCode() {
12053           int hash = 1;
12054           if (HasGroupInt32) hash ^= GroupInt32.GetHashCode();
12055           if (HasGroupUint32) hash ^= GroupUint32.GetHashCode();
12056           if (_unknownFields != null) {
12057             hash ^= _unknownFields.GetHashCode();
12058           }
12059           return hash;
12060         }
12061 
12062         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12063         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12064         public override string ToString() {
12065           return pb::JsonFormatter.ToDiagnosticString(this);
12066         }
12067 
12068         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12069         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12070         public void WriteTo(pb::CodedOutputStream output) {
12071         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12072           output.WriteRawMessage(this);
12073         #else
12074           if (HasGroupInt32) {
12075             output.WriteRawTag(208, 12);
12076             output.WriteInt32(GroupInt32);
12077           }
12078           if (HasGroupUint32) {
12079             output.WriteRawTag(216, 12);
12080             output.WriteUInt32(GroupUint32);
12081           }
12082           if (_unknownFields != null) {
12083             _unknownFields.WriteTo(output);
12084           }
12085         #endif
12086         }
12087 
12088         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12089         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12090         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12091         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12092           if (HasGroupInt32) {
12093             output.WriteRawTag(208, 12);
12094             output.WriteInt32(GroupInt32);
12095           }
12096           if (HasGroupUint32) {
12097             output.WriteRawTag(216, 12);
12098             output.WriteUInt32(GroupUint32);
12099           }
12100           if (_unknownFields != null) {
12101             _unknownFields.WriteTo(ref output);
12102           }
12103         }
12104         #endif
12105 
12106         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12107         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12108         public int CalculateSize() {
12109           int size = 0;
12110           if (HasGroupInt32) {
12111             size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32);
12112           }
12113           if (HasGroupUint32) {
12114             size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32);
12115           }
12116           if (_unknownFields != null) {
12117             size += _unknownFields.CalculateSize();
12118           }
12119           return size;
12120         }
12121 
12122         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12123         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Data other)12124         public void MergeFrom(Data other) {
12125           if (other == null) {
12126             return;
12127           }
12128           if (other.HasGroupInt32) {
12129             GroupInt32 = other.GroupInt32;
12130           }
12131           if (other.HasGroupUint32) {
12132             GroupUint32 = other.GroupUint32;
12133           }
12134           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12135         }
12136 
12137         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12138         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12139         public void MergeFrom(pb::CodedInputStream input) {
12140         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12141           input.ReadRawMessage(this);
12142         #else
12143           uint tag;
12144           while ((tag = input.ReadTag()) != 0) {
12145           if ((tag & 7) == 4) {
12146             // Abort on any end group tag.
12147             return;
12148           }
12149           switch(tag) {
12150               default:
12151                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12152                 break;
12153               case 1616: {
12154                 GroupInt32 = input.ReadInt32();
12155                 break;
12156               }
12157               case 1624: {
12158                 GroupUint32 = input.ReadUInt32();
12159                 break;
12160               }
12161             }
12162           }
12163         #endif
12164         }
12165 
12166         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12167         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12168         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12169         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12170           uint tag;
12171           while ((tag = input.ReadTag()) != 0) {
12172           if ((tag & 7) == 4) {
12173             // Abort on any end group tag.
12174             return;
12175           }
12176           switch(tag) {
12177               default:
12178                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12179                 break;
12180               case 1616: {
12181                 GroupInt32 = input.ReadInt32();
12182                 break;
12183               }
12184               case 1624: {
12185                 GroupUint32 = input.ReadUInt32();
12186                 break;
12187               }
12188             }
12189           }
12190         }
12191         #endif
12192 
12193       }
12194 
12195       /// <summary>
12196       /// message_set test case.
12197       /// </summary>
12198       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
12199       public sealed partial class MessageSetCorrect : pb::IExtendableMessage<MessageSetCorrect>
12200       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12201           , pb::IBufferMessage
12202       #endif
12203       {
12204         private static readonly pb::MessageParser<MessageSetCorrect> _parser = new pb::MessageParser<MessageSetCorrect>(() => new MessageSetCorrect());
12205         private pb::UnknownFieldSet _unknownFields;
12206         private pb::ExtensionSet<MessageSetCorrect> _extensions;
12207         private pb::ExtensionSet<MessageSetCorrect> _Extensions { get { return _extensions; } }
12208         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12209         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12210         public static pb::MessageParser<MessageSetCorrect> Parser { get { return _parser; } }
12211 
12212         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12213         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12214         public static pbr::MessageDescriptor Descriptor {
12215           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[2]; }
12216         }
12217 
12218         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12219         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12220         pbr::MessageDescriptor pb::IMessage.Descriptor {
12221           get { return Descriptor; }
12222         }
12223 
12224         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12225         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrect()12226         public MessageSetCorrect() {
12227           OnConstruction();
12228         }
12229 
OnConstruction()12230         partial void OnConstruction();
12231 
12232         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12233         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrect(MessageSetCorrect other)12234         public MessageSetCorrect(MessageSetCorrect other) : this() {
12235           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12236           _extensions = pb::ExtensionSet.Clone(other._extensions);
12237         }
12238 
12239         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12240         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12241         public MessageSetCorrect Clone() {
12242           return new MessageSetCorrect(this);
12243         }
12244 
12245         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12246         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12247         public override bool Equals(object other) {
12248           return Equals(other as MessageSetCorrect);
12249         }
12250 
12251         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12252         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrect other)12253         public bool Equals(MessageSetCorrect other) {
12254           if (ReferenceEquals(other, null)) {
12255             return false;
12256           }
12257           if (ReferenceEquals(other, this)) {
12258             return true;
12259           }
12260           if (!Equals(_extensions, other._extensions)) {
12261             return false;
12262           }
12263           return Equals(_unknownFields, other._unknownFields);
12264         }
12265 
12266         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12267         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12268         public override int GetHashCode() {
12269           int hash = 1;
12270           if (_extensions != null) {
12271             hash ^= _extensions.GetHashCode();
12272           }
12273           if (_unknownFields != null) {
12274             hash ^= _unknownFields.GetHashCode();
12275           }
12276           return hash;
12277         }
12278 
12279         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12280         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12281         public override string ToString() {
12282           return pb::JsonFormatter.ToDiagnosticString(this);
12283         }
12284 
12285         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12286         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12287         public void WriteTo(pb::CodedOutputStream output) {
12288         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12289           output.WriteRawMessage(this);
12290         #else
12291           if (_extensions != null) {
12292             _extensions.WriteTo(output);
12293           }
12294           if (_unknownFields != null) {
12295             _unknownFields.WriteTo(output);
12296           }
12297         #endif
12298         }
12299 
12300         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12301         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12302         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12303         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12304           if (_extensions != null) {
12305             _extensions.WriteTo(ref output);
12306           }
12307           if (_unknownFields != null) {
12308             _unknownFields.WriteTo(ref output);
12309           }
12310         }
12311         #endif
12312 
12313         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12314         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12315         public int CalculateSize() {
12316           int size = 0;
12317           if (_extensions != null) {
12318             size += _extensions.CalculateSize();
12319           }
12320           if (_unknownFields != null) {
12321             size += _unknownFields.CalculateSize();
12322           }
12323           return size;
12324         }
12325 
12326         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12327         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrect other)12328         public void MergeFrom(MessageSetCorrect other) {
12329           if (other == null) {
12330             return;
12331           }
12332           pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
12333           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12334         }
12335 
12336         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12337         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12338         public void MergeFrom(pb::CodedInputStream input) {
12339         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12340           input.ReadRawMessage(this);
12341         #else
12342           uint tag;
12343           while ((tag = input.ReadTag()) != 0) {
12344           if ((tag & 7) == 4) {
12345             // Abort on any end group tag.
12346             return;
12347           }
12348           switch(tag) {
12349               default:
12350                 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
12351                   _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12352                 }
12353                 break;
12354             }
12355           }
12356         #endif
12357         }
12358 
12359         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12360         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12361         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12362         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12363           uint tag;
12364           while ((tag = input.ReadTag()) != 0) {
12365           if ((tag & 7) == 4) {
12366             // Abort on any end group tag.
12367             return;
12368           }
12369           switch(tag) {
12370               default:
12371                 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
12372                   _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12373                 }
12374                 break;
12375             }
12376           }
12377         }
12378         #endif
12379 
GetExtension(pb::Extension<MessageSetCorrect, TValue> extension)12380         public TValue GetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
12381           return pb::ExtensionSet.Get(ref _extensions, extension);
12382         }
GetExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)12383         public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
12384           return pb::ExtensionSet.Get(ref _extensions, extension);
12385         }
GetOrInitializeExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)12386         public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
12387           return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
12388         }
SetExtension(pb::Extension<MessageSetCorrect, TValue> extension, TValue value)12389         public void SetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension, TValue value) {
12390           pb::ExtensionSet.Set(ref _extensions, extension, value);
12391         }
HasExtension(pb::Extension<MessageSetCorrect, TValue> extension)12392         public bool HasExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
12393           return pb::ExtensionSet.Has(ref _extensions, extension);
12394         }
ClearExtension(pb::Extension<MessageSetCorrect, TValue> extension)12395         public void ClearExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
12396           pb::ExtensionSet.Clear(ref _extensions, extension);
12397         }
ClearExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)12398         public void ClearExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
12399           pb::ExtensionSet.Clear(ref _extensions, extension);
12400         }
12401 
12402       }
12403 
12404       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
12405       public sealed partial class MessageSetCorrectExtension1 : pb::IMessage<MessageSetCorrectExtension1>
12406       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12407           , pb::IBufferMessage
12408       #endif
12409       {
12410         private static readonly pb::MessageParser<MessageSetCorrectExtension1> _parser = new pb::MessageParser<MessageSetCorrectExtension1>(() => new MessageSetCorrectExtension1());
12411         private pb::UnknownFieldSet _unknownFields;
12412         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12413         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12414         public static pb::MessageParser<MessageSetCorrectExtension1> Parser { get { return _parser; } }
12415 
12416         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12417         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12418         public static pbr::MessageDescriptor Descriptor {
12419           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[3]; }
12420         }
12421 
12422         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12423         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12424         pbr::MessageDescriptor pb::IMessage.Descriptor {
12425           get { return Descriptor; }
12426         }
12427 
12428         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12429         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension1()12430         public MessageSetCorrectExtension1() {
12431           OnConstruction();
12432         }
12433 
OnConstruction()12434         partial void OnConstruction();
12435 
12436         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12437         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension1(MessageSetCorrectExtension1 other)12438         public MessageSetCorrectExtension1(MessageSetCorrectExtension1 other) : this() {
12439           str_ = other.str_;
12440           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12441         }
12442 
12443         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12444         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12445         public MessageSetCorrectExtension1 Clone() {
12446           return new MessageSetCorrectExtension1(this);
12447         }
12448 
12449         /// <summary>Field number for the "str" field.</summary>
12450         public const int StrFieldNumber = 25;
12451         private readonly static string StrDefaultValue = "";
12452 
12453         private string str_;
12454         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12455         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12456         public string Str {
12457           get { return str_ ?? StrDefaultValue; }
12458           set {
12459             str_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
12460           }
12461         }
12462         /// <summary>Gets whether the "str" field is set</summary>
12463         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12464         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12465         public bool HasStr {
12466           get { return str_ != null; }
12467         }
12468         /// <summary>Clears the value of the "str" field</summary>
12469         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12470         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStr()12471         public void ClearStr() {
12472           str_ = null;
12473         }
12474 
12475         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12476         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12477         public override bool Equals(object other) {
12478           return Equals(other as MessageSetCorrectExtension1);
12479         }
12480 
12481         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12482         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrectExtension1 other)12483         public bool Equals(MessageSetCorrectExtension1 other) {
12484           if (ReferenceEquals(other, null)) {
12485             return false;
12486           }
12487           if (ReferenceEquals(other, this)) {
12488             return true;
12489           }
12490           if (Str != other.Str) return false;
12491           return Equals(_unknownFields, other._unknownFields);
12492         }
12493 
12494         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12495         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12496         public override int GetHashCode() {
12497           int hash = 1;
12498           if (HasStr) hash ^= Str.GetHashCode();
12499           if (_unknownFields != null) {
12500             hash ^= _unknownFields.GetHashCode();
12501           }
12502           return hash;
12503         }
12504 
12505         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12506         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12507         public override string ToString() {
12508           return pb::JsonFormatter.ToDiagnosticString(this);
12509         }
12510 
12511         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12512         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12513         public void WriteTo(pb::CodedOutputStream output) {
12514         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12515           output.WriteRawMessage(this);
12516         #else
12517           if (HasStr) {
12518             output.WriteRawTag(202, 1);
12519             output.WriteString(Str);
12520           }
12521           if (_unknownFields != null) {
12522             _unknownFields.WriteTo(output);
12523           }
12524         #endif
12525         }
12526 
12527         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12528         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12529         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12530         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12531           if (HasStr) {
12532             output.WriteRawTag(202, 1);
12533             output.WriteString(Str);
12534           }
12535           if (_unknownFields != null) {
12536             _unknownFields.WriteTo(ref output);
12537           }
12538         }
12539         #endif
12540 
12541         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12542         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12543         public int CalculateSize() {
12544           int size = 0;
12545           if (HasStr) {
12546             size += 2 + pb::CodedOutputStream.ComputeStringSize(Str);
12547           }
12548           if (_unknownFields != null) {
12549             size += _unknownFields.CalculateSize();
12550           }
12551           return size;
12552         }
12553 
12554         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12555         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrectExtension1 other)12556         public void MergeFrom(MessageSetCorrectExtension1 other) {
12557           if (other == null) {
12558             return;
12559           }
12560           if (other.HasStr) {
12561             Str = other.Str;
12562           }
12563           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12564         }
12565 
12566         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12567         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12568         public void MergeFrom(pb::CodedInputStream input) {
12569         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12570           input.ReadRawMessage(this);
12571         #else
12572           uint tag;
12573           while ((tag = input.ReadTag()) != 0) {
12574           if ((tag & 7) == 4) {
12575             // Abort on any end group tag.
12576             return;
12577           }
12578           switch(tag) {
12579               default:
12580                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12581                 break;
12582               case 202: {
12583                 Str = input.ReadString();
12584                 break;
12585               }
12586             }
12587           }
12588         #endif
12589         }
12590 
12591         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12592         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12593         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12594         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12595           uint tag;
12596           while ((tag = input.ReadTag()) != 0) {
12597           if ((tag & 7) == 4) {
12598             // Abort on any end group tag.
12599             return;
12600           }
12601           switch(tag) {
12602               default:
12603                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12604                 break;
12605               case 202: {
12606                 Str = input.ReadString();
12607                 break;
12608               }
12609             }
12610           }
12611         }
12612         #endif
12613 
12614         #region Extensions
12615         /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.</summary>
12616         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12617         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12618         public static partial class Extensions {
12619           public static readonly pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1> MessageSetExtension =
12620             new pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1>(1547769, pb::FieldCodec.ForMessage(12382154, global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1.Parser));
12621         }
12622         #endregion
12623 
12624       }
12625 
12626       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
12627       public sealed partial class MessageSetCorrectExtension2 : pb::IMessage<MessageSetCorrectExtension2>
12628       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12629           , pb::IBufferMessage
12630       #endif
12631       {
12632         private static readonly pb::MessageParser<MessageSetCorrectExtension2> _parser = new pb::MessageParser<MessageSetCorrectExtension2>(() => new MessageSetCorrectExtension2());
12633         private pb::UnknownFieldSet _unknownFields;
12634         private int _hasBits0;
12635         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12636         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12637         public static pb::MessageParser<MessageSetCorrectExtension2> Parser { get { return _parser; } }
12638 
12639         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12640         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12641         public static pbr::MessageDescriptor Descriptor {
12642           get { return global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[4]; }
12643         }
12644 
12645         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12646         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12647         pbr::MessageDescriptor pb::IMessage.Descriptor {
12648           get { return Descriptor; }
12649         }
12650 
12651         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12652         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension2()12653         public MessageSetCorrectExtension2() {
12654           OnConstruction();
12655         }
12656 
OnConstruction()12657         partial void OnConstruction();
12658 
12659         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12660         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension2(MessageSetCorrectExtension2 other)12661         public MessageSetCorrectExtension2(MessageSetCorrectExtension2 other) : this() {
12662           _hasBits0 = other._hasBits0;
12663           i_ = other.i_;
12664           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12665         }
12666 
12667         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12668         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12669         public MessageSetCorrectExtension2 Clone() {
12670           return new MessageSetCorrectExtension2(this);
12671         }
12672 
12673         /// <summary>Field number for the "i" field.</summary>
12674         public const int IFieldNumber = 9;
12675         private readonly static int IDefaultValue = 0;
12676 
12677         private int i_;
12678         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12679         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12680         public int I {
12681           get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
12682           set {
12683             _hasBits0 |= 1;
12684             i_ = value;
12685           }
12686         }
12687         /// <summary>Gets whether the "i" field is set</summary>
12688         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12689         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12690         public bool HasI {
12691           get { return (_hasBits0 & 1) != 0; }
12692         }
12693         /// <summary>Clears the value of the "i" field</summary>
12694         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12695         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearI()12696         public void ClearI() {
12697           _hasBits0 &= ~1;
12698         }
12699 
12700         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12701         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12702         public override bool Equals(object other) {
12703           return Equals(other as MessageSetCorrectExtension2);
12704         }
12705 
12706         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12707         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrectExtension2 other)12708         public bool Equals(MessageSetCorrectExtension2 other) {
12709           if (ReferenceEquals(other, null)) {
12710             return false;
12711           }
12712           if (ReferenceEquals(other, this)) {
12713             return true;
12714           }
12715           if (I != other.I) return false;
12716           return Equals(_unknownFields, other._unknownFields);
12717         }
12718 
12719         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12720         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12721         public override int GetHashCode() {
12722           int hash = 1;
12723           if (HasI) hash ^= I.GetHashCode();
12724           if (_unknownFields != null) {
12725             hash ^= _unknownFields.GetHashCode();
12726           }
12727           return hash;
12728         }
12729 
12730         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12731         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12732         public override string ToString() {
12733           return pb::JsonFormatter.ToDiagnosticString(this);
12734         }
12735 
12736         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12737         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12738         public void WriteTo(pb::CodedOutputStream output) {
12739         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12740           output.WriteRawMessage(this);
12741         #else
12742           if (HasI) {
12743             output.WriteRawTag(72);
12744             output.WriteInt32(I);
12745           }
12746           if (_unknownFields != null) {
12747             _unknownFields.WriteTo(output);
12748           }
12749         #endif
12750         }
12751 
12752         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12753         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12754         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12755         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12756           if (HasI) {
12757             output.WriteRawTag(72);
12758             output.WriteInt32(I);
12759           }
12760           if (_unknownFields != null) {
12761             _unknownFields.WriteTo(ref output);
12762           }
12763         }
12764         #endif
12765 
12766         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12767         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12768         public int CalculateSize() {
12769           int size = 0;
12770           if (HasI) {
12771             size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
12772           }
12773           if (_unknownFields != null) {
12774             size += _unknownFields.CalculateSize();
12775           }
12776           return size;
12777         }
12778 
12779         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12780         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrectExtension2 other)12781         public void MergeFrom(MessageSetCorrectExtension2 other) {
12782           if (other == null) {
12783             return;
12784           }
12785           if (other.HasI) {
12786             I = other.I;
12787           }
12788           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12789         }
12790 
12791         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12792         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12793         public void MergeFrom(pb::CodedInputStream input) {
12794         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12795           input.ReadRawMessage(this);
12796         #else
12797           uint tag;
12798           while ((tag = input.ReadTag()) != 0) {
12799           if ((tag & 7) == 4) {
12800             // Abort on any end group tag.
12801             return;
12802           }
12803           switch(tag) {
12804               default:
12805                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12806                 break;
12807               case 72: {
12808                 I = input.ReadInt32();
12809                 break;
12810               }
12811             }
12812           }
12813         #endif
12814         }
12815 
12816         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12817         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12818         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12819         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12820           uint tag;
12821           while ((tag = input.ReadTag()) != 0) {
12822           if ((tag & 7) == 4) {
12823             // Abort on any end group tag.
12824             return;
12825           }
12826           switch(tag) {
12827               default:
12828                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12829                 break;
12830               case 72: {
12831                 I = input.ReadInt32();
12832                 break;
12833               }
12834             }
12835           }
12836         }
12837         #endif
12838 
12839         #region Extensions
12840         /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.</summary>
12841         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12842         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12843         public static partial class Extensions {
12844           public static readonly pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2> MessageSetExtension =
12845             new pb::Extension<global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2>(4135312, pb::FieldCodec.ForMessage(33082498, global::ProtobufTestMessages.Editions.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2.Parser));
12846         }
12847         #endregion
12848 
12849       }
12850 
12851     }
12852     #endregion
12853 
12854   }
12855 
12856   #endregion
12857 
12858 }
12859 
12860 #endregion Designer generated code
12861