xref: /aosp_15_r20/external/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto2.cs (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: google/protobuf/test_messages_proto2.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.Proto2 {
13 
14   /// <summary>Holder for reflection information generated from google/protobuf/test_messages_proto2.proto</summary>
15   public static partial class TestMessagesProto2Reflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for google/protobuf/test_messages_proto2.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
TestMessagesProto2Reflection()24     static TestMessagesProto2Reflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Cipnb29nbGUvcHJvdG9idWYvdGVzdF9tZXNzYWdlc19wcm90bzIucHJvdG8S",
28             "HXByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yIsQ+ChJUZXN0QWxsVHlw",
29             "ZXNQcm90bzISFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxf",
30             "aW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgNEhcKD29wdGlv",
31             "bmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIYBSABKBESFwoP",
32             "b3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2ZpeGVkMzIYByAB",
33             "KAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRpb25hbF9zZml4",
34             "ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEoEBIWCg5vcHRp",
35             "b25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25hbF9kb3VibGUYDCABKAESFQoN",
36             "b3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRpb25hbF9zdHJpbmcYDiABKAkS",
37             "FgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSYAoXb3B0aW9uYWxfbmVzdGVkX21l",
38             "c3NhZ2UYEiABKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5U",
39             "ZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZRJVChhvcHRpb25hbF9m",
40             "b3JlaWduX21lc3NhZ2UYEyABKAsyMy5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
41             "LnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMhJaChRvcHRpb25hbF9uZXN0",
42             "ZWRfZW51bRgVIAEoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y",
43             "LlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtEk8KFW9wdGlvbmFsX2Zv",
44             "cmVpZ25fZW51bRgWIAEoDjIwLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv",
45             "dG8yLkZvcmVpZ25FbnVtUHJvdG8yEiEKFW9wdGlvbmFsX3N0cmluZ19waWVj",
46             "ZRgYIAEoCUICCAISGQoNb3B0aW9uYWxfY29yZBgZIAEoCUICCAESTAoRcmVj",
47             "dXJzaXZlX21lc3NhZ2UYGyABKAsyMS5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
48             "LnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzISFgoOcmVwZWF0ZWRfaW50MzIY",
49             "HyADKAUSFgoOcmVwZWF0ZWRfaW50NjQYICADKAMSFwoPcmVwZWF0ZWRfdWlu",
50             "dDMyGCEgAygNEhcKD3JlcGVhdGVkX3VpbnQ2NBgiIAMoBBIXCg9yZXBlYXRl",
51             "ZF9zaW50MzIYIyADKBESFwoPcmVwZWF0ZWRfc2ludDY0GCQgAygSEhgKEHJl",
52             "cGVhdGVkX2ZpeGVkMzIYJSADKAcSGAoQcmVwZWF0ZWRfZml4ZWQ2NBgmIAMo",
53             "BhIZChFyZXBlYXRlZF9zZml4ZWQzMhgnIAMoDxIZChFyZXBlYXRlZF9zZml4",
54             "ZWQ2NBgoIAMoEBIWCg5yZXBlYXRlZF9mbG9hdBgpIAMoAhIXCg9yZXBlYXRl",
55             "ZF9kb3VibGUYKiADKAESFQoNcmVwZWF0ZWRfYm9vbBgrIAMoCBIXCg9yZXBl",
56             "YXRlZF9zdHJpbmcYLCADKAkSFgoOcmVwZWF0ZWRfYnl0ZXMYLSADKAwSYAoX",
57             "cmVwZWF0ZWRfbmVzdGVkX21lc3NhZ2UYMCADKAsyPy5wcm90b2J1Zl90ZXN0",
58             "X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVz",
59             "c2FnZRJVChhyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2UYMSADKAsyMy5wcm90",
60             "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3Rv",
61             "MhJaChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjI8LnByb3RvYnVmX3Rl",
62             "c3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRF",
63             "bnVtEk8KFXJlcGVhdGVkX2ZvcmVpZ25fZW51bRg0IAMoDjIwLnByb3RvYnVm",
64             "X3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25FbnVtUHJvdG8yEiEKFXJl",
65             "cGVhdGVkX3N0cmluZ19waWVjZRg2IAMoCUICCAISGQoNcmVwZWF0ZWRfY29y",
66             "ZBg3IAMoCUICCAESGAoMcGFja2VkX2ludDMyGEsgAygFQgIQARIYCgxwYWNr",
67             "ZWRfaW50NjQYTCADKANCAhABEhkKDXBhY2tlZF91aW50MzIYTSADKA1CAhAB",
68             "EhkKDXBhY2tlZF91aW50NjQYTiADKARCAhABEhkKDXBhY2tlZF9zaW50MzIY",
69             "TyADKBFCAhABEhkKDXBhY2tlZF9zaW50NjQYUCADKBJCAhABEhoKDnBhY2tl",
70             "ZF9maXhlZDMyGFEgAygHQgIQARIaCg5wYWNrZWRfZml4ZWQ2NBhSIAMoBkIC",
71             "EAESGwoPcGFja2VkX3NmaXhlZDMyGFMgAygPQgIQARIbCg9wYWNrZWRfc2Zp",
72             "eGVkNjQYVCADKBBCAhABEhgKDHBhY2tlZF9mbG9hdBhVIAMoAkICEAESGQoN",
73             "cGFja2VkX2RvdWJsZRhWIAMoAUICEAESFwoLcGFja2VkX2Jvb2wYVyADKAhC",
74             "AhABElwKEnBhY2tlZF9uZXN0ZWRfZW51bRhYIAMoDjI8LnByb3RvYnVmX3Rl",
75             "c3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRF",
76             "bnVtQgIQARIaCg51bnBhY2tlZF9pbnQzMhhZIAMoBUICEAASGgoOdW5wYWNr",
77             "ZWRfaW50NjQYWiADKANCAhAAEhsKD3VucGFja2VkX3VpbnQzMhhbIAMoDUIC",
78             "EAASGwoPdW5wYWNrZWRfdWludDY0GFwgAygEQgIQABIbCg91bnBhY2tlZF9z",
79             "aW50MzIYXSADKBFCAhAAEhsKD3VucGFja2VkX3NpbnQ2NBheIAMoEkICEAAS",
80             "HAoQdW5wYWNrZWRfZml4ZWQzMhhfIAMoB0ICEAASHAoQdW5wYWNrZWRfZml4",
81             "ZWQ2NBhgIAMoBkICEAASHQoRdW5wYWNrZWRfc2ZpeGVkMzIYYSADKA9CAhAA",
82             "Eh0KEXVucGFja2VkX3NmaXhlZDY0GGIgAygQQgIQABIaCg51bnBhY2tlZF9m",
83             "bG9hdBhjIAMoAkICEAASGwoPdW5wYWNrZWRfZG91YmxlGGQgAygBQgIQABIZ",
84             "Cg11bnBhY2tlZF9ib29sGGUgAygIQgIQABJeChR1bnBhY2tlZF9uZXN0ZWRf",
85             "ZW51bRhmIAMoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRl",
86             "c3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtQgIQABJdCg9tYXBfaW50MzJf",
87             "aW50MzIYOCADKAsyRC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5U",
88             "ZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50MzJJbnQzMkVudHJ5El0KD21hcF9p",
89             "bnQ2NF9pbnQ2NBg5IAMoCzJELnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv",
90             "dG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBJbnQ2NEludDY0RW50cnkSYQoR",
91             "bWFwX3VpbnQzMl91aW50MzIYOiADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3Nh",
92             "Z2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwVWludDMyVWludDMy",
93             "RW50cnkSYQoRbWFwX3VpbnQ2NF91aW50NjQYOyADKAsyRi5wcm90b2J1Zl90",
94             "ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwVWlu",
95             "dDY0VWludDY0RW50cnkSYQoRbWFwX3NpbnQzMl9zaW50MzIYPCADKAsyRi5w",
96             "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90",
97             "bzIuTWFwU2ludDMyU2ludDMyRW50cnkSYQoRbWFwX3NpbnQ2NF9zaW50NjQY",
98             "PSADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxs",
99             "VHlwZXNQcm90bzIuTWFwU2ludDY0U2ludDY0RW50cnkSZQoTbWFwX2ZpeGVk",
100             "MzJfZml4ZWQzMhg+IAMoCzJILnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv",
101             "dG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5",
102             "EmUKE21hcF9maXhlZDY0X2ZpeGVkNjQYPyADKAsySC5wcm90b2J1Zl90ZXN0",
103             "X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwRml4ZWQ2",
104             "NEZpeGVkNjRFbnRyeRJpChVtYXBfc2ZpeGVkMzJfc2ZpeGVkMzIYQCADKAsy",
105             "Si5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQ",
106             "cm90bzIuTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5EmkKFW1hcF9zZml4ZWQ2",
107             "NF9zZml4ZWQ2NBhBIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv",
108             "dG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50",
109             "cnkSXQoPbWFwX2ludDMyX2Zsb2F0GEIgAygLMkQucHJvdG9idWZfdGVzdF9t",
110             "ZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcEludDMyRmxv",
111             "YXRFbnRyeRJfChBtYXBfaW50MzJfZG91YmxlGEMgAygLMkUucHJvdG9idWZf",
112             "dGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcElu",
113             "dDMyRG91YmxlRW50cnkSWQoNbWFwX2Jvb2xfYm9vbBhEIAMoCzJCLnByb3Rv",
114             "YnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5N",
115             "YXBCb29sQm9vbEVudHJ5EmEKEW1hcF9zdHJpbmdfc3RyaW5nGEUgAygLMkYu",
116             "cHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJv",
117             "dG8yLk1hcFN0cmluZ1N0cmluZ0VudHJ5El8KEG1hcF9zdHJpbmdfYnl0ZXMY",
118             "RiADKAsyRS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxs",
119             "VHlwZXNQcm90bzIuTWFwU3RyaW5nQnl0ZXNFbnRyeRJwChltYXBfc3RyaW5n",
120             "X25lc3RlZF9tZXNzYWdlGEcgAygLMk0ucHJvdG9idWZfdGVzdF9tZXNzYWdl",
121             "cy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFN0cmluZ05lc3RlZE1l",
122             "c3NhZ2VFbnRyeRJyChptYXBfc3RyaW5nX2ZvcmVpZ25fbWVzc2FnZRhIIAMo",
123             "CzJOLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBl",
124             "c1Byb3RvMi5NYXBTdHJpbmdGb3JlaWduTWVzc2FnZUVudHJ5EmoKFm1hcF9z",
125             "dHJpbmdfbmVzdGVkX2VudW0YSSADKAsySi5wcm90b2J1Zl90ZXN0X21lc3Nh",
126             "Z2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW5nTmVzdGVk",
127             "RW51bUVudHJ5EmwKF21hcF9zdHJpbmdfZm9yZWlnbl9lbnVtGEogAygLMksu",
128             "cHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJv",
129             "dG8yLk1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnkSFgoMb25lb2ZfdWludDMy",
130             "GG8gASgNSAASXwoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCABKAsyPy5wcm90",
131             "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIu",
132             "TmVzdGVkTWVzc2FnZUgAEhYKDG9uZW9mX3N0cmluZxhxIAEoCUgAEhUKC29u",
133             "ZW9mX2J5dGVzGHIgASgMSAASFAoKb25lb2ZfYm9vbBhzIAEoCEgAEhYKDG9u",
134             "ZW9mX3VpbnQ2NBh0IAEoBEgAEhUKC29uZW9mX2Zsb2F0GHUgASgCSAASFgoM",
135             "b25lb2ZfZG91YmxlGHYgASgBSAASUgoKb25lb2ZfZW51bRh3IAEoDjI8LnBy",
136             "b3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3Rv",
137             "Mi5OZXN0ZWRFbnVtSAASRQoEZGF0YRjJASABKAoyNi5wcm90b2J1Zl90ZXN0",
138             "X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuRGF0YRIiCg1k",
139             "ZWZhdWx0X2ludDMyGPEBIAEoBToKLTEyMzQ1Njc4ORIsCg1kZWZhdWx0X2lu",
140             "dDY0GPIBIAEoAzoULTkxMjM0NTY3ODkxMjM0NTY3ODkSIwoOZGVmYXVsdF91",
141             "aW50MzIY8wEgASgNOgoyMTIzNDU2Nzg5Ei0KDmRlZmF1bHRfdWludDY0GPQB",
142             "IAEoBDoUMTAxMjM0NTY3ODkxMjM0NTY3ODkSIwoOZGVmYXVsdF9zaW50MzIY",
143             "9QEgASgROgotMTIzNDU2Nzg5Ei0KDmRlZmF1bHRfc2ludDY0GPYBIAEoEjoU",
144             "LTkxMjM0NTY3ODkxMjM0NTY3ODkSJAoPZGVmYXVsdF9maXhlZDMyGPcBIAEo",
145             "BzoKMjEyMzQ1Njc4ORIuCg9kZWZhdWx0X2ZpeGVkNjQY+AEgASgGOhQxMDEy",
146             "MzQ1Njc4OTEyMzQ1Njc4ORIlChBkZWZhdWx0X3NmaXhlZDMyGPkBIAEoDzoK",
147             "LTEyMzQ1Njc4ORIvChBkZWZhdWx0X3NmaXhlZDY0GPoBIAEoEDoULTkxMjM0",
148             "NTY3ODkxMjM0NTY3ODkSHQoNZGVmYXVsdF9mbG9hdBj7ASABKAI6BTllKzA5",
149             "Eh4KDmRlZmF1bHRfZG91YmxlGPwBIAEoAToFN2UrMjISGwoMZGVmYXVsdF9i",
150             "b29sGP0BIAEoCDoEdHJ1ZRIgCg5kZWZhdWx0X3N0cmluZxj+ASABKAk6B1Jv",
151             "c2VidWQSHgoNZGVmYXVsdF9ieXRlcxj/ASABKAw6Bmpvc2h1YRITCgpmaWVs",
152             "ZG5hbWUxGJEDIAEoBRIUCgtmaWVsZF9uYW1lMhiSAyABKAUSFQoMX2ZpZWxk",
153             "X25hbWUzGJMDIAEoBRIWCg1maWVsZF9fbmFtZTRfGJQDIAEoBRIUCgtmaWVs",
154             "ZDBuYW1lNRiVAyABKAUSFgoNZmllbGRfMF9uYW1lNhiWAyABKAUSEwoKZmll",
155             "bGROYW1lNxiXAyABKAUSEwoKRmllbGROYW1lOBiYAyABKAUSFAoLZmllbGRf",
156             "TmFtZTkYmQMgASgFEhUKDEZpZWxkX05hbWUxMBiaAyABKAUSFQoMRklFTERf",
157             "TkFNRTExGJsDIAEoBRIVCgxGSUVMRF9uYW1lMTIYnAMgASgFEhcKDl9fZmll",
158             "bGRfbmFtZTEzGJ0DIAEoBRIXCg5fX0ZpZWxkX25hbWUxNBieAyABKAUSFgoN",
159             "ZmllbGRfX25hbWUxNRifAyABKAUSFgoNZmllbGRfX05hbWUxNhigAyABKAUS",
160             "FwoOZmllbGRfbmFtZTE3X18YoQMgASgFEhcKDkZpZWxkX25hbWUxOF9fGKID",
161             "IAEoBRpiCg1OZXN0ZWRNZXNzYWdlEgkKAWEYASABKAUSRgoLY29yZWN1cnNp",
162             "dmUYAiABKAsyMS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0",
163             "QWxsVHlwZXNQcm90bzIaNAoSTWFwSW50MzJJbnQzMkVudHJ5EgsKA2tleRgB",
164             "IAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaNAoSTWFwSW50NjRJbnQ2NEVudHJ5",
165             "EgsKA2tleRgBIAEoAxINCgV2YWx1ZRgCIAEoAzoCOAEaNgoUTWFwVWludDMy",
166             "VWludDMyRW50cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4ARo2",
167             "ChRNYXBVaW50NjRVaW50NjRFbnRyeRILCgNrZXkYASABKAQSDQoFdmFsdWUY",
168             "AiABKAQ6AjgBGjYKFE1hcFNpbnQzMlNpbnQzMkVudHJ5EgsKA2tleRgBIAEo",
169             "ERINCgV2YWx1ZRgCIAEoEToCOAEaNgoUTWFwU2ludDY0U2ludDY0RW50cnkS",
170             "CwoDa2V5GAEgASgSEg0KBXZhbHVlGAIgASgSOgI4ARo4ChZNYXBGaXhlZDMy",
171             "Rml4ZWQzMkVudHJ5EgsKA2tleRgBIAEoBxINCgV2YWx1ZRgCIAEoBzoCOAEa",
172             "OAoWTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRILCgNrZXkYASABKAYSDQoFdmFs",
173             "dWUYAiABKAY6AjgBGjoKGE1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRILCgNr",
174             "ZXkYASABKA8SDQoFdmFsdWUYAiABKA86AjgBGjoKGE1hcFNmaXhlZDY0U2Zp",
175             "eGVkNjRFbnRyeRILCgNrZXkYASABKBASDQoFdmFsdWUYAiABKBA6AjgBGjQK",
176             "Ek1hcEludDMyRmxvYXRFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiAB",
177             "KAI6AjgBGjUKE01hcEludDMyRG91YmxlRW50cnkSCwoDa2V5GAEgASgFEg0K",
178             "BXZhbHVlGAIgASgBOgI4ARoyChBNYXBCb29sQm9vbEVudHJ5EgsKA2tleRgB",
179             "IAEoCBINCgV2YWx1ZRgCIAEoCDoCOAEaNgoUTWFwU3RyaW5nU3RyaW5nRW50",
180             "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARo1ChNNYXBTdHJp",
181             "bmdCeXRlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEa",
182             "fgobTWFwU3RyaW5nTmVzdGVkTWVzc2FnZUVudHJ5EgsKA2tleRgBIAEoCRJO",
183             "CgV2YWx1ZRgCIAEoCzI/LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y",
184             "LlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRNZXNzYWdlOgI4ARpzChxNYXBT",
185             "dHJpbmdGb3JlaWduTWVzc2FnZUVudHJ5EgsKA2tleRgBIAEoCRJCCgV2YWx1",
186             "ZRgCIAEoCzIzLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVp",
187             "Z25NZXNzYWdlUHJvdG8yOgI4ARp4ChhNYXBTdHJpbmdOZXN0ZWRFbnVtRW50",
188             "cnkSCwoDa2V5GAEgASgJEksKBXZhbHVlGAIgASgOMjwucHJvdG9idWZfdGVz",
189             "dF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVu",
190             "dW06AjgBGm0KGU1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnkSCwoDa2V5GAEg",
191             "ASgJEj8KBXZhbHVlGAIgASgOMjAucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5w",
192             "cm90bzIuRm9yZWlnbkVudW1Qcm90bzI6AjgBGjMKBERhdGESFAoLZ3JvdXBf",
193             "aW50MzIYygEgASgFEhUKDGdyb3VwX3VpbnQzMhjLASABKA0aIQoRTWVzc2Fn",
194             "ZVNldENvcnJlY3QqCAgEEP////8HOgIIARrgAQobTWVzc2FnZVNldENvcnJl",
195             "Y3RFeHRlbnNpb24xEgsKA3N0chgZIAEoCTKzAQoVbWVzc2FnZV9zZXRfZXh0",
196             "ZW5zaW9uEkMucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFs",
197             "bFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0GPm7XiABKAsyTS5wcm90",
198             "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIu",
199             "TWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24xGt8BChtNZXNzYWdlU2V0Q29y",
200             "cmVjdEV4dGVuc2lvbjISCQoBaRgJIAEoBTK0AQoVbWVzc2FnZV9zZXRfZXh0",
201             "ZW5zaW9uEkMucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFs",
202             "bFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0GJCz/AEgASgLMk0ucHJv",
203             "dG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8y",
204             "Lk1lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMiI5CgpOZXN0ZWRFbnVtEgcK",
205             "A0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAKA05FRxD///////////8BKgUI",
206             "eBDJAUINCgtvbmVvZl9maWVsZEoGCOgHEJBOIiEKFEZvcmVpZ25NZXNzYWdl",
207             "UHJvdG8yEgkKAWMYASABKAUiwQIKFVVua25vd25Ub1Rlc3RBbGxUeXBlcxIX",
208             "Cg5vcHRpb25hbF9pbnQzMhjpByABKAUSGAoPb3B0aW9uYWxfc3RyaW5nGOoH",
209             "IAEoCRJMCg5uZXN0ZWRfbWVzc2FnZRjrByABKAsyMy5wcm90b2J1Zl90ZXN0",
210             "X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMhJaCg1vcHRp",
211             "b25hbGdyb3VwGOwHIAEoCjJCLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv",
212             "dG8yLlVua25vd25Ub1Rlc3RBbGxUeXBlcy5PcHRpb25hbEdyb3VwEhYKDW9w",
213             "dGlvbmFsX2Jvb2wY7gcgASgIEhcKDnJlcGVhdGVkX2ludDMyGPMHIAMoBRoa",
214             "Cg1PcHRpb25hbEdyb3VwEgkKAWEYASABKAUiFgoUTnVsbEh5cG90aGVzaXNQ",
215             "cm90bzIiLwoORW51bU9ubHlQcm90bzIiHQoEQm9vbBIKCgZrRmFsc2UQABIJ",
216             "CgVrVHJ1ZRABIh8KD09uZVN0cmluZ1Byb3RvMhIMCgRkYXRhGAEgASgJKkYK",
217             "EUZvcmVpZ25FbnVtUHJvdG8yEg8KC0ZPUkVJR05fRk9PEAASDwoLRk9SRUlH",
218             "Tl9CQVIQARIPCgtGT1JFSUdOX0JBWhACOkoKD2V4dGVuc2lvbl9pbnQzMhIx",
219             "LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1By",
220             "b3RvMhh4IAEoBUIvCihjb20uZ29vZ2xlLnByb3RvYnVmX3Rlc3RfbWVzc2Fn",
221             "ZXMucHJvdG8ySAH4AQE="));
222       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
223           new pbr::FileDescriptor[] { },
224           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ProtobufTestMessages.Proto2.ForeignEnumProto2), }, new pb::Extension[] { TestMessagesProto2Extensions.ExtensionInt32 }, new pbr::GeneratedClrTypeInfo[] {
225             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2), global::ProtobufTestMessages.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", "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.Proto2.TestAllTypesProto2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null, null),
226             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.Proto2.TestAllTypesProto2.Types.Data), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null),
227             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect.Parser, null, null, null, null, null),
228             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser, new[]{ "Str" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Extensions.MessageSetExtension }, null),
229             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser, new[]{ "I" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Extensions.MessageSetExtension }, null)}),
230             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.ForeignMessageProto2), global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser, new[]{ "C" }, null, null, null, null),
231             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes), global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalString", "NestedMessage", "OptionalGroup", "OptionalBool", "RepeatedInt32" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup), global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null)}),
232             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.NullHypothesisProto2), global::ProtobufTestMessages.Proto2.NullHypothesisProto2.Parser, null, null, null, null, null),
233             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.EnumOnlyProto2), global::ProtobufTestMessages.Proto2.EnumOnlyProto2.Parser, null, null, new[]{ typeof(global::ProtobufTestMessages.Proto2.EnumOnlyProto2.Types.Bool) }, null, null),
234             new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.OneStringProto2), global::ProtobufTestMessages.Proto2.OneStringProto2.Parser, new[]{ "Data" }, null, null, null, null)
235           }));
236     }
237     #endregion
238 
239   }
240   /// <summary>Holder for extension identifiers generated from the top level of google/protobuf/test_messages_proto2.proto</summary>
241   public static partial class TestMessagesProto2Extensions {
242     public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, int> ExtensionInt32 =
243       new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, int>(120, pb::FieldCodec.ForInt32(960, 0));
244   }
245 
246   #region Enums
247   public enum ForeignEnumProto2 {
248     [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 0,
249     [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 1,
250     [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 2,
251   }
252 
253   #endregion
254 
255   #region Messages
256   /// <summary>
257   /// This proto includes every type of field in both singular and repeated
258   /// forms.
259   ///
260   /// Also, crucially, all messages and enums in this file are eventually
261   /// submessages of this message.  So for example, a fuzz test of TestAllTypes
262   /// could trigger bugs that occur in any message type in this file.  We verify
263   /// this stays true in a unit test.
264   /// </summary>
265   public sealed partial class TestAllTypesProto2 : pb::IExtendableMessage<TestAllTypesProto2>
266   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
267       , pb::IBufferMessage
268   #endif
269   {
270     private static readonly pb::MessageParser<TestAllTypesProto2> _parser = new pb::MessageParser<TestAllTypesProto2>(() => new TestAllTypesProto2());
271     private pb::UnknownFieldSet _unknownFields;
272     private pb::ExtensionSet<TestAllTypesProto2> _extensions;
273     private pb::ExtensionSet<TestAllTypesProto2> _Extensions { get { return _extensions; } }
274     private int _hasBits0;
275     private int _hasBits1;
276     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
277     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
278     public static pb::MessageParser<TestAllTypesProto2> Parser { get { return _parser; } }
279 
280     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
281     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
282     public static pbr::MessageDescriptor Descriptor {
283       get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[0]; }
284     }
285 
286     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
287     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
288     pbr::MessageDescriptor pb::IMessage.Descriptor {
289       get { return Descriptor; }
290     }
291 
292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
293     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllTypesProto2()294     public TestAllTypesProto2() {
295       OnConstruction();
296     }
297 
OnConstruction()298     partial void OnConstruction();
299 
300     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
301     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestAllTypesProto2(TestAllTypesProto2 other)302     public TestAllTypesProto2(TestAllTypesProto2 other) : this() {
303       _hasBits0 = other._hasBits0;
304       _hasBits1 = other._hasBits1;
305       optionalInt32_ = other.optionalInt32_;
306       optionalInt64_ = other.optionalInt64_;
307       optionalUint32_ = other.optionalUint32_;
308       optionalUint64_ = other.optionalUint64_;
309       optionalSint32_ = other.optionalSint32_;
310       optionalSint64_ = other.optionalSint64_;
311       optionalFixed32_ = other.optionalFixed32_;
312       optionalFixed64_ = other.optionalFixed64_;
313       optionalSfixed32_ = other.optionalSfixed32_;
314       optionalSfixed64_ = other.optionalSfixed64_;
315       optionalFloat_ = other.optionalFloat_;
316       optionalDouble_ = other.optionalDouble_;
317       optionalBool_ = other.optionalBool_;
318       optionalString_ = other.optionalString_;
319       optionalBytes_ = other.optionalBytes_;
320       optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
321       optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
322       optionalNestedEnum_ = other.optionalNestedEnum_;
323       optionalForeignEnum_ = other.optionalForeignEnum_;
324       optionalStringPiece_ = other.optionalStringPiece_;
325       optionalCord_ = other.optionalCord_;
326       recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null;
327       repeatedInt32_ = other.repeatedInt32_.Clone();
328       repeatedInt64_ = other.repeatedInt64_.Clone();
329       repeatedUint32_ = other.repeatedUint32_.Clone();
330       repeatedUint64_ = other.repeatedUint64_.Clone();
331       repeatedSint32_ = other.repeatedSint32_.Clone();
332       repeatedSint64_ = other.repeatedSint64_.Clone();
333       repeatedFixed32_ = other.repeatedFixed32_.Clone();
334       repeatedFixed64_ = other.repeatedFixed64_.Clone();
335       repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
336       repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
337       repeatedFloat_ = other.repeatedFloat_.Clone();
338       repeatedDouble_ = other.repeatedDouble_.Clone();
339       repeatedBool_ = other.repeatedBool_.Clone();
340       repeatedString_ = other.repeatedString_.Clone();
341       repeatedBytes_ = other.repeatedBytes_.Clone();
342       repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
343       repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
344       repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
345       repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
346       repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
347       repeatedCord_ = other.repeatedCord_.Clone();
348       packedInt32_ = other.packedInt32_.Clone();
349       packedInt64_ = other.packedInt64_.Clone();
350       packedUint32_ = other.packedUint32_.Clone();
351       packedUint64_ = other.packedUint64_.Clone();
352       packedSint32_ = other.packedSint32_.Clone();
353       packedSint64_ = other.packedSint64_.Clone();
354       packedFixed32_ = other.packedFixed32_.Clone();
355       packedFixed64_ = other.packedFixed64_.Clone();
356       packedSfixed32_ = other.packedSfixed32_.Clone();
357       packedSfixed64_ = other.packedSfixed64_.Clone();
358       packedFloat_ = other.packedFloat_.Clone();
359       packedDouble_ = other.packedDouble_.Clone();
360       packedBool_ = other.packedBool_.Clone();
361       packedNestedEnum_ = other.packedNestedEnum_.Clone();
362       unpackedInt32_ = other.unpackedInt32_.Clone();
363       unpackedInt64_ = other.unpackedInt64_.Clone();
364       unpackedUint32_ = other.unpackedUint32_.Clone();
365       unpackedUint64_ = other.unpackedUint64_.Clone();
366       unpackedSint32_ = other.unpackedSint32_.Clone();
367       unpackedSint64_ = other.unpackedSint64_.Clone();
368       unpackedFixed32_ = other.unpackedFixed32_.Clone();
369       unpackedFixed64_ = other.unpackedFixed64_.Clone();
370       unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
371       unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
372       unpackedFloat_ = other.unpackedFloat_.Clone();
373       unpackedDouble_ = other.unpackedDouble_.Clone();
374       unpackedBool_ = other.unpackedBool_.Clone();
375       unpackedNestedEnum_ = other.unpackedNestedEnum_.Clone();
376       mapInt32Int32_ = other.mapInt32Int32_.Clone();
377       mapInt64Int64_ = other.mapInt64Int64_.Clone();
378       mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
379       mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
380       mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
381       mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
382       mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
383       mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
384       mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
385       mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
386       mapInt32Float_ = other.mapInt32Float_.Clone();
387       mapInt32Double_ = other.mapInt32Double_.Clone();
388       mapBoolBool_ = other.mapBoolBool_.Clone();
389       mapStringString_ = other.mapStringString_.Clone();
390       mapStringBytes_ = other.mapStringBytes_.Clone();
391       mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
392       mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
393       mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
394       mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
395       data_ = other.HasData ? other.data_.Clone() : null;
396       defaultInt32_ = other.defaultInt32_;
397       defaultInt64_ = other.defaultInt64_;
398       defaultUint32_ = other.defaultUint32_;
399       defaultUint64_ = other.defaultUint64_;
400       defaultSint32_ = other.defaultSint32_;
401       defaultSint64_ = other.defaultSint64_;
402       defaultFixed32_ = other.defaultFixed32_;
403       defaultFixed64_ = other.defaultFixed64_;
404       defaultSfixed32_ = other.defaultSfixed32_;
405       defaultSfixed64_ = other.defaultSfixed64_;
406       defaultFloat_ = other.defaultFloat_;
407       defaultDouble_ = other.defaultDouble_;
408       defaultBool_ = other.defaultBool_;
409       defaultString_ = other.defaultString_;
410       defaultBytes_ = other.defaultBytes_;
411       fieldname1_ = other.fieldname1_;
412       fieldName2_ = other.fieldName2_;
413       FieldName3_ = other.FieldName3_;
414       fieldName4_ = other.fieldName4_;
415       field0Name5_ = other.field0Name5_;
416       field0Name6_ = other.field0Name6_;
417       fieldName7_ = other.fieldName7_;
418       fieldName8_ = other.fieldName8_;
419       fieldName9_ = other.fieldName9_;
420       fieldName10_ = other.fieldName10_;
421       fIELDNAME11_ = other.fIELDNAME11_;
422       fIELDName12_ = other.fIELDName12_;
423       FieldName13_ = other.FieldName13_;
424       FieldName14_ = other.FieldName14_;
425       fieldName15_ = other.fieldName15_;
426       fieldName16_ = other.fieldName16_;
427       fieldName17_ = other.fieldName17_;
428       fieldName18_ = other.fieldName18_;
429       switch (other.OneofFieldCase) {
430         case OneofFieldOneofCase.OneofUint32:
431           OneofUint32 = other.OneofUint32;
432           break;
433         case OneofFieldOneofCase.OneofNestedMessage:
434           OneofNestedMessage = other.OneofNestedMessage.Clone();
435           break;
436         case OneofFieldOneofCase.OneofString:
437           OneofString = other.OneofString;
438           break;
439         case OneofFieldOneofCase.OneofBytes:
440           OneofBytes = other.OneofBytes;
441           break;
442         case OneofFieldOneofCase.OneofBool:
443           OneofBool = other.OneofBool;
444           break;
445         case OneofFieldOneofCase.OneofUint64:
446           OneofUint64 = other.OneofUint64;
447           break;
448         case OneofFieldOneofCase.OneofFloat:
449           OneofFloat = other.OneofFloat;
450           break;
451         case OneofFieldOneofCase.OneofDouble:
452           OneofDouble = other.OneofDouble;
453           break;
454         case OneofFieldOneofCase.OneofEnum:
455           OneofEnum = other.OneofEnum;
456           break;
457       }
458 
459       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
460       _extensions = pb::ExtensionSet.Clone(other._extensions);
461     }
462 
463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()465     public TestAllTypesProto2 Clone() {
466       return new TestAllTypesProto2(this);
467     }
468 
469     /// <summary>Field number for the "optional_int32" field.</summary>
470     public const int OptionalInt32FieldNumber = 1;
471     private readonly static int OptionalInt32DefaultValue = 0;
472 
473     private int optionalInt32_;
474     /// <summary>
475     /// Singular
476     /// </summary>
477     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
478     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
479     public int OptionalInt32 {
480       get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
481       set {
482         _hasBits0 |= 1;
483         optionalInt32_ = value;
484       }
485     }
486     /// <summary>Gets whether the "optional_int32" field is set</summary>
487     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
488     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
489     public bool HasOptionalInt32 {
490       get { return (_hasBits0 & 1) != 0; }
491     }
492     /// <summary>Clears the value of the "optional_int32" field</summary>
493     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
494     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt32()495     public void ClearOptionalInt32() {
496       _hasBits0 &= ~1;
497     }
498 
499     /// <summary>Field number for the "optional_int64" field.</summary>
500     public const int OptionalInt64FieldNumber = 2;
501     private readonly static long OptionalInt64DefaultValue = 0L;
502 
503     private long optionalInt64_;
504     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
505     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
506     public long OptionalInt64 {
507       get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } }
508       set {
509         _hasBits0 |= 2;
510         optionalInt64_ = value;
511       }
512     }
513     /// <summary>Gets whether the "optional_int64" field is set</summary>
514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
515     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
516     public bool HasOptionalInt64 {
517       get { return (_hasBits0 & 2) != 0; }
518     }
519     /// <summary>Clears the value of the "optional_int64" field</summary>
520     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
521     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt64()522     public void ClearOptionalInt64() {
523       _hasBits0 &= ~2;
524     }
525 
526     /// <summary>Field number for the "optional_uint32" field.</summary>
527     public const int OptionalUint32FieldNumber = 3;
528     private readonly static uint OptionalUint32DefaultValue = 0;
529 
530     private uint optionalUint32_;
531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
533     public uint OptionalUint32 {
534       get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } }
535       set {
536         _hasBits0 |= 4;
537         optionalUint32_ = value;
538       }
539     }
540     /// <summary>Gets whether the "optional_uint32" field is set</summary>
541     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
542     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
543     public bool HasOptionalUint32 {
544       get { return (_hasBits0 & 4) != 0; }
545     }
546     /// <summary>Clears the value of the "optional_uint32" field</summary>
547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalUint32()549     public void ClearOptionalUint32() {
550       _hasBits0 &= ~4;
551     }
552 
553     /// <summary>Field number for the "optional_uint64" field.</summary>
554     public const int OptionalUint64FieldNumber = 4;
555     private readonly static ulong OptionalUint64DefaultValue = 0UL;
556 
557     private ulong optionalUint64_;
558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
559     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
560     public ulong OptionalUint64 {
561       get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } }
562       set {
563         _hasBits0 |= 8;
564         optionalUint64_ = value;
565       }
566     }
567     /// <summary>Gets whether the "optional_uint64" field is set</summary>
568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
570     public bool HasOptionalUint64 {
571       get { return (_hasBits0 & 8) != 0; }
572     }
573     /// <summary>Clears the value of the "optional_uint64" field</summary>
574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalUint64()576     public void ClearOptionalUint64() {
577       _hasBits0 &= ~8;
578     }
579 
580     /// <summary>Field number for the "optional_sint32" field.</summary>
581     public const int OptionalSint32FieldNumber = 5;
582     private readonly static int OptionalSint32DefaultValue = 0;
583 
584     private int optionalSint32_;
585     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
586     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
587     public int OptionalSint32 {
588       get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } }
589       set {
590         _hasBits0 |= 16;
591         optionalSint32_ = value;
592       }
593     }
594     /// <summary>Gets whether the "optional_sint32" field is set</summary>
595     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
596     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
597     public bool HasOptionalSint32 {
598       get { return (_hasBits0 & 16) != 0; }
599     }
600     /// <summary>Clears the value of the "optional_sint32" field</summary>
601     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
602     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSint32()603     public void ClearOptionalSint32() {
604       _hasBits0 &= ~16;
605     }
606 
607     /// <summary>Field number for the "optional_sint64" field.</summary>
608     public const int OptionalSint64FieldNumber = 6;
609     private readonly static long OptionalSint64DefaultValue = 0L;
610 
611     private long optionalSint64_;
612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
613     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
614     public long OptionalSint64 {
615       get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } }
616       set {
617         _hasBits0 |= 32;
618         optionalSint64_ = value;
619       }
620     }
621     /// <summary>Gets whether the "optional_sint64" field is set</summary>
622     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
623     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
624     public bool HasOptionalSint64 {
625       get { return (_hasBits0 & 32) != 0; }
626     }
627     /// <summary>Clears the value of the "optional_sint64" field</summary>
628     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
629     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSint64()630     public void ClearOptionalSint64() {
631       _hasBits0 &= ~32;
632     }
633 
634     /// <summary>Field number for the "optional_fixed32" field.</summary>
635     public const int OptionalFixed32FieldNumber = 7;
636     private readonly static uint OptionalFixed32DefaultValue = 0;
637 
638     private uint optionalFixed32_;
639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
640     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
641     public uint OptionalFixed32 {
642       get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } }
643       set {
644         _hasBits0 |= 64;
645         optionalFixed32_ = value;
646       }
647     }
648     /// <summary>Gets whether the "optional_fixed32" field is set</summary>
649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
651     public bool HasOptionalFixed32 {
652       get { return (_hasBits0 & 64) != 0; }
653     }
654     /// <summary>Clears the value of the "optional_fixed32" field</summary>
655     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
656     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFixed32()657     public void ClearOptionalFixed32() {
658       _hasBits0 &= ~64;
659     }
660 
661     /// <summary>Field number for the "optional_fixed64" field.</summary>
662     public const int OptionalFixed64FieldNumber = 8;
663     private readonly static ulong OptionalFixed64DefaultValue = 0UL;
664 
665     private ulong optionalFixed64_;
666     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
667     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
668     public ulong OptionalFixed64 {
669       get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } }
670       set {
671         _hasBits0 |= 128;
672         optionalFixed64_ = value;
673       }
674     }
675     /// <summary>Gets whether the "optional_fixed64" field is set</summary>
676     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
677     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
678     public bool HasOptionalFixed64 {
679       get { return (_hasBits0 & 128) != 0; }
680     }
681     /// <summary>Clears the value of the "optional_fixed64" field</summary>
682     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
683     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFixed64()684     public void ClearOptionalFixed64() {
685       _hasBits0 &= ~128;
686     }
687 
688     /// <summary>Field number for the "optional_sfixed32" field.</summary>
689     public const int OptionalSfixed32FieldNumber = 9;
690     private readonly static int OptionalSfixed32DefaultValue = 0;
691 
692     private int optionalSfixed32_;
693     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
694     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
695     public int OptionalSfixed32 {
696       get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } }
697       set {
698         _hasBits0 |= 256;
699         optionalSfixed32_ = value;
700       }
701     }
702     /// <summary>Gets whether the "optional_sfixed32" field is set</summary>
703     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
704     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
705     public bool HasOptionalSfixed32 {
706       get { return (_hasBits0 & 256) != 0; }
707     }
708     /// <summary>Clears the value of the "optional_sfixed32" field</summary>
709     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
710     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSfixed32()711     public void ClearOptionalSfixed32() {
712       _hasBits0 &= ~256;
713     }
714 
715     /// <summary>Field number for the "optional_sfixed64" field.</summary>
716     public const int OptionalSfixed64FieldNumber = 10;
717     private readonly static long OptionalSfixed64DefaultValue = 0L;
718 
719     private long optionalSfixed64_;
720     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
721     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
722     public long OptionalSfixed64 {
723       get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } }
724       set {
725         _hasBits0 |= 512;
726         optionalSfixed64_ = value;
727       }
728     }
729     /// <summary>Gets whether the "optional_sfixed64" field is set</summary>
730     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
731     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
732     public bool HasOptionalSfixed64 {
733       get { return (_hasBits0 & 512) != 0; }
734     }
735     /// <summary>Clears the value of the "optional_sfixed64" field</summary>
736     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
737     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalSfixed64()738     public void ClearOptionalSfixed64() {
739       _hasBits0 &= ~512;
740     }
741 
742     /// <summary>Field number for the "optional_float" field.</summary>
743     public const int OptionalFloatFieldNumber = 11;
744     private readonly static float OptionalFloatDefaultValue = 0F;
745 
746     private float optionalFloat_;
747     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
748     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
749     public float OptionalFloat {
750       get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } }
751       set {
752         _hasBits0 |= 1024;
753         optionalFloat_ = value;
754       }
755     }
756     /// <summary>Gets whether the "optional_float" field is set</summary>
757     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
758     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
759     public bool HasOptionalFloat {
760       get { return (_hasBits0 & 1024) != 0; }
761     }
762     /// <summary>Clears the value of the "optional_float" field</summary>
763     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
764     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalFloat()765     public void ClearOptionalFloat() {
766       _hasBits0 &= ~1024;
767     }
768 
769     /// <summary>Field number for the "optional_double" field.</summary>
770     public const int OptionalDoubleFieldNumber = 12;
771     private readonly static double OptionalDoubleDefaultValue = 0D;
772 
773     private double optionalDouble_;
774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
775     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
776     public double OptionalDouble {
777       get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } }
778       set {
779         _hasBits0 |= 2048;
780         optionalDouble_ = value;
781       }
782     }
783     /// <summary>Gets whether the "optional_double" field is set</summary>
784     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
785     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
786     public bool HasOptionalDouble {
787       get { return (_hasBits0 & 2048) != 0; }
788     }
789     /// <summary>Clears the value of the "optional_double" field</summary>
790     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
791     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalDouble()792     public void ClearOptionalDouble() {
793       _hasBits0 &= ~2048;
794     }
795 
796     /// <summary>Field number for the "optional_bool" field.</summary>
797     public const int OptionalBoolFieldNumber = 13;
798     private readonly static bool OptionalBoolDefaultValue = false;
799 
800     private bool optionalBool_;
801     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
802     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
803     public bool OptionalBool {
804       get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
805       set {
806         _hasBits0 |= 4096;
807         optionalBool_ = value;
808       }
809     }
810     /// <summary>Gets whether the "optional_bool" field is set</summary>
811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
812     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
813     public bool HasOptionalBool {
814       get { return (_hasBits0 & 4096) != 0; }
815     }
816     /// <summary>Clears the value of the "optional_bool" field</summary>
817     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
818     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBool()819     public void ClearOptionalBool() {
820       _hasBits0 &= ~4096;
821     }
822 
823     /// <summary>Field number for the "optional_string" field.</summary>
824     public const int OptionalStringFieldNumber = 14;
825     private readonly static string OptionalStringDefaultValue = "";
826 
827     private string optionalString_;
828     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
829     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
830     public string OptionalString {
831       get { return optionalString_ ?? OptionalStringDefaultValue; }
832       set {
833         optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
834       }
835     }
836     /// <summary>Gets whether the "optional_string" field is set</summary>
837     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
839     public bool HasOptionalString {
840       get { return optionalString_ != null; }
841     }
842     /// <summary>Clears the value of the "optional_string" field</summary>
843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
844     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalString()845     public void ClearOptionalString() {
846       optionalString_ = null;
847     }
848 
849     /// <summary>Field number for the "optional_bytes" field.</summary>
850     public const int OptionalBytesFieldNumber = 15;
851     private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
852 
853     private pb::ByteString optionalBytes_;
854     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
855     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
856     public pb::ByteString OptionalBytes {
857       get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
858       set {
859         optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
860       }
861     }
862     /// <summary>Gets whether the "optional_bytes" field is set</summary>
863     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
864     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
865     public bool HasOptionalBytes {
866       get { return optionalBytes_ != null; }
867     }
868     /// <summary>Clears the value of the "optional_bytes" field</summary>
869     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
870     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBytes()871     public void ClearOptionalBytes() {
872       optionalBytes_ = null;
873     }
874 
875     /// <summary>Field number for the "optional_nested_message" field.</summary>
876     public const int OptionalNestedMessageFieldNumber = 18;
877     private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage optionalNestedMessage_;
878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
879     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
880     public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage OptionalNestedMessage {
881       get { return optionalNestedMessage_; }
882       set {
883         optionalNestedMessage_ = value;
884       }
885     }
886 
887     /// <summary>Field number for the "optional_foreign_message" field.</summary>
888     public const int OptionalForeignMessageFieldNumber = 19;
889     private global::ProtobufTestMessages.Proto2.ForeignMessageProto2 optionalForeignMessage_;
890     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
891     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
892     public global::ProtobufTestMessages.Proto2.ForeignMessageProto2 OptionalForeignMessage {
893       get { return optionalForeignMessage_; }
894       set {
895         optionalForeignMessage_ = value;
896       }
897     }
898 
899     /// <summary>Field number for the "optional_nested_enum" field.</summary>
900     public const int OptionalNestedEnumFieldNumber = 21;
901     private readonly static global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnumDefaultValue = global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo;
902 
903     private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum optionalNestedEnum_;
904     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
905     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
906     public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnum {
907       get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } }
908       set {
909         _hasBits0 |= 8192;
910         optionalNestedEnum_ = value;
911       }
912     }
913     /// <summary>Gets whether the "optional_nested_enum" field is set</summary>
914     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
915     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
916     public bool HasOptionalNestedEnum {
917       get { return (_hasBits0 & 8192) != 0; }
918     }
919     /// <summary>Clears the value of the "optional_nested_enum" field</summary>
920     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
921     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalNestedEnum()922     public void ClearOptionalNestedEnum() {
923       _hasBits0 &= ~8192;
924     }
925 
926     /// <summary>Field number for the "optional_foreign_enum" field.</summary>
927     public const int OptionalForeignEnumFieldNumber = 22;
928     private readonly static global::ProtobufTestMessages.Proto2.ForeignEnumProto2 OptionalForeignEnumDefaultValue = global::ProtobufTestMessages.Proto2.ForeignEnumProto2.ForeignFoo;
929 
930     private global::ProtobufTestMessages.Proto2.ForeignEnumProto2 optionalForeignEnum_;
931     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
932     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
933     public global::ProtobufTestMessages.Proto2.ForeignEnumProto2 OptionalForeignEnum {
934       get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
935       set {
936         _hasBits0 |= 16384;
937         optionalForeignEnum_ = value;
938       }
939     }
940     /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
941     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
942     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
943     public bool HasOptionalForeignEnum {
944       get { return (_hasBits0 & 16384) != 0; }
945     }
946     /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
947     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
948     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalForeignEnum()949     public void ClearOptionalForeignEnum() {
950       _hasBits0 &= ~16384;
951     }
952 
953     /// <summary>Field number for the "optional_string_piece" field.</summary>
954     public const int OptionalStringPieceFieldNumber = 24;
955     private readonly static string OptionalStringPieceDefaultValue = "";
956 
957     private string optionalStringPiece_;
958     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
959     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
960     public string OptionalStringPiece {
961       get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; }
962       set {
963         optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
964       }
965     }
966     /// <summary>Gets whether the "optional_string_piece" field is set</summary>
967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
968     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
969     public bool HasOptionalStringPiece {
970       get { return optionalStringPiece_ != null; }
971     }
972     /// <summary>Clears the value of the "optional_string_piece" field</summary>
973     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
974     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalStringPiece()975     public void ClearOptionalStringPiece() {
976       optionalStringPiece_ = null;
977     }
978 
979     /// <summary>Field number for the "optional_cord" field.</summary>
980     public const int OptionalCordFieldNumber = 25;
981     private readonly static string OptionalCordDefaultValue = "";
982 
983     private string optionalCord_;
984     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
985     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
986     public string OptionalCord {
987       get { return optionalCord_ ?? OptionalCordDefaultValue; }
988       set {
989         optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
990       }
991     }
992     /// <summary>Gets whether the "optional_cord" field is set</summary>
993     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
994     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
995     public bool HasOptionalCord {
996       get { return optionalCord_ != null; }
997     }
998     /// <summary>Clears the value of the "optional_cord" field</summary>
999     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1000     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalCord()1001     public void ClearOptionalCord() {
1002       optionalCord_ = null;
1003     }
1004 
1005     /// <summary>Field number for the "recursive_message" field.</summary>
1006     public const int RecursiveMessageFieldNumber = 27;
1007     private global::ProtobufTestMessages.Proto2.TestAllTypesProto2 recursiveMessage_;
1008     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1009     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1010     public global::ProtobufTestMessages.Proto2.TestAllTypesProto2 RecursiveMessage {
1011       get { return recursiveMessage_; }
1012       set {
1013         recursiveMessage_ = value;
1014       }
1015     }
1016 
1017     /// <summary>Field number for the "repeated_int32" field.</summary>
1018     public const int RepeatedInt32FieldNumber = 31;
1019     private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
1020         = pb::FieldCodec.ForInt32(248);
1021     private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
1022     /// <summary>
1023     /// Repeated
1024     /// </summary>
1025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1026     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1027     public pbc::RepeatedField<int> RepeatedInt32 {
1028       get { return repeatedInt32_; }
1029     }
1030 
1031     /// <summary>Field number for the "repeated_int64" field.</summary>
1032     public const int RepeatedInt64FieldNumber = 32;
1033     private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
1034         = pb::FieldCodec.ForInt64(256);
1035     private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
1036     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1037     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1038     public pbc::RepeatedField<long> RepeatedInt64 {
1039       get { return repeatedInt64_; }
1040     }
1041 
1042     /// <summary>Field number for the "repeated_uint32" field.</summary>
1043     public const int RepeatedUint32FieldNumber = 33;
1044     private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
1045         = pb::FieldCodec.ForUInt32(264);
1046     private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
1047     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1048     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1049     public pbc::RepeatedField<uint> RepeatedUint32 {
1050       get { return repeatedUint32_; }
1051     }
1052 
1053     /// <summary>Field number for the "repeated_uint64" field.</summary>
1054     public const int RepeatedUint64FieldNumber = 34;
1055     private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
1056         = pb::FieldCodec.ForUInt64(272);
1057     private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
1058     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1059     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1060     public pbc::RepeatedField<ulong> RepeatedUint64 {
1061       get { return repeatedUint64_; }
1062     }
1063 
1064     /// <summary>Field number for the "repeated_sint32" field.</summary>
1065     public const int RepeatedSint32FieldNumber = 35;
1066     private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
1067         = pb::FieldCodec.ForSInt32(280);
1068     private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
1069     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1070     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1071     public pbc::RepeatedField<int> RepeatedSint32 {
1072       get { return repeatedSint32_; }
1073     }
1074 
1075     /// <summary>Field number for the "repeated_sint64" field.</summary>
1076     public const int RepeatedSint64FieldNumber = 36;
1077     private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
1078         = pb::FieldCodec.ForSInt64(288);
1079     private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
1080     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1081     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1082     public pbc::RepeatedField<long> RepeatedSint64 {
1083       get { return repeatedSint64_; }
1084     }
1085 
1086     /// <summary>Field number for the "repeated_fixed32" field.</summary>
1087     public const int RepeatedFixed32FieldNumber = 37;
1088     private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
1089         = pb::FieldCodec.ForFixed32(301);
1090     private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
1091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1092     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1093     public pbc::RepeatedField<uint> RepeatedFixed32 {
1094       get { return repeatedFixed32_; }
1095     }
1096 
1097     /// <summary>Field number for the "repeated_fixed64" field.</summary>
1098     public const int RepeatedFixed64FieldNumber = 38;
1099     private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
1100         = pb::FieldCodec.ForFixed64(305);
1101     private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
1102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1103     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1104     public pbc::RepeatedField<ulong> RepeatedFixed64 {
1105       get { return repeatedFixed64_; }
1106     }
1107 
1108     /// <summary>Field number for the "repeated_sfixed32" field.</summary>
1109     public const int RepeatedSfixed32FieldNumber = 39;
1110     private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
1111         = pb::FieldCodec.ForSFixed32(317);
1112     private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
1113     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1114     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1115     public pbc::RepeatedField<int> RepeatedSfixed32 {
1116       get { return repeatedSfixed32_; }
1117     }
1118 
1119     /// <summary>Field number for the "repeated_sfixed64" field.</summary>
1120     public const int RepeatedSfixed64FieldNumber = 40;
1121     private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
1122         = pb::FieldCodec.ForSFixed64(321);
1123     private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
1124     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1125     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1126     public pbc::RepeatedField<long> RepeatedSfixed64 {
1127       get { return repeatedSfixed64_; }
1128     }
1129 
1130     /// <summary>Field number for the "repeated_float" field.</summary>
1131     public const int RepeatedFloatFieldNumber = 41;
1132     private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
1133         = pb::FieldCodec.ForFloat(333);
1134     private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
1135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1136     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1137     public pbc::RepeatedField<float> RepeatedFloat {
1138       get { return repeatedFloat_; }
1139     }
1140 
1141     /// <summary>Field number for the "repeated_double" field.</summary>
1142     public const int RepeatedDoubleFieldNumber = 42;
1143     private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
1144         = pb::FieldCodec.ForDouble(337);
1145     private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
1146     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1147     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1148     public pbc::RepeatedField<double> RepeatedDouble {
1149       get { return repeatedDouble_; }
1150     }
1151 
1152     /// <summary>Field number for the "repeated_bool" field.</summary>
1153     public const int RepeatedBoolFieldNumber = 43;
1154     private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
1155         = pb::FieldCodec.ForBool(344);
1156     private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
1157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1158     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1159     public pbc::RepeatedField<bool> RepeatedBool {
1160       get { return repeatedBool_; }
1161     }
1162 
1163     /// <summary>Field number for the "repeated_string" field.</summary>
1164     public const int RepeatedStringFieldNumber = 44;
1165     private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
1166         = pb::FieldCodec.ForString(354);
1167     private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
1168     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1169     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1170     public pbc::RepeatedField<string> RepeatedString {
1171       get { return repeatedString_; }
1172     }
1173 
1174     /// <summary>Field number for the "repeated_bytes" field.</summary>
1175     public const int RepeatedBytesFieldNumber = 45;
1176     private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
1177         = pb::FieldCodec.ForBytes(362);
1178     private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
1179     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1180     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1181     public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
1182       get { return repeatedBytes_; }
1183     }
1184 
1185     /// <summary>Field number for the "repeated_nested_message" field.</summary>
1186     public const int RepeatedNestedMessageFieldNumber = 48;
1187     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
1188         = pb::FieldCodec.ForMessage(386, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser);
1189     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>();
1190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1191     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1192     public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> RepeatedNestedMessage {
1193       get { return repeatedNestedMessage_; }
1194     }
1195 
1196     /// <summary>Field number for the "repeated_foreign_message" field.</summary>
1197     public const int RepeatedForeignMessageFieldNumber = 49;
1198     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> _repeated_repeatedForeignMessage_codec
1199         = pb::FieldCodec.ForMessage(394, global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser);
1200     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> repeatedForeignMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2>();
1201     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1202     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1203     public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> RepeatedForeignMessage {
1204       get { return repeatedForeignMessage_; }
1205     }
1206 
1207     /// <summary>Field number for the "repeated_nested_enum" field.</summary>
1208     public const int RepeatedNestedEnumFieldNumber = 51;
1209     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
1210         = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
1211     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1213     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1214     public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> RepeatedNestedEnum {
1215       get { return repeatedNestedEnum_; }
1216     }
1217 
1218     /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
1219     public const int RepeatedForeignEnumFieldNumber = 52;
1220     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> _repeated_repeatedForeignEnum_codec
1221         = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) x);
1222     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> repeatedForeignEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2>();
1223     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1224     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1225     public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> RepeatedForeignEnum {
1226       get { return repeatedForeignEnum_; }
1227     }
1228 
1229     /// <summary>Field number for the "repeated_string_piece" field.</summary>
1230     public const int RepeatedStringPieceFieldNumber = 54;
1231     private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
1232         = pb::FieldCodec.ForString(434);
1233     private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
1234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1235     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1236     public pbc::RepeatedField<string> RepeatedStringPiece {
1237       get { return repeatedStringPiece_; }
1238     }
1239 
1240     /// <summary>Field number for the "repeated_cord" field.</summary>
1241     public const int RepeatedCordFieldNumber = 55;
1242     private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
1243         = pb::FieldCodec.ForString(442);
1244     private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
1245     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1246     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1247     public pbc::RepeatedField<string> RepeatedCord {
1248       get { return repeatedCord_; }
1249     }
1250 
1251     /// <summary>Field number for the "packed_int32" field.</summary>
1252     public const int PackedInt32FieldNumber = 75;
1253     private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
1254         = pb::FieldCodec.ForInt32(602);
1255     private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
1256     /// <summary>
1257     /// Packed
1258     /// </summary>
1259     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1260     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1261     public pbc::RepeatedField<int> PackedInt32 {
1262       get { return packedInt32_; }
1263     }
1264 
1265     /// <summary>Field number for the "packed_int64" field.</summary>
1266     public const int PackedInt64FieldNumber = 76;
1267     private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
1268         = pb::FieldCodec.ForInt64(610);
1269     private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
1270     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1271     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1272     public pbc::RepeatedField<long> PackedInt64 {
1273       get { return packedInt64_; }
1274     }
1275 
1276     /// <summary>Field number for the "packed_uint32" field.</summary>
1277     public const int PackedUint32FieldNumber = 77;
1278     private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
1279         = pb::FieldCodec.ForUInt32(618);
1280     private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
1281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1283     public pbc::RepeatedField<uint> PackedUint32 {
1284       get { return packedUint32_; }
1285     }
1286 
1287     /// <summary>Field number for the "packed_uint64" field.</summary>
1288     public const int PackedUint64FieldNumber = 78;
1289     private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
1290         = pb::FieldCodec.ForUInt64(626);
1291     private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
1292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1293     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1294     public pbc::RepeatedField<ulong> PackedUint64 {
1295       get { return packedUint64_; }
1296     }
1297 
1298     /// <summary>Field number for the "packed_sint32" field.</summary>
1299     public const int PackedSint32FieldNumber = 79;
1300     private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
1301         = pb::FieldCodec.ForSInt32(634);
1302     private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
1303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1304     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1305     public pbc::RepeatedField<int> PackedSint32 {
1306       get { return packedSint32_; }
1307     }
1308 
1309     /// <summary>Field number for the "packed_sint64" field.</summary>
1310     public const int PackedSint64FieldNumber = 80;
1311     private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
1312         = pb::FieldCodec.ForSInt64(642);
1313     private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
1314     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1315     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1316     public pbc::RepeatedField<long> PackedSint64 {
1317       get { return packedSint64_; }
1318     }
1319 
1320     /// <summary>Field number for the "packed_fixed32" field.</summary>
1321     public const int PackedFixed32FieldNumber = 81;
1322     private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
1323         = pb::FieldCodec.ForFixed32(650);
1324     private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
1325     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1326     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1327     public pbc::RepeatedField<uint> PackedFixed32 {
1328       get { return packedFixed32_; }
1329     }
1330 
1331     /// <summary>Field number for the "packed_fixed64" field.</summary>
1332     public const int PackedFixed64FieldNumber = 82;
1333     private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
1334         = pb::FieldCodec.ForFixed64(658);
1335     private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
1336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1337     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1338     public pbc::RepeatedField<ulong> PackedFixed64 {
1339       get { return packedFixed64_; }
1340     }
1341 
1342     /// <summary>Field number for the "packed_sfixed32" field.</summary>
1343     public const int PackedSfixed32FieldNumber = 83;
1344     private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
1345         = pb::FieldCodec.ForSFixed32(666);
1346     private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
1347     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1348     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1349     public pbc::RepeatedField<int> PackedSfixed32 {
1350       get { return packedSfixed32_; }
1351     }
1352 
1353     /// <summary>Field number for the "packed_sfixed64" field.</summary>
1354     public const int PackedSfixed64FieldNumber = 84;
1355     private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
1356         = pb::FieldCodec.ForSFixed64(674);
1357     private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
1358     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1359     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1360     public pbc::RepeatedField<long> PackedSfixed64 {
1361       get { return packedSfixed64_; }
1362     }
1363 
1364     /// <summary>Field number for the "packed_float" field.</summary>
1365     public const int PackedFloatFieldNumber = 85;
1366     private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
1367         = pb::FieldCodec.ForFloat(682);
1368     private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
1369     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1370     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1371     public pbc::RepeatedField<float> PackedFloat {
1372       get { return packedFloat_; }
1373     }
1374 
1375     /// <summary>Field number for the "packed_double" field.</summary>
1376     public const int PackedDoubleFieldNumber = 86;
1377     private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
1378         = pb::FieldCodec.ForDouble(690);
1379     private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
1380     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1381     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1382     public pbc::RepeatedField<double> PackedDouble {
1383       get { return packedDouble_; }
1384     }
1385 
1386     /// <summary>Field number for the "packed_bool" field.</summary>
1387     public const int PackedBoolFieldNumber = 87;
1388     private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
1389         = pb::FieldCodec.ForBool(698);
1390     private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
1391     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1392     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1393     public pbc::RepeatedField<bool> PackedBool {
1394       get { return packedBool_; }
1395     }
1396 
1397     /// <summary>Field number for the "packed_nested_enum" field.</summary>
1398     public const int PackedNestedEnumFieldNumber = 88;
1399     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_packedNestedEnum_codec
1400         = pb::FieldCodec.ForEnum(706, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
1401     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> packedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1402     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1403     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1404     public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> PackedNestedEnum {
1405       get { return packedNestedEnum_; }
1406     }
1407 
1408     /// <summary>Field number for the "unpacked_int32" field.</summary>
1409     public const int UnpackedInt32FieldNumber = 89;
1410     private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
1411         = pb::FieldCodec.ForInt32(712);
1412     private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
1413     /// <summary>
1414     /// Unpacked
1415     /// </summary>
1416     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1417     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1418     public pbc::RepeatedField<int> UnpackedInt32 {
1419       get { return unpackedInt32_; }
1420     }
1421 
1422     /// <summary>Field number for the "unpacked_int64" field.</summary>
1423     public const int UnpackedInt64FieldNumber = 90;
1424     private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
1425         = pb::FieldCodec.ForInt64(720);
1426     private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
1427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1428     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1429     public pbc::RepeatedField<long> UnpackedInt64 {
1430       get { return unpackedInt64_; }
1431     }
1432 
1433     /// <summary>Field number for the "unpacked_uint32" field.</summary>
1434     public const int UnpackedUint32FieldNumber = 91;
1435     private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
1436         = pb::FieldCodec.ForUInt32(728);
1437     private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
1438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1439     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1440     public pbc::RepeatedField<uint> UnpackedUint32 {
1441       get { return unpackedUint32_; }
1442     }
1443 
1444     /// <summary>Field number for the "unpacked_uint64" field.</summary>
1445     public const int UnpackedUint64FieldNumber = 92;
1446     private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
1447         = pb::FieldCodec.ForUInt64(736);
1448     private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
1449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1450     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1451     public pbc::RepeatedField<ulong> UnpackedUint64 {
1452       get { return unpackedUint64_; }
1453     }
1454 
1455     /// <summary>Field number for the "unpacked_sint32" field.</summary>
1456     public const int UnpackedSint32FieldNumber = 93;
1457     private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
1458         = pb::FieldCodec.ForSInt32(744);
1459     private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
1460     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1461     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1462     public pbc::RepeatedField<int> UnpackedSint32 {
1463       get { return unpackedSint32_; }
1464     }
1465 
1466     /// <summary>Field number for the "unpacked_sint64" field.</summary>
1467     public const int UnpackedSint64FieldNumber = 94;
1468     private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
1469         = pb::FieldCodec.ForSInt64(752);
1470     private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
1471     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1472     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1473     public pbc::RepeatedField<long> UnpackedSint64 {
1474       get { return unpackedSint64_; }
1475     }
1476 
1477     /// <summary>Field number for the "unpacked_fixed32" field.</summary>
1478     public const int UnpackedFixed32FieldNumber = 95;
1479     private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
1480         = pb::FieldCodec.ForFixed32(765);
1481     private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
1482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1483     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1484     public pbc::RepeatedField<uint> UnpackedFixed32 {
1485       get { return unpackedFixed32_; }
1486     }
1487 
1488     /// <summary>Field number for the "unpacked_fixed64" field.</summary>
1489     public const int UnpackedFixed64FieldNumber = 96;
1490     private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
1491         = pb::FieldCodec.ForFixed64(769);
1492     private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
1493     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1494     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1495     public pbc::RepeatedField<ulong> UnpackedFixed64 {
1496       get { return unpackedFixed64_; }
1497     }
1498 
1499     /// <summary>Field number for the "unpacked_sfixed32" field.</summary>
1500     public const int UnpackedSfixed32FieldNumber = 97;
1501     private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
1502         = pb::FieldCodec.ForSFixed32(781);
1503     private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
1504     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1505     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1506     public pbc::RepeatedField<int> UnpackedSfixed32 {
1507       get { return unpackedSfixed32_; }
1508     }
1509 
1510     /// <summary>Field number for the "unpacked_sfixed64" field.</summary>
1511     public const int UnpackedSfixed64FieldNumber = 98;
1512     private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
1513         = pb::FieldCodec.ForSFixed64(785);
1514     private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
1515     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1516     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1517     public pbc::RepeatedField<long> UnpackedSfixed64 {
1518       get { return unpackedSfixed64_; }
1519     }
1520 
1521     /// <summary>Field number for the "unpacked_float" field.</summary>
1522     public const int UnpackedFloatFieldNumber = 99;
1523     private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
1524         = pb::FieldCodec.ForFloat(797);
1525     private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
1526     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1527     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1528     public pbc::RepeatedField<float> UnpackedFloat {
1529       get { return unpackedFloat_; }
1530     }
1531 
1532     /// <summary>Field number for the "unpacked_double" field.</summary>
1533     public const int UnpackedDoubleFieldNumber = 100;
1534     private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
1535         = pb::FieldCodec.ForDouble(801);
1536     private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
1537     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1538     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1539     public pbc::RepeatedField<double> UnpackedDouble {
1540       get { return unpackedDouble_; }
1541     }
1542 
1543     /// <summary>Field number for the "unpacked_bool" field.</summary>
1544     public const int UnpackedBoolFieldNumber = 101;
1545     private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
1546         = pb::FieldCodec.ForBool(808);
1547     private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
1548     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1549     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1550     public pbc::RepeatedField<bool> UnpackedBool {
1551       get { return unpackedBool_; }
1552     }
1553 
1554     /// <summary>Field number for the "unpacked_nested_enum" field.</summary>
1555     public const int UnpackedNestedEnumFieldNumber = 102;
1556     private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_unpackedNestedEnum_codec
1557         = pb::FieldCodec.ForEnum(816, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
1558     private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> unpackedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1559     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1560     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1561     public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> UnpackedNestedEnum {
1562       get { return unpackedNestedEnum_; }
1563     }
1564 
1565     /// <summary>Field number for the "map_int32_int32" field.</summary>
1566     public const int MapInt32Int32FieldNumber = 56;
1567     private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
1568         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 450);
1569     private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
1570     /// <summary>
1571     /// Map
1572     /// </summary>
1573     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1574     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1575     public pbc::MapField<int, int> MapInt32Int32 {
1576       get { return mapInt32Int32_; }
1577     }
1578 
1579     /// <summary>Field number for the "map_int64_int64" field.</summary>
1580     public const int MapInt64Int64FieldNumber = 57;
1581     private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
1582         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, 0L), 458);
1583     private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
1584     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1585     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1586     public pbc::MapField<long, long> MapInt64Int64 {
1587       get { return mapInt64Int64_; }
1588     }
1589 
1590     /// <summary>Field number for the "map_uint32_uint32" field.</summary>
1591     public const int MapUint32Uint32FieldNumber = 58;
1592     private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
1593         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 466);
1594     private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
1595     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1596     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1597     public pbc::MapField<uint, uint> MapUint32Uint32 {
1598       get { return mapUint32Uint32_; }
1599     }
1600 
1601     /// <summary>Field number for the "map_uint64_uint64" field.</summary>
1602     public const int MapUint64Uint64FieldNumber = 59;
1603     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
1604         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 474);
1605     private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
1606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1607     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1608     public pbc::MapField<ulong, ulong> MapUint64Uint64 {
1609       get { return mapUint64Uint64_; }
1610     }
1611 
1612     /// <summary>Field number for the "map_sint32_sint32" field.</summary>
1613     public const int MapSint32Sint32FieldNumber = 60;
1614     private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
1615         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8, 0), pb::FieldCodec.ForSInt32(16, 0), 482);
1616     private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
1617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1618     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1619     public pbc::MapField<int, int> MapSint32Sint32 {
1620       get { return mapSint32Sint32_; }
1621     }
1622 
1623     /// <summary>Field number for the "map_sint64_sint64" field.</summary>
1624     public const int MapSint64Sint64FieldNumber = 61;
1625     private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
1626         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8, 0L), pb::FieldCodec.ForSInt64(16, 0L), 490);
1627     private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
1628     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1629     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1630     public pbc::MapField<long, long> MapSint64Sint64 {
1631       get { return mapSint64Sint64_; }
1632     }
1633 
1634     /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
1635     public const int MapFixed32Fixed32FieldNumber = 62;
1636     private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
1637         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13, 0), pb::FieldCodec.ForFixed32(21, 0), 498);
1638     private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
1639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1640     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1641     public pbc::MapField<uint, uint> MapFixed32Fixed32 {
1642       get { return mapFixed32Fixed32_; }
1643     }
1644 
1645     /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
1646     public const int MapFixed64Fixed64FieldNumber = 63;
1647     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
1648         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 506);
1649     private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
1650     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1651     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1652     public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
1653       get { return mapFixed64Fixed64_; }
1654     }
1655 
1656     /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
1657     public const int MapSfixed32Sfixed32FieldNumber = 64;
1658     private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
1659         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13, 0), pb::FieldCodec.ForSFixed32(21, 0), 514);
1660     private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
1661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1662     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1663     public pbc::MapField<int, int> MapSfixed32Sfixed32 {
1664       get { return mapSfixed32Sfixed32_; }
1665     }
1666 
1667     /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
1668     public const int MapSfixed64Sfixed64FieldNumber = 65;
1669     private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
1670         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 522);
1671     private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
1672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1673     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1674     public pbc::MapField<long, long> MapSfixed64Sfixed64 {
1675       get { return mapSfixed64Sfixed64_; }
1676     }
1677 
1678     /// <summary>Field number for the "map_int32_float" field.</summary>
1679     public const int MapInt32FloatFieldNumber = 66;
1680     private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
1681         = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForFloat(21, 0F), 530);
1682     private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
1683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1684     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1685     public pbc::MapField<int, float> MapInt32Float {
1686       get { return mapInt32Float_; }
1687     }
1688 
1689     /// <summary>Field number for the "map_int32_double" field.</summary>
1690     public const int MapInt32DoubleFieldNumber = 67;
1691     private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
1692         = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForDouble(17, 0D), 538);
1693     private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
1694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1695     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1696     public pbc::MapField<int, double> MapInt32Double {
1697       get { return mapInt32Double_; }
1698     }
1699 
1700     /// <summary>Field number for the "map_bool_bool" field.</summary>
1701     public const int MapBoolBoolFieldNumber = 68;
1702     private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
1703         = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8, false), pb::FieldCodec.ForBool(16, false), 546);
1704     private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
1705     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1706     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1707     public pbc::MapField<bool, bool> MapBoolBool {
1708       get { return mapBoolBool_; }
1709     }
1710 
1711     /// <summary>Field number for the "map_string_string" field.</summary>
1712     public const int MapStringStringFieldNumber = 69;
1713     private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
1714         = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 554);
1715     private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
1716     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1717     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1718     public pbc::MapField<string, string> MapStringString {
1719       get { return mapStringString_; }
1720     }
1721 
1722     /// <summary>Field number for the "map_string_bytes" field.</summary>
1723     public const int MapStringBytesFieldNumber = 70;
1724     private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_mapStringBytes_codec
1725         = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 562);
1726     private readonly pbc::MapField<string, pb::ByteString> mapStringBytes_ = new pbc::MapField<string, pb::ByteString>();
1727     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1728     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1729     public pbc::MapField<string, pb::ByteString> MapStringBytes {
1730       get { return mapStringBytes_; }
1731     }
1732 
1733     /// <summary>Field number for the "map_string_nested_message" field.</summary>
1734     public const int MapStringNestedMessageFieldNumber = 71;
1735     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec _map_mapStringNestedMessage_codec
1736         = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser), 570);
1737     private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> mapStringNestedMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>();
1738     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1739     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1740     public pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> MapStringNestedMessage {
1741       get { return mapStringNestedMessage_; }
1742     }
1743 
1744     /// <summary>Field number for the "map_string_foreign_message" field.</summary>
1745     public const int MapStringForeignMessageFieldNumber = 72;
1746     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>.Codec _map_mapStringForeignMessage_codec
1747         = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser), 578);
1748     private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2> mapStringForeignMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>();
1749     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1750     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1751     public pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2> MapStringForeignMessage {
1752       get { return mapStringForeignMessage_; }
1753     }
1754 
1755     /// <summary>Field number for the "map_string_nested_enum" field.</summary>
1756     public const int MapStringNestedEnumFieldNumber = 73;
1757     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec _map_mapStringNestedEnum_codec
1758         = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo), 586);
1759     private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> mapStringNestedEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1760     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1761     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1762     public pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> MapStringNestedEnum {
1763       get { return mapStringNestedEnum_; }
1764     }
1765 
1766     /// <summary>Field number for the "map_string_foreign_enum" field.</summary>
1767     public const int MapStringForeignEnumFieldNumber = 74;
1768     private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>.Codec _map_mapStringForeignEnum_codec
1769         = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) x, global::ProtobufTestMessages.Proto2.ForeignEnumProto2.ForeignFoo), 594);
1770     private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2> mapStringForeignEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>();
1771     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1772     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1773     public pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2> MapStringForeignEnum {
1774       get { return mapStringForeignEnum_; }
1775     }
1776 
1777     /// <summary>Field number for the "oneof_uint32" field.</summary>
1778     public const int OneofUint32FieldNumber = 111;
1779     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1780     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1781     public uint OneofUint32 {
1782       get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
1783       set {
1784         oneofField_ = value;
1785         oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
1786       }
1787     }
1788     /// <summary>Gets whether the "oneof_uint32" field is set</summary>
1789     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1790     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1791     public bool HasOneofUint32 {
1792       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
1793     }
1794     /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
1795     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1796     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofUint32()1797     public void ClearOneofUint32() {
1798       if (HasOneofUint32) {
1799         ClearOneofField();
1800       }
1801     }
1802 
1803     /// <summary>Field number for the "oneof_nested_message" field.</summary>
1804     public const int OneofNestedMessageFieldNumber = 112;
1805     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1806     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1807     public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage OneofNestedMessage {
1808       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage) oneofField_ : null; }
1809       set {
1810         oneofField_ = value;
1811         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
1812       }
1813     }
1814 
1815     /// <summary>Field number for the "oneof_string" field.</summary>
1816     public const int OneofStringFieldNumber = 113;
1817     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1818     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1819     public string OneofString {
1820       get { return HasOneofString ? (string) oneofField_ : ""; }
1821       set {
1822         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1823         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
1824       }
1825     }
1826     /// <summary>Gets whether the "oneof_string" field is set</summary>
1827     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1828     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1829     public bool HasOneofString {
1830       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
1831     }
1832     /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
1833     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1834     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofString()1835     public void ClearOneofString() {
1836       if (HasOneofString) {
1837         ClearOneofField();
1838       }
1839     }
1840 
1841     /// <summary>Field number for the "oneof_bytes" field.</summary>
1842     public const int OneofBytesFieldNumber = 114;
1843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1844     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1845     public pb::ByteString OneofBytes {
1846       get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
1847       set {
1848         oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1849         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
1850       }
1851     }
1852     /// <summary>Gets whether the "oneof_bytes" field is set</summary>
1853     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1854     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1855     public bool HasOneofBytes {
1856       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
1857     }
1858     /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
1859     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1860     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofBytes()1861     public void ClearOneofBytes() {
1862       if (HasOneofBytes) {
1863         ClearOneofField();
1864       }
1865     }
1866 
1867     /// <summary>Field number for the "oneof_bool" field.</summary>
1868     public const int OneofBoolFieldNumber = 115;
1869     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1870     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1871     public bool OneofBool {
1872       get { return HasOneofBool ? (bool) oneofField_ : false; }
1873       set {
1874         oneofField_ = value;
1875         oneofFieldCase_ = OneofFieldOneofCase.OneofBool;
1876       }
1877     }
1878     /// <summary>Gets whether the "oneof_bool" field is set</summary>
1879     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1880     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1881     public bool HasOneofBool {
1882       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBool; }
1883     }
1884     /// <summary> Clears the value of the oneof if it's currently set to "oneof_bool" </summary>
1885     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1886     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofBool()1887     public void ClearOneofBool() {
1888       if (HasOneofBool) {
1889         ClearOneofField();
1890       }
1891     }
1892 
1893     /// <summary>Field number for the "oneof_uint64" field.</summary>
1894     public const int OneofUint64FieldNumber = 116;
1895     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1896     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1897     public ulong OneofUint64 {
1898       get { return HasOneofUint64 ? (ulong) oneofField_ : 0UL; }
1899       set {
1900         oneofField_ = value;
1901         oneofFieldCase_ = OneofFieldOneofCase.OneofUint64;
1902       }
1903     }
1904     /// <summary>Gets whether the "oneof_uint64" field is set</summary>
1905     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1906     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1907     public bool HasOneofUint64 {
1908       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint64; }
1909     }
1910     /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint64" </summary>
1911     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1912     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofUint64()1913     public void ClearOneofUint64() {
1914       if (HasOneofUint64) {
1915         ClearOneofField();
1916       }
1917     }
1918 
1919     /// <summary>Field number for the "oneof_float" field.</summary>
1920     public const int OneofFloatFieldNumber = 117;
1921     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1922     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1923     public float OneofFloat {
1924       get { return HasOneofFloat ? (float) oneofField_ : 0F; }
1925       set {
1926         oneofField_ = value;
1927         oneofFieldCase_ = OneofFieldOneofCase.OneofFloat;
1928       }
1929     }
1930     /// <summary>Gets whether the "oneof_float" field is set</summary>
1931     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1932     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1933     public bool HasOneofFloat {
1934       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofFloat; }
1935     }
1936     /// <summary> Clears the value of the oneof if it's currently set to "oneof_float" </summary>
1937     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1938     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofFloat()1939     public void ClearOneofFloat() {
1940       if (HasOneofFloat) {
1941         ClearOneofField();
1942       }
1943     }
1944 
1945     /// <summary>Field number for the "oneof_double" field.</summary>
1946     public const int OneofDoubleFieldNumber = 118;
1947     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1948     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1949     public double OneofDouble {
1950       get { return HasOneofDouble ? (double) oneofField_ : 0D; }
1951       set {
1952         oneofField_ = value;
1953         oneofFieldCase_ = OneofFieldOneofCase.OneofDouble;
1954       }
1955     }
1956     /// <summary>Gets whether the "oneof_double" field is set</summary>
1957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1958     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1959     public bool HasOneofDouble {
1960       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofDouble; }
1961     }
1962     /// <summary> Clears the value of the oneof if it's currently set to "oneof_double" </summary>
1963     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1964     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofDouble()1965     public void ClearOneofDouble() {
1966       if (HasOneofDouble) {
1967         ClearOneofField();
1968       }
1969     }
1970 
1971     /// <summary>Field number for the "oneof_enum" field.</summary>
1972     public const int OneofEnumFieldNumber = 119;
1973     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1974     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1975     public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OneofEnum {
1976       get { return HasOneofEnum ? (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) oneofField_ : global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo; }
1977       set {
1978         oneofField_ = value;
1979         oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
1980       }
1981     }
1982     /// <summary>Gets whether the "oneof_enum" field is set</summary>
1983     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1984     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1985     public bool HasOneofEnum {
1986       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofEnum; }
1987     }
1988     /// <summary> Clears the value of the oneof if it's currently set to "oneof_enum" </summary>
1989     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1990     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofEnum()1991     public void ClearOneofEnum() {
1992       if (HasOneofEnum) {
1993         ClearOneofField();
1994       }
1995     }
1996 
1997     /// <summary>Field number for the "data" field.</summary>
1998     public const int DataFieldNumber = 201;
1999     private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data data_;
2000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2001     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2002     public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data Data {
2003       get { return data_; }
2004       set {
2005         data_ = value;
2006       }
2007     }
2008     /// <summary>Gets whether the data field is set</summary>
2009     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2010     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2011     public bool HasData {
2012       get { return data_ != null; }
2013     }
2014     /// <summary>Clears the value of the data field</summary>
2015     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2016     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()2017     public void ClearData() {
2018       data_ = null;
2019     }
2020 
2021     /// <summary>Field number for the "default_int32" field.</summary>
2022     public const int DefaultInt32FieldNumber = 241;
2023     private readonly static int DefaultInt32DefaultValue = -123456789;
2024 
2025     private int defaultInt32_;
2026     /// <summary>
2027     /// default values
2028     /// </summary>
2029     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2030     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2031     public int DefaultInt32 {
2032       get { if ((_hasBits0 & 32768) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } }
2033       set {
2034         _hasBits0 |= 32768;
2035         defaultInt32_ = value;
2036       }
2037     }
2038     /// <summary>Gets whether the "default_int32" field is set</summary>
2039     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2040     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2041     public bool HasDefaultInt32 {
2042       get { return (_hasBits0 & 32768) != 0; }
2043     }
2044     /// <summary>Clears the value of the "default_int32" field</summary>
2045     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2046     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt32()2047     public void ClearDefaultInt32() {
2048       _hasBits0 &= ~32768;
2049     }
2050 
2051     /// <summary>Field number for the "default_int64" field.</summary>
2052     public const int DefaultInt64FieldNumber = 242;
2053     private readonly static long DefaultInt64DefaultValue = -9123456789123456789L;
2054 
2055     private long defaultInt64_;
2056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2058     public long DefaultInt64 {
2059       get { if ((_hasBits0 & 65536) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } }
2060       set {
2061         _hasBits0 |= 65536;
2062         defaultInt64_ = value;
2063       }
2064     }
2065     /// <summary>Gets whether the "default_int64" field is set</summary>
2066     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2067     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2068     public bool HasDefaultInt64 {
2069       get { return (_hasBits0 & 65536) != 0; }
2070     }
2071     /// <summary>Clears the value of the "default_int64" field</summary>
2072     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2073     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultInt64()2074     public void ClearDefaultInt64() {
2075       _hasBits0 &= ~65536;
2076     }
2077 
2078     /// <summary>Field number for the "default_uint32" field.</summary>
2079     public const int DefaultUint32FieldNumber = 243;
2080     private readonly static uint DefaultUint32DefaultValue = 2123456789;
2081 
2082     private uint defaultUint32_;
2083     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2084     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2085     public uint DefaultUint32 {
2086       get { if ((_hasBits0 & 131072) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } }
2087       set {
2088         _hasBits0 |= 131072;
2089         defaultUint32_ = value;
2090       }
2091     }
2092     /// <summary>Gets whether the "default_uint32" field is set</summary>
2093     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2094     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2095     public bool HasDefaultUint32 {
2096       get { return (_hasBits0 & 131072) != 0; }
2097     }
2098     /// <summary>Clears the value of the "default_uint32" field</summary>
2099     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2100     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint32()2101     public void ClearDefaultUint32() {
2102       _hasBits0 &= ~131072;
2103     }
2104 
2105     /// <summary>Field number for the "default_uint64" field.</summary>
2106     public const int DefaultUint64FieldNumber = 244;
2107     private readonly static ulong DefaultUint64DefaultValue = 10123456789123456789UL;
2108 
2109     private ulong defaultUint64_;
2110     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2111     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2112     public ulong DefaultUint64 {
2113       get { if ((_hasBits0 & 262144) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } }
2114       set {
2115         _hasBits0 |= 262144;
2116         defaultUint64_ = value;
2117       }
2118     }
2119     /// <summary>Gets whether the "default_uint64" field is set</summary>
2120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2121     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2122     public bool HasDefaultUint64 {
2123       get { return (_hasBits0 & 262144) != 0; }
2124     }
2125     /// <summary>Clears the value of the "default_uint64" field</summary>
2126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2127     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultUint64()2128     public void ClearDefaultUint64() {
2129       _hasBits0 &= ~262144;
2130     }
2131 
2132     /// <summary>Field number for the "default_sint32" field.</summary>
2133     public const int DefaultSint32FieldNumber = 245;
2134     private readonly static int DefaultSint32DefaultValue = -123456789;
2135 
2136     private int defaultSint32_;
2137     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2138     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2139     public int DefaultSint32 {
2140       get { if ((_hasBits0 & 524288) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } }
2141       set {
2142         _hasBits0 |= 524288;
2143         defaultSint32_ = value;
2144       }
2145     }
2146     /// <summary>Gets whether the "default_sint32" field is set</summary>
2147     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2148     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2149     public bool HasDefaultSint32 {
2150       get { return (_hasBits0 & 524288) != 0; }
2151     }
2152     /// <summary>Clears the value of the "default_sint32" field</summary>
2153     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2154     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint32()2155     public void ClearDefaultSint32() {
2156       _hasBits0 &= ~524288;
2157     }
2158 
2159     /// <summary>Field number for the "default_sint64" field.</summary>
2160     public const int DefaultSint64FieldNumber = 246;
2161     private readonly static long DefaultSint64DefaultValue = -9123456789123456789L;
2162 
2163     private long defaultSint64_;
2164     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2165     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2166     public long DefaultSint64 {
2167       get { if ((_hasBits0 & 1048576) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } }
2168       set {
2169         _hasBits0 |= 1048576;
2170         defaultSint64_ = value;
2171       }
2172     }
2173     /// <summary>Gets whether the "default_sint64" field is set</summary>
2174     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2175     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2176     public bool HasDefaultSint64 {
2177       get { return (_hasBits0 & 1048576) != 0; }
2178     }
2179     /// <summary>Clears the value of the "default_sint64" field</summary>
2180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2181     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSint64()2182     public void ClearDefaultSint64() {
2183       _hasBits0 &= ~1048576;
2184     }
2185 
2186     /// <summary>Field number for the "default_fixed32" field.</summary>
2187     public const int DefaultFixed32FieldNumber = 247;
2188     private readonly static uint DefaultFixed32DefaultValue = 2123456789;
2189 
2190     private uint defaultFixed32_;
2191     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2192     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2193     public uint DefaultFixed32 {
2194       get { if ((_hasBits0 & 2097152) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } }
2195       set {
2196         _hasBits0 |= 2097152;
2197         defaultFixed32_ = value;
2198       }
2199     }
2200     /// <summary>Gets whether the "default_fixed32" field is set</summary>
2201     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2202     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2203     public bool HasDefaultFixed32 {
2204       get { return (_hasBits0 & 2097152) != 0; }
2205     }
2206     /// <summary>Clears the value of the "default_fixed32" field</summary>
2207     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2208     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed32()2209     public void ClearDefaultFixed32() {
2210       _hasBits0 &= ~2097152;
2211     }
2212 
2213     /// <summary>Field number for the "default_fixed64" field.</summary>
2214     public const int DefaultFixed64FieldNumber = 248;
2215     private readonly static ulong DefaultFixed64DefaultValue = 10123456789123456789UL;
2216 
2217     private ulong defaultFixed64_;
2218     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2219     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2220     public ulong DefaultFixed64 {
2221       get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } }
2222       set {
2223         _hasBits0 |= 4194304;
2224         defaultFixed64_ = value;
2225       }
2226     }
2227     /// <summary>Gets whether the "default_fixed64" field is set</summary>
2228     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2229     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2230     public bool HasDefaultFixed64 {
2231       get { return (_hasBits0 & 4194304) != 0; }
2232     }
2233     /// <summary>Clears the value of the "default_fixed64" field</summary>
2234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2235     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFixed64()2236     public void ClearDefaultFixed64() {
2237       _hasBits0 &= ~4194304;
2238     }
2239 
2240     /// <summary>Field number for the "default_sfixed32" field.</summary>
2241     public const int DefaultSfixed32FieldNumber = 249;
2242     private readonly static int DefaultSfixed32DefaultValue = -123456789;
2243 
2244     private int defaultSfixed32_;
2245     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2246     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2247     public int DefaultSfixed32 {
2248       get { if ((_hasBits0 & 8388608) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } }
2249       set {
2250         _hasBits0 |= 8388608;
2251         defaultSfixed32_ = value;
2252       }
2253     }
2254     /// <summary>Gets whether the "default_sfixed32" field is set</summary>
2255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2257     public bool HasDefaultSfixed32 {
2258       get { return (_hasBits0 & 8388608) != 0; }
2259     }
2260     /// <summary>Clears the value of the "default_sfixed32" field</summary>
2261     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2262     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed32()2263     public void ClearDefaultSfixed32() {
2264       _hasBits0 &= ~8388608;
2265     }
2266 
2267     /// <summary>Field number for the "default_sfixed64" field.</summary>
2268     public const int DefaultSfixed64FieldNumber = 250;
2269     private readonly static long DefaultSfixed64DefaultValue = -9123456789123456789L;
2270 
2271     private long defaultSfixed64_;
2272     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2273     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2274     public long DefaultSfixed64 {
2275       get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } }
2276       set {
2277         _hasBits0 |= 16777216;
2278         defaultSfixed64_ = value;
2279       }
2280     }
2281     /// <summary>Gets whether the "default_sfixed64" field is set</summary>
2282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2283     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2284     public bool HasDefaultSfixed64 {
2285       get { return (_hasBits0 & 16777216) != 0; }
2286     }
2287     /// <summary>Clears the value of the "default_sfixed64" field</summary>
2288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2289     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultSfixed64()2290     public void ClearDefaultSfixed64() {
2291       _hasBits0 &= ~16777216;
2292     }
2293 
2294     /// <summary>Field number for the "default_float" field.</summary>
2295     public const int DefaultFloatFieldNumber = 251;
2296     private readonly static float DefaultFloatDefaultValue = 9e+09F;
2297 
2298     private float defaultFloat_;
2299     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2300     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2301     public float DefaultFloat {
2302       get { if ((_hasBits0 & 33554432) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } }
2303       set {
2304         _hasBits0 |= 33554432;
2305         defaultFloat_ = value;
2306       }
2307     }
2308     /// <summary>Gets whether the "default_float" field is set</summary>
2309     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2310     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2311     public bool HasDefaultFloat {
2312       get { return (_hasBits0 & 33554432) != 0; }
2313     }
2314     /// <summary>Clears the value of the "default_float" field</summary>
2315     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2316     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultFloat()2317     public void ClearDefaultFloat() {
2318       _hasBits0 &= ~33554432;
2319     }
2320 
2321     /// <summary>Field number for the "default_double" field.</summary>
2322     public const int DefaultDoubleFieldNumber = 252;
2323     private readonly static double DefaultDoubleDefaultValue = 7e+22D;
2324 
2325     private double defaultDouble_;
2326     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2327     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2328     public double DefaultDouble {
2329       get { if ((_hasBits0 & 67108864) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } }
2330       set {
2331         _hasBits0 |= 67108864;
2332         defaultDouble_ = value;
2333       }
2334     }
2335     /// <summary>Gets whether the "default_double" field is set</summary>
2336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2337     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2338     public bool HasDefaultDouble {
2339       get { return (_hasBits0 & 67108864) != 0; }
2340     }
2341     /// <summary>Clears the value of the "default_double" field</summary>
2342     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2343     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultDouble()2344     public void ClearDefaultDouble() {
2345       _hasBits0 &= ~67108864;
2346     }
2347 
2348     /// <summary>Field number for the "default_bool" field.</summary>
2349     public const int DefaultBoolFieldNumber = 253;
2350     private readonly static bool DefaultBoolDefaultValue = true;
2351 
2352     private bool defaultBool_;
2353     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2354     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2355     public bool DefaultBool {
2356       get { if ((_hasBits0 & 134217728) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } }
2357       set {
2358         _hasBits0 |= 134217728;
2359         defaultBool_ = value;
2360       }
2361     }
2362     /// <summary>Gets whether the "default_bool" field is set</summary>
2363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2365     public bool HasDefaultBool {
2366       get { return (_hasBits0 & 134217728) != 0; }
2367     }
2368     /// <summary>Clears the value of the "default_bool" field</summary>
2369     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2370     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBool()2371     public void ClearDefaultBool() {
2372       _hasBits0 &= ~134217728;
2373     }
2374 
2375     /// <summary>Field number for the "default_string" field.</summary>
2376     public const int DefaultStringFieldNumber = 254;
2377     private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Um9zZWJ1ZA=="), 0, 7);
2378 
2379     private string defaultString_;
2380     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2381     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2382     public string DefaultString {
2383       get { return defaultString_ ?? DefaultStringDefaultValue; }
2384       set {
2385         defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2386       }
2387     }
2388     /// <summary>Gets whether the "default_string" field is set</summary>
2389     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2390     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2391     public bool HasDefaultString {
2392       get { return defaultString_ != null; }
2393     }
2394     /// <summary>Clears the value of the "default_string" field</summary>
2395     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2396     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultString()2397     public void ClearDefaultString() {
2398       defaultString_ = null;
2399     }
2400 
2401     /// <summary>Field number for the "default_bytes" field.</summary>
2402     public const int DefaultBytesFieldNumber = 255;
2403     private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("am9zaHVh");
2404 
2405     private pb::ByteString defaultBytes_;
2406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2408     public pb::ByteString DefaultBytes {
2409       get { return defaultBytes_ ?? DefaultBytesDefaultValue; }
2410       set {
2411         defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2412       }
2413     }
2414     /// <summary>Gets whether the "default_bytes" field is set</summary>
2415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2416     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2417     public bool HasDefaultBytes {
2418       get { return defaultBytes_ != null; }
2419     }
2420     /// <summary>Clears the value of the "default_bytes" field</summary>
2421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2422     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultBytes()2423     public void ClearDefaultBytes() {
2424       defaultBytes_ = null;
2425     }
2426 
2427     /// <summary>Field number for the "fieldname1" field.</summary>
2428     public const int Fieldname1FieldNumber = 401;
2429     private readonly static int Fieldname1DefaultValue = 0;
2430 
2431     private int fieldname1_;
2432     /// <summary>
2433     /// Test field-name-to-JSON-name convention.
2434     /// (protobuf says names can be any valid C/C++ identifier.)
2435     /// </summary>
2436     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2437     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2438     public int Fieldname1 {
2439       get { if ((_hasBits0 & 268435456) != 0) { return fieldname1_; } else { return Fieldname1DefaultValue; } }
2440       set {
2441         _hasBits0 |= 268435456;
2442         fieldname1_ = value;
2443       }
2444     }
2445     /// <summary>Gets whether the "fieldname1" field is set</summary>
2446     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2447     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2448     public bool HasFieldname1 {
2449       get { return (_hasBits0 & 268435456) != 0; }
2450     }
2451     /// <summary>Clears the value of the "fieldname1" field</summary>
2452     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2453     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldname1()2454     public void ClearFieldname1() {
2455       _hasBits0 &= ~268435456;
2456     }
2457 
2458     /// <summary>Field number for the "field_name2" field.</summary>
2459     public const int FieldName2FieldNumber = 402;
2460     private readonly static int FieldName2DefaultValue = 0;
2461 
2462     private int fieldName2_;
2463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2465     public int FieldName2 {
2466       get { if ((_hasBits0 & 536870912) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } }
2467       set {
2468         _hasBits0 |= 536870912;
2469         fieldName2_ = value;
2470       }
2471     }
2472     /// <summary>Gets whether the "field_name2" field is set</summary>
2473     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2474     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2475     public bool HasFieldName2 {
2476       get { return (_hasBits0 & 536870912) != 0; }
2477     }
2478     /// <summary>Clears the value of the "field_name2" field</summary>
2479     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2480     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName2()2481     public void ClearFieldName2() {
2482       _hasBits0 &= ~536870912;
2483     }
2484 
2485     /// <summary>Field number for the "_field_name3" field.</summary>
2486     public const int FieldName3FieldNumber = 403;
2487     private readonly static int FieldName3DefaultValue = 0;
2488 
2489     private int FieldName3_;
2490     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2491     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2492     public int FieldName3 {
2493       get { if ((_hasBits0 & 1073741824) != 0) { return FieldName3_; } else { return FieldName3DefaultValue; } }
2494       set {
2495         _hasBits0 |= 1073741824;
2496         FieldName3_ = value;
2497       }
2498     }
2499     /// <summary>Gets whether the "_field_name3" field is set</summary>
2500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2502     public bool HasFieldName3 {
2503       get { return (_hasBits0 & 1073741824) != 0; }
2504     }
2505     /// <summary>Clears the value of the "_field_name3" field</summary>
2506     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2507     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName3()2508     public void ClearFieldName3() {
2509       _hasBits0 &= ~1073741824;
2510     }
2511 
2512     /// <summary>Field number for the "field__name4_" field.</summary>
2513     public const int FieldName4FieldNumber = 404;
2514     private readonly static int FieldName4DefaultValue = 0;
2515 
2516     private int fieldName4_;
2517     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2518     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2519     public int FieldName4 {
2520       get { if ((_hasBits0 & -2147483648) != 0) { return fieldName4_; } else { return FieldName4DefaultValue; } }
2521       set {
2522         _hasBits0 |= -2147483648;
2523         fieldName4_ = value;
2524       }
2525     }
2526     /// <summary>Gets whether the "field__name4_" field is set</summary>
2527     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2528     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2529     public bool HasFieldName4 {
2530       get { return (_hasBits0 & -2147483648) != 0; }
2531     }
2532     /// <summary>Clears the value of the "field__name4_" field</summary>
2533     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2534     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName4()2535     public void ClearFieldName4() {
2536       _hasBits0 &= ~-2147483648;
2537     }
2538 
2539     /// <summary>Field number for the "field0name5" field.</summary>
2540     public const int Field0Name5FieldNumber = 405;
2541     private readonly static int Field0Name5DefaultValue = 0;
2542 
2543     private int field0Name5_;
2544     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2545     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2546     public int Field0Name5 {
2547       get { if ((_hasBits1 & 1) != 0) { return field0Name5_; } else { return Field0Name5DefaultValue; } }
2548       set {
2549         _hasBits1 |= 1;
2550         field0Name5_ = value;
2551       }
2552     }
2553     /// <summary>Gets whether the "field0name5" field is set</summary>
2554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2555     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2556     public bool HasField0Name5 {
2557       get { return (_hasBits1 & 1) != 0; }
2558     }
2559     /// <summary>Clears the value of the "field0name5" field</summary>
2560     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2561     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField0Name5()2562     public void ClearField0Name5() {
2563       _hasBits1 &= ~1;
2564     }
2565 
2566     /// <summary>Field number for the "field_0_name6" field.</summary>
2567     public const int Field0Name6FieldNumber = 406;
2568     private readonly static int Field0Name6DefaultValue = 0;
2569 
2570     private int field0Name6_;
2571     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2572     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2573     public int Field0Name6 {
2574       get { if ((_hasBits1 & 2) != 0) { return field0Name6_; } else { return Field0Name6DefaultValue; } }
2575       set {
2576         _hasBits1 |= 2;
2577         field0Name6_ = value;
2578       }
2579     }
2580     /// <summary>Gets whether the "field_0_name6" field is set</summary>
2581     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2582     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2583     public bool HasField0Name6 {
2584       get { return (_hasBits1 & 2) != 0; }
2585     }
2586     /// <summary>Clears the value of the "field_0_name6" field</summary>
2587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearField0Name6()2589     public void ClearField0Name6() {
2590       _hasBits1 &= ~2;
2591     }
2592 
2593     /// <summary>Field number for the "fieldName7" field.</summary>
2594     public const int FieldName7FieldNumber = 407;
2595     private readonly static int FieldName7DefaultValue = 0;
2596 
2597     private int fieldName7_;
2598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2600     public int FieldName7 {
2601       get { if ((_hasBits1 & 4) != 0) { return fieldName7_; } else { return FieldName7DefaultValue; } }
2602       set {
2603         _hasBits1 |= 4;
2604         fieldName7_ = value;
2605       }
2606     }
2607     /// <summary>Gets whether the "fieldName7" field is set</summary>
2608     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2609     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2610     public bool HasFieldName7 {
2611       get { return (_hasBits1 & 4) != 0; }
2612     }
2613     /// <summary>Clears the value of the "fieldName7" field</summary>
2614     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2615     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName7()2616     public void ClearFieldName7() {
2617       _hasBits1 &= ~4;
2618     }
2619 
2620     /// <summary>Field number for the "FieldName8" field.</summary>
2621     public const int FieldName8FieldNumber = 408;
2622     private readonly static int FieldName8DefaultValue = 0;
2623 
2624     private int fieldName8_;
2625     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2626     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2627     public int FieldName8 {
2628       get { if ((_hasBits1 & 8) != 0) { return fieldName8_; } else { return FieldName8DefaultValue; } }
2629       set {
2630         _hasBits1 |= 8;
2631         fieldName8_ = value;
2632       }
2633     }
2634     /// <summary>Gets whether the "FieldName8" field is set</summary>
2635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2636     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2637     public bool HasFieldName8 {
2638       get { return (_hasBits1 & 8) != 0; }
2639     }
2640     /// <summary>Clears the value of the "FieldName8" field</summary>
2641     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2642     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName8()2643     public void ClearFieldName8() {
2644       _hasBits1 &= ~8;
2645     }
2646 
2647     /// <summary>Field number for the "field_Name9" field.</summary>
2648     public const int FieldName9FieldNumber = 409;
2649     private readonly static int FieldName9DefaultValue = 0;
2650 
2651     private int fieldName9_;
2652     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2653     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2654     public int FieldName9 {
2655       get { if ((_hasBits1 & 16) != 0) { return fieldName9_; } else { return FieldName9DefaultValue; } }
2656       set {
2657         _hasBits1 |= 16;
2658         fieldName9_ = value;
2659       }
2660     }
2661     /// <summary>Gets whether the "field_Name9" field is set</summary>
2662     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2663     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2664     public bool HasFieldName9 {
2665       get { return (_hasBits1 & 16) != 0; }
2666     }
2667     /// <summary>Clears the value of the "field_Name9" field</summary>
2668     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2669     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName9()2670     public void ClearFieldName9() {
2671       _hasBits1 &= ~16;
2672     }
2673 
2674     /// <summary>Field number for the "Field_Name10" field.</summary>
2675     public const int FieldName10FieldNumber = 410;
2676     private readonly static int FieldName10DefaultValue = 0;
2677 
2678     private int fieldName10_;
2679     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2680     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2681     public int FieldName10 {
2682       get { if ((_hasBits1 & 32) != 0) { return fieldName10_; } else { return FieldName10DefaultValue; } }
2683       set {
2684         _hasBits1 |= 32;
2685         fieldName10_ = value;
2686       }
2687     }
2688     /// <summary>Gets whether the "Field_Name10" field is set</summary>
2689     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2690     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2691     public bool HasFieldName10 {
2692       get { return (_hasBits1 & 32) != 0; }
2693     }
2694     /// <summary>Clears the value of the "Field_Name10" field</summary>
2695     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2696     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName10()2697     public void ClearFieldName10() {
2698       _hasBits1 &= ~32;
2699     }
2700 
2701     /// <summary>Field number for the "FIELD_NAME11" field.</summary>
2702     public const int FIELDNAME11FieldNumber = 411;
2703     private readonly static int FIELDNAME11DefaultValue = 0;
2704 
2705     private int fIELDNAME11_;
2706     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2707     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2708     public int FIELDNAME11 {
2709       get { if ((_hasBits1 & 64) != 0) { return fIELDNAME11_; } else { return FIELDNAME11DefaultValue; } }
2710       set {
2711         _hasBits1 |= 64;
2712         fIELDNAME11_ = value;
2713       }
2714     }
2715     /// <summary>Gets whether the "FIELD_NAME11" field is set</summary>
2716     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2717     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2718     public bool HasFIELDNAME11 {
2719       get { return (_hasBits1 & 64) != 0; }
2720     }
2721     /// <summary>Clears the value of the "FIELD_NAME11" field</summary>
2722     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2723     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFIELDNAME11()2724     public void ClearFIELDNAME11() {
2725       _hasBits1 &= ~64;
2726     }
2727 
2728     /// <summary>Field number for the "FIELD_name12" field.</summary>
2729     public const int FIELDName12FieldNumber = 412;
2730     private readonly static int FIELDName12DefaultValue = 0;
2731 
2732     private int fIELDName12_;
2733     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2734     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2735     public int FIELDName12 {
2736       get { if ((_hasBits1 & 128) != 0) { return fIELDName12_; } else { return FIELDName12DefaultValue; } }
2737       set {
2738         _hasBits1 |= 128;
2739         fIELDName12_ = value;
2740       }
2741     }
2742     /// <summary>Gets whether the "FIELD_name12" field is set</summary>
2743     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2744     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2745     public bool HasFIELDName12 {
2746       get { return (_hasBits1 & 128) != 0; }
2747     }
2748     /// <summary>Clears the value of the "FIELD_name12" field</summary>
2749     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2750     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFIELDName12()2751     public void ClearFIELDName12() {
2752       _hasBits1 &= ~128;
2753     }
2754 
2755     /// <summary>Field number for the "__field_name13" field.</summary>
2756     public const int FieldName13FieldNumber = 413;
2757     private readonly static int FieldName13DefaultValue = 0;
2758 
2759     private int FieldName13_;
2760     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2761     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2762     public int FieldName13 {
2763       get { if ((_hasBits1 & 256) != 0) { return FieldName13_; } else { return FieldName13DefaultValue; } }
2764       set {
2765         _hasBits1 |= 256;
2766         FieldName13_ = value;
2767       }
2768     }
2769     /// <summary>Gets whether the "__field_name13" field is set</summary>
2770     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2771     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2772     public bool HasFieldName13 {
2773       get { return (_hasBits1 & 256) != 0; }
2774     }
2775     /// <summary>Clears the value of the "__field_name13" field</summary>
2776     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2777     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName13()2778     public void ClearFieldName13() {
2779       _hasBits1 &= ~256;
2780     }
2781 
2782     /// <summary>Field number for the "__Field_name14" field.</summary>
2783     public const int FieldName14FieldNumber = 414;
2784     private readonly static int FieldName14DefaultValue = 0;
2785 
2786     private int FieldName14_;
2787     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2788     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2789     public int FieldName14 {
2790       get { if ((_hasBits1 & 512) != 0) { return FieldName14_; } else { return FieldName14DefaultValue; } }
2791       set {
2792         _hasBits1 |= 512;
2793         FieldName14_ = value;
2794       }
2795     }
2796     /// <summary>Gets whether the "__Field_name14" field is set</summary>
2797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2799     public bool HasFieldName14 {
2800       get { return (_hasBits1 & 512) != 0; }
2801     }
2802     /// <summary>Clears the value of the "__Field_name14" field</summary>
2803     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2804     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName14()2805     public void ClearFieldName14() {
2806       _hasBits1 &= ~512;
2807     }
2808 
2809     /// <summary>Field number for the "field__name15" field.</summary>
2810     public const int FieldName15FieldNumber = 415;
2811     private readonly static int FieldName15DefaultValue = 0;
2812 
2813     private int fieldName15_;
2814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2815     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2816     public int FieldName15 {
2817       get { if ((_hasBits1 & 1024) != 0) { return fieldName15_; } else { return FieldName15DefaultValue; } }
2818       set {
2819         _hasBits1 |= 1024;
2820         fieldName15_ = value;
2821       }
2822     }
2823     /// <summary>Gets whether the "field__name15" field is set</summary>
2824     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2825     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2826     public bool HasFieldName15 {
2827       get { return (_hasBits1 & 1024) != 0; }
2828     }
2829     /// <summary>Clears the value of the "field__name15" field</summary>
2830     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2831     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName15()2832     public void ClearFieldName15() {
2833       _hasBits1 &= ~1024;
2834     }
2835 
2836     /// <summary>Field number for the "field__Name16" field.</summary>
2837     public const int FieldName16FieldNumber = 416;
2838     private readonly static int FieldName16DefaultValue = 0;
2839 
2840     private int fieldName16_;
2841     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2842     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2843     public int FieldName16 {
2844       get { if ((_hasBits1 & 2048) != 0) { return fieldName16_; } else { return FieldName16DefaultValue; } }
2845       set {
2846         _hasBits1 |= 2048;
2847         fieldName16_ = value;
2848       }
2849     }
2850     /// <summary>Gets whether the "field__Name16" field is set</summary>
2851     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2852     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2853     public bool HasFieldName16 {
2854       get { return (_hasBits1 & 2048) != 0; }
2855     }
2856     /// <summary>Clears the value of the "field__Name16" field</summary>
2857     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2858     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName16()2859     public void ClearFieldName16() {
2860       _hasBits1 &= ~2048;
2861     }
2862 
2863     /// <summary>Field number for the "field_name17__" field.</summary>
2864     public const int FieldName17FieldNumber = 417;
2865     private readonly static int FieldName17DefaultValue = 0;
2866 
2867     private int fieldName17_;
2868     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2869     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2870     public int FieldName17 {
2871       get { if ((_hasBits1 & 4096) != 0) { return fieldName17_; } else { return FieldName17DefaultValue; } }
2872       set {
2873         _hasBits1 |= 4096;
2874         fieldName17_ = value;
2875       }
2876     }
2877     /// <summary>Gets whether the "field_name17__" field is set</summary>
2878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2879     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2880     public bool HasFieldName17 {
2881       get { return (_hasBits1 & 4096) != 0; }
2882     }
2883     /// <summary>Clears the value of the "field_name17__" field</summary>
2884     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2885     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName17()2886     public void ClearFieldName17() {
2887       _hasBits1 &= ~4096;
2888     }
2889 
2890     /// <summary>Field number for the "Field_name18__" field.</summary>
2891     public const int FieldName18FieldNumber = 418;
2892     private readonly static int FieldName18DefaultValue = 0;
2893 
2894     private int fieldName18_;
2895     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2896     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2897     public int FieldName18 {
2898       get { if ((_hasBits1 & 8192) != 0) { return fieldName18_; } else { return FieldName18DefaultValue; } }
2899       set {
2900         _hasBits1 |= 8192;
2901         fieldName18_ = value;
2902       }
2903     }
2904     /// <summary>Gets whether the "Field_name18__" field is set</summary>
2905     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2906     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2907     public bool HasFieldName18 {
2908       get { return (_hasBits1 & 8192) != 0; }
2909     }
2910     /// <summary>Clears the value of the "Field_name18__" field</summary>
2911     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2912     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldName18()2913     public void ClearFieldName18() {
2914       _hasBits1 &= ~8192;
2915     }
2916 
2917     private object oneofField_;
2918     /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
2919     public enum OneofFieldOneofCase {
2920       None = 0,
2921       OneofUint32 = 111,
2922       OneofNestedMessage = 112,
2923       OneofString = 113,
2924       OneofBytes = 114,
2925       OneofBool = 115,
2926       OneofUint64 = 116,
2927       OneofFloat = 117,
2928       OneofDouble = 118,
2929       OneofEnum = 119,
2930     }
2931     private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
2932     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2933     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2934     public OneofFieldOneofCase OneofFieldCase {
2935       get { return oneofFieldCase_; }
2936     }
2937 
2938     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2939     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofField()2940     public void ClearOneofField() {
2941       oneofFieldCase_ = OneofFieldOneofCase.None;
2942       oneofField_ = null;
2943     }
2944 
2945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2946     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)2947     public override bool Equals(object other) {
2948       return Equals(other as TestAllTypesProto2);
2949     }
2950 
2951     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2952     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestAllTypesProto2 other)2953     public bool Equals(TestAllTypesProto2 other) {
2954       if (ReferenceEquals(other, null)) {
2955         return false;
2956       }
2957       if (ReferenceEquals(other, this)) {
2958         return true;
2959       }
2960       if (OptionalInt32 != other.OptionalInt32) return false;
2961       if (OptionalInt64 != other.OptionalInt64) return false;
2962       if (OptionalUint32 != other.OptionalUint32) return false;
2963       if (OptionalUint64 != other.OptionalUint64) return false;
2964       if (OptionalSint32 != other.OptionalSint32) return false;
2965       if (OptionalSint64 != other.OptionalSint64) return false;
2966       if (OptionalFixed32 != other.OptionalFixed32) return false;
2967       if (OptionalFixed64 != other.OptionalFixed64) return false;
2968       if (OptionalSfixed32 != other.OptionalSfixed32) return false;
2969       if (OptionalSfixed64 != other.OptionalSfixed64) return false;
2970       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
2971       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
2972       if (OptionalBool != other.OptionalBool) return false;
2973       if (OptionalString != other.OptionalString) return false;
2974       if (OptionalBytes != other.OptionalBytes) return false;
2975       if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
2976       if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
2977       if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
2978       if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
2979       if (OptionalStringPiece != other.OptionalStringPiece) return false;
2980       if (OptionalCord != other.OptionalCord) return false;
2981       if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
2982       if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
2983       if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
2984       if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
2985       if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
2986       if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
2987       if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
2988       if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
2989       if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
2990       if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
2991       if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
2992       if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
2993       if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
2994       if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
2995       if(!repeatedString_.Equals(other.repeatedString_)) return false;
2996       if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
2997       if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
2998       if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
2999       if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
3000       if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
3001       if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
3002       if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
3003       if(!packedInt32_.Equals(other.packedInt32_)) return false;
3004       if(!packedInt64_.Equals(other.packedInt64_)) return false;
3005       if(!packedUint32_.Equals(other.packedUint32_)) return false;
3006       if(!packedUint64_.Equals(other.packedUint64_)) return false;
3007       if(!packedSint32_.Equals(other.packedSint32_)) return false;
3008       if(!packedSint64_.Equals(other.packedSint64_)) return false;
3009       if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
3010       if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
3011       if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
3012       if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
3013       if(!packedFloat_.Equals(other.packedFloat_)) return false;
3014       if(!packedDouble_.Equals(other.packedDouble_)) return false;
3015       if(!packedBool_.Equals(other.packedBool_)) return false;
3016       if(!packedNestedEnum_.Equals(other.packedNestedEnum_)) return false;
3017       if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
3018       if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
3019       if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
3020       if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
3021       if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
3022       if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
3023       if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
3024       if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
3025       if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
3026       if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
3027       if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
3028       if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
3029       if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
3030       if(!unpackedNestedEnum_.Equals(other.unpackedNestedEnum_)) return false;
3031       if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
3032       if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
3033       if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
3034       if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
3035       if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
3036       if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
3037       if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
3038       if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
3039       if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
3040       if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
3041       if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
3042       if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
3043       if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
3044       if (!MapStringString.Equals(other.MapStringString)) return false;
3045       if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
3046       if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
3047       if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
3048       if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
3049       if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
3050       if (OneofUint32 != other.OneofUint32) return false;
3051       if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
3052       if (OneofString != other.OneofString) return false;
3053       if (OneofBytes != other.OneofBytes) return false;
3054       if (OneofBool != other.OneofBool) return false;
3055       if (OneofUint64 != other.OneofUint64) return false;
3056       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneofFloat, other.OneofFloat)) return false;
3057       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OneofDouble, other.OneofDouble)) return false;
3058       if (OneofEnum != other.OneofEnum) return false;
3059       if (!object.Equals(Data, other.Data)) return false;
3060       if (DefaultInt32 != other.DefaultInt32) return false;
3061       if (DefaultInt64 != other.DefaultInt64) return false;
3062       if (DefaultUint32 != other.DefaultUint32) return false;
3063       if (DefaultUint64 != other.DefaultUint64) return false;
3064       if (DefaultSint32 != other.DefaultSint32) return false;
3065       if (DefaultSint64 != other.DefaultSint64) return false;
3066       if (DefaultFixed32 != other.DefaultFixed32) return false;
3067       if (DefaultFixed64 != other.DefaultFixed64) return false;
3068       if (DefaultSfixed32 != other.DefaultSfixed32) return false;
3069       if (DefaultSfixed64 != other.DefaultSfixed64) return false;
3070       if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false;
3071       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false;
3072       if (DefaultBool != other.DefaultBool) return false;
3073       if (DefaultString != other.DefaultString) return false;
3074       if (DefaultBytes != other.DefaultBytes) return false;
3075       if (Fieldname1 != other.Fieldname1) return false;
3076       if (FieldName2 != other.FieldName2) return false;
3077       if (FieldName3 != other.FieldName3) return false;
3078       if (FieldName4 != other.FieldName4) return false;
3079       if (Field0Name5 != other.Field0Name5) return false;
3080       if (Field0Name6 != other.Field0Name6) return false;
3081       if (FieldName7 != other.FieldName7) return false;
3082       if (FieldName8 != other.FieldName8) return false;
3083       if (FieldName9 != other.FieldName9) return false;
3084       if (FieldName10 != other.FieldName10) return false;
3085       if (FIELDNAME11 != other.FIELDNAME11) return false;
3086       if (FIELDName12 != other.FIELDName12) return false;
3087       if (FieldName13 != other.FieldName13) return false;
3088       if (FieldName14 != other.FieldName14) return false;
3089       if (FieldName15 != other.FieldName15) return false;
3090       if (FieldName16 != other.FieldName16) return false;
3091       if (FieldName17 != other.FieldName17) return false;
3092       if (FieldName18 != other.FieldName18) return false;
3093       if (OneofFieldCase != other.OneofFieldCase) return false;
3094       if (!Equals(_extensions, other._extensions)) {
3095         return false;
3096       }
3097       return Equals(_unknownFields, other._unknownFields);
3098     }
3099 
3100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3101     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()3102     public override int GetHashCode() {
3103       int hash = 1;
3104       if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
3105       if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode();
3106       if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode();
3107       if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode();
3108       if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode();
3109       if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode();
3110       if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode();
3111       if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode();
3112       if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode();
3113       if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode();
3114       if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
3115       if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
3116       if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
3117       if (HasOptionalString) hash ^= OptionalString.GetHashCode();
3118       if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
3119       if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
3120       if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
3121       if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode();
3122       if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
3123       if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode();
3124       if (HasOptionalCord) hash ^= OptionalCord.GetHashCode();
3125       if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode();
3126       hash ^= repeatedInt32_.GetHashCode();
3127       hash ^= repeatedInt64_.GetHashCode();
3128       hash ^= repeatedUint32_.GetHashCode();
3129       hash ^= repeatedUint64_.GetHashCode();
3130       hash ^= repeatedSint32_.GetHashCode();
3131       hash ^= repeatedSint64_.GetHashCode();
3132       hash ^= repeatedFixed32_.GetHashCode();
3133       hash ^= repeatedFixed64_.GetHashCode();
3134       hash ^= repeatedSfixed32_.GetHashCode();
3135       hash ^= repeatedSfixed64_.GetHashCode();
3136       hash ^= repeatedFloat_.GetHashCode();
3137       hash ^= repeatedDouble_.GetHashCode();
3138       hash ^= repeatedBool_.GetHashCode();
3139       hash ^= repeatedString_.GetHashCode();
3140       hash ^= repeatedBytes_.GetHashCode();
3141       hash ^= repeatedNestedMessage_.GetHashCode();
3142       hash ^= repeatedForeignMessage_.GetHashCode();
3143       hash ^= repeatedNestedEnum_.GetHashCode();
3144       hash ^= repeatedForeignEnum_.GetHashCode();
3145       hash ^= repeatedStringPiece_.GetHashCode();
3146       hash ^= repeatedCord_.GetHashCode();
3147       hash ^= packedInt32_.GetHashCode();
3148       hash ^= packedInt64_.GetHashCode();
3149       hash ^= packedUint32_.GetHashCode();
3150       hash ^= packedUint64_.GetHashCode();
3151       hash ^= packedSint32_.GetHashCode();
3152       hash ^= packedSint64_.GetHashCode();
3153       hash ^= packedFixed32_.GetHashCode();
3154       hash ^= packedFixed64_.GetHashCode();
3155       hash ^= packedSfixed32_.GetHashCode();
3156       hash ^= packedSfixed64_.GetHashCode();
3157       hash ^= packedFloat_.GetHashCode();
3158       hash ^= packedDouble_.GetHashCode();
3159       hash ^= packedBool_.GetHashCode();
3160       hash ^= packedNestedEnum_.GetHashCode();
3161       hash ^= unpackedInt32_.GetHashCode();
3162       hash ^= unpackedInt64_.GetHashCode();
3163       hash ^= unpackedUint32_.GetHashCode();
3164       hash ^= unpackedUint64_.GetHashCode();
3165       hash ^= unpackedSint32_.GetHashCode();
3166       hash ^= unpackedSint64_.GetHashCode();
3167       hash ^= unpackedFixed32_.GetHashCode();
3168       hash ^= unpackedFixed64_.GetHashCode();
3169       hash ^= unpackedSfixed32_.GetHashCode();
3170       hash ^= unpackedSfixed64_.GetHashCode();
3171       hash ^= unpackedFloat_.GetHashCode();
3172       hash ^= unpackedDouble_.GetHashCode();
3173       hash ^= unpackedBool_.GetHashCode();
3174       hash ^= unpackedNestedEnum_.GetHashCode();
3175       hash ^= MapInt32Int32.GetHashCode();
3176       hash ^= MapInt64Int64.GetHashCode();
3177       hash ^= MapUint32Uint32.GetHashCode();
3178       hash ^= MapUint64Uint64.GetHashCode();
3179       hash ^= MapSint32Sint32.GetHashCode();
3180       hash ^= MapSint64Sint64.GetHashCode();
3181       hash ^= MapFixed32Fixed32.GetHashCode();
3182       hash ^= MapFixed64Fixed64.GetHashCode();
3183       hash ^= MapSfixed32Sfixed32.GetHashCode();
3184       hash ^= MapSfixed64Sfixed64.GetHashCode();
3185       hash ^= MapInt32Float.GetHashCode();
3186       hash ^= MapInt32Double.GetHashCode();
3187       hash ^= MapBoolBool.GetHashCode();
3188       hash ^= MapStringString.GetHashCode();
3189       hash ^= MapStringBytes.GetHashCode();
3190       hash ^= MapStringNestedMessage.GetHashCode();
3191       hash ^= MapStringForeignMessage.GetHashCode();
3192       hash ^= MapStringNestedEnum.GetHashCode();
3193       hash ^= MapStringForeignEnum.GetHashCode();
3194       if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
3195       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
3196       if (HasOneofString) hash ^= OneofString.GetHashCode();
3197       if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
3198       if (HasOneofBool) hash ^= OneofBool.GetHashCode();
3199       if (HasOneofUint64) hash ^= OneofUint64.GetHashCode();
3200       if (HasOneofFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneofFloat);
3201       if (HasOneofDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OneofDouble);
3202       if (HasOneofEnum) hash ^= OneofEnum.GetHashCode();
3203       if (HasData) hash ^= Data.GetHashCode();
3204       if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode();
3205       if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode();
3206       if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode();
3207       if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode();
3208       if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode();
3209       if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode();
3210       if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode();
3211       if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode();
3212       if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode();
3213       if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode();
3214       if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat);
3215       if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble);
3216       if (HasDefaultBool) hash ^= DefaultBool.GetHashCode();
3217       if (HasDefaultString) hash ^= DefaultString.GetHashCode();
3218       if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode();
3219       if (HasFieldname1) hash ^= Fieldname1.GetHashCode();
3220       if (HasFieldName2) hash ^= FieldName2.GetHashCode();
3221       if (HasFieldName3) hash ^= FieldName3.GetHashCode();
3222       if (HasFieldName4) hash ^= FieldName4.GetHashCode();
3223       if (HasField0Name5) hash ^= Field0Name5.GetHashCode();
3224       if (HasField0Name6) hash ^= Field0Name6.GetHashCode();
3225       if (HasFieldName7) hash ^= FieldName7.GetHashCode();
3226       if (HasFieldName8) hash ^= FieldName8.GetHashCode();
3227       if (HasFieldName9) hash ^= FieldName9.GetHashCode();
3228       if (HasFieldName10) hash ^= FieldName10.GetHashCode();
3229       if (HasFIELDNAME11) hash ^= FIELDNAME11.GetHashCode();
3230       if (HasFIELDName12) hash ^= FIELDName12.GetHashCode();
3231       if (HasFieldName13) hash ^= FieldName13.GetHashCode();
3232       if (HasFieldName14) hash ^= FieldName14.GetHashCode();
3233       if (HasFieldName15) hash ^= FieldName15.GetHashCode();
3234       if (HasFieldName16) hash ^= FieldName16.GetHashCode();
3235       if (HasFieldName17) hash ^= FieldName17.GetHashCode();
3236       if (HasFieldName18) hash ^= FieldName18.GetHashCode();
3237       hash ^= (int) oneofFieldCase_;
3238       if (_extensions != null) {
3239         hash ^= _extensions.GetHashCode();
3240       }
3241       if (_unknownFields != null) {
3242         hash ^= _unknownFields.GetHashCode();
3243       }
3244       return hash;
3245     }
3246 
3247     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3248     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()3249     public override string ToString() {
3250       return pb::JsonFormatter.ToDiagnosticString(this);
3251     }
3252 
3253     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3254     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)3255     public void WriteTo(pb::CodedOutputStream output) {
3256     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3257       output.WriteRawMessage(this);
3258     #else
3259       if (HasOptionalInt32) {
3260         output.WriteRawTag(8);
3261         output.WriteInt32(OptionalInt32);
3262       }
3263       if (HasOptionalInt64) {
3264         output.WriteRawTag(16);
3265         output.WriteInt64(OptionalInt64);
3266       }
3267       if (HasOptionalUint32) {
3268         output.WriteRawTag(24);
3269         output.WriteUInt32(OptionalUint32);
3270       }
3271       if (HasOptionalUint64) {
3272         output.WriteRawTag(32);
3273         output.WriteUInt64(OptionalUint64);
3274       }
3275       if (HasOptionalSint32) {
3276         output.WriteRawTag(40);
3277         output.WriteSInt32(OptionalSint32);
3278       }
3279       if (HasOptionalSint64) {
3280         output.WriteRawTag(48);
3281         output.WriteSInt64(OptionalSint64);
3282       }
3283       if (HasOptionalFixed32) {
3284         output.WriteRawTag(61);
3285         output.WriteFixed32(OptionalFixed32);
3286       }
3287       if (HasOptionalFixed64) {
3288         output.WriteRawTag(65);
3289         output.WriteFixed64(OptionalFixed64);
3290       }
3291       if (HasOptionalSfixed32) {
3292         output.WriteRawTag(77);
3293         output.WriteSFixed32(OptionalSfixed32);
3294       }
3295       if (HasOptionalSfixed64) {
3296         output.WriteRawTag(81);
3297         output.WriteSFixed64(OptionalSfixed64);
3298       }
3299       if (HasOptionalFloat) {
3300         output.WriteRawTag(93);
3301         output.WriteFloat(OptionalFloat);
3302       }
3303       if (HasOptionalDouble) {
3304         output.WriteRawTag(97);
3305         output.WriteDouble(OptionalDouble);
3306       }
3307       if (HasOptionalBool) {
3308         output.WriteRawTag(104);
3309         output.WriteBool(OptionalBool);
3310       }
3311       if (HasOptionalString) {
3312         output.WriteRawTag(114);
3313         output.WriteString(OptionalString);
3314       }
3315       if (HasOptionalBytes) {
3316         output.WriteRawTag(122);
3317         output.WriteBytes(OptionalBytes);
3318       }
3319       if (optionalNestedMessage_ != null) {
3320         output.WriteRawTag(146, 1);
3321         output.WriteMessage(OptionalNestedMessage);
3322       }
3323       if (optionalForeignMessage_ != null) {
3324         output.WriteRawTag(154, 1);
3325         output.WriteMessage(OptionalForeignMessage);
3326       }
3327       if (HasOptionalNestedEnum) {
3328         output.WriteRawTag(168, 1);
3329         output.WriteEnum((int) OptionalNestedEnum);
3330       }
3331       if (HasOptionalForeignEnum) {
3332         output.WriteRawTag(176, 1);
3333         output.WriteEnum((int) OptionalForeignEnum);
3334       }
3335       if (HasOptionalStringPiece) {
3336         output.WriteRawTag(194, 1);
3337         output.WriteString(OptionalStringPiece);
3338       }
3339       if (HasOptionalCord) {
3340         output.WriteRawTag(202, 1);
3341         output.WriteString(OptionalCord);
3342       }
3343       if (recursiveMessage_ != null) {
3344         output.WriteRawTag(218, 1);
3345         output.WriteMessage(RecursiveMessage);
3346       }
3347       repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
3348       repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
3349       repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
3350       repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
3351       repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
3352       repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
3353       repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
3354       repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
3355       repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
3356       repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
3357       repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
3358       repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
3359       repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
3360       repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
3361       repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
3362       repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
3363       repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
3364       repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
3365       repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
3366       repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
3367       repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
3368       mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
3369       mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
3370       mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
3371       mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
3372       mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
3373       mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
3374       mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
3375       mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
3376       mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
3377       mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
3378       mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
3379       mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
3380       mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
3381       mapStringString_.WriteTo(output, _map_mapStringString_codec);
3382       mapStringBytes_.WriteTo(output, _map_mapStringBytes_codec);
3383       mapStringNestedMessage_.WriteTo(output, _map_mapStringNestedMessage_codec);
3384       mapStringForeignMessage_.WriteTo(output, _map_mapStringForeignMessage_codec);
3385       mapStringNestedEnum_.WriteTo(output, _map_mapStringNestedEnum_codec);
3386       mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec);
3387       packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
3388       packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
3389       packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
3390       packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
3391       packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
3392       packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
3393       packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
3394       packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
3395       packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
3396       packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
3397       packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
3398       packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
3399       packedBool_.WriteTo(output, _repeated_packedBool_codec);
3400       packedNestedEnum_.WriteTo(output, _repeated_packedNestedEnum_codec);
3401       unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
3402       unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
3403       unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
3404       unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
3405       unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
3406       unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
3407       unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
3408       unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
3409       unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
3410       unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
3411       unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
3412       unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
3413       unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
3414       unpackedNestedEnum_.WriteTo(output, _repeated_unpackedNestedEnum_codec);
3415       if (HasOneofUint32) {
3416         output.WriteRawTag(248, 6);
3417         output.WriteUInt32(OneofUint32);
3418       }
3419       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3420         output.WriteRawTag(130, 7);
3421         output.WriteMessage(OneofNestedMessage);
3422       }
3423       if (HasOneofString) {
3424         output.WriteRawTag(138, 7);
3425         output.WriteString(OneofString);
3426       }
3427       if (HasOneofBytes) {
3428         output.WriteRawTag(146, 7);
3429         output.WriteBytes(OneofBytes);
3430       }
3431       if (HasOneofBool) {
3432         output.WriteRawTag(152, 7);
3433         output.WriteBool(OneofBool);
3434       }
3435       if (HasOneofUint64) {
3436         output.WriteRawTag(160, 7);
3437         output.WriteUInt64(OneofUint64);
3438       }
3439       if (HasOneofFloat) {
3440         output.WriteRawTag(173, 7);
3441         output.WriteFloat(OneofFloat);
3442       }
3443       if (HasOneofDouble) {
3444         output.WriteRawTag(177, 7);
3445         output.WriteDouble(OneofDouble);
3446       }
3447       if (HasOneofEnum) {
3448         output.WriteRawTag(184, 7);
3449         output.WriteEnum((int) OneofEnum);
3450       }
3451       if (HasData) {
3452         output.WriteRawTag(203, 12);
3453         output.WriteGroup(Data);
3454         output.WriteRawTag(204, 12);
3455       }
3456       if (HasDefaultInt32) {
3457         output.WriteRawTag(136, 15);
3458         output.WriteInt32(DefaultInt32);
3459       }
3460       if (HasDefaultInt64) {
3461         output.WriteRawTag(144, 15);
3462         output.WriteInt64(DefaultInt64);
3463       }
3464       if (HasDefaultUint32) {
3465         output.WriteRawTag(152, 15);
3466         output.WriteUInt32(DefaultUint32);
3467       }
3468       if (HasDefaultUint64) {
3469         output.WriteRawTag(160, 15);
3470         output.WriteUInt64(DefaultUint64);
3471       }
3472       if (HasDefaultSint32) {
3473         output.WriteRawTag(168, 15);
3474         output.WriteSInt32(DefaultSint32);
3475       }
3476       if (HasDefaultSint64) {
3477         output.WriteRawTag(176, 15);
3478         output.WriteSInt64(DefaultSint64);
3479       }
3480       if (HasDefaultFixed32) {
3481         output.WriteRawTag(189, 15);
3482         output.WriteFixed32(DefaultFixed32);
3483       }
3484       if (HasDefaultFixed64) {
3485         output.WriteRawTag(193, 15);
3486         output.WriteFixed64(DefaultFixed64);
3487       }
3488       if (HasDefaultSfixed32) {
3489         output.WriteRawTag(205, 15);
3490         output.WriteSFixed32(DefaultSfixed32);
3491       }
3492       if (HasDefaultSfixed64) {
3493         output.WriteRawTag(209, 15);
3494         output.WriteSFixed64(DefaultSfixed64);
3495       }
3496       if (HasDefaultFloat) {
3497         output.WriteRawTag(221, 15);
3498         output.WriteFloat(DefaultFloat);
3499       }
3500       if (HasDefaultDouble) {
3501         output.WriteRawTag(225, 15);
3502         output.WriteDouble(DefaultDouble);
3503       }
3504       if (HasDefaultBool) {
3505         output.WriteRawTag(232, 15);
3506         output.WriteBool(DefaultBool);
3507       }
3508       if (HasDefaultString) {
3509         output.WriteRawTag(242, 15);
3510         output.WriteString(DefaultString);
3511       }
3512       if (HasDefaultBytes) {
3513         output.WriteRawTag(250, 15);
3514         output.WriteBytes(DefaultBytes);
3515       }
3516       if (HasFieldname1) {
3517         output.WriteRawTag(136, 25);
3518         output.WriteInt32(Fieldname1);
3519       }
3520       if (HasFieldName2) {
3521         output.WriteRawTag(144, 25);
3522         output.WriteInt32(FieldName2);
3523       }
3524       if (HasFieldName3) {
3525         output.WriteRawTag(152, 25);
3526         output.WriteInt32(FieldName3);
3527       }
3528       if (HasFieldName4) {
3529         output.WriteRawTag(160, 25);
3530         output.WriteInt32(FieldName4);
3531       }
3532       if (HasField0Name5) {
3533         output.WriteRawTag(168, 25);
3534         output.WriteInt32(Field0Name5);
3535       }
3536       if (HasField0Name6) {
3537         output.WriteRawTag(176, 25);
3538         output.WriteInt32(Field0Name6);
3539       }
3540       if (HasFieldName7) {
3541         output.WriteRawTag(184, 25);
3542         output.WriteInt32(FieldName7);
3543       }
3544       if (HasFieldName8) {
3545         output.WriteRawTag(192, 25);
3546         output.WriteInt32(FieldName8);
3547       }
3548       if (HasFieldName9) {
3549         output.WriteRawTag(200, 25);
3550         output.WriteInt32(FieldName9);
3551       }
3552       if (HasFieldName10) {
3553         output.WriteRawTag(208, 25);
3554         output.WriteInt32(FieldName10);
3555       }
3556       if (HasFIELDNAME11) {
3557         output.WriteRawTag(216, 25);
3558         output.WriteInt32(FIELDNAME11);
3559       }
3560       if (HasFIELDName12) {
3561         output.WriteRawTag(224, 25);
3562         output.WriteInt32(FIELDName12);
3563       }
3564       if (HasFieldName13) {
3565         output.WriteRawTag(232, 25);
3566         output.WriteInt32(FieldName13);
3567       }
3568       if (HasFieldName14) {
3569         output.WriteRawTag(240, 25);
3570         output.WriteInt32(FieldName14);
3571       }
3572       if (HasFieldName15) {
3573         output.WriteRawTag(248, 25);
3574         output.WriteInt32(FieldName15);
3575       }
3576       if (HasFieldName16) {
3577         output.WriteRawTag(128, 26);
3578         output.WriteInt32(FieldName16);
3579       }
3580       if (HasFieldName17) {
3581         output.WriteRawTag(136, 26);
3582         output.WriteInt32(FieldName17);
3583       }
3584       if (HasFieldName18) {
3585         output.WriteRawTag(144, 26);
3586         output.WriteInt32(FieldName18);
3587       }
3588       if (_extensions != null) {
3589         _extensions.WriteTo(output);
3590       }
3591       if (_unknownFields != null) {
3592         _unknownFields.WriteTo(output);
3593       }
3594     #endif
3595     }
3596 
3597     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3600     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3601       if (HasOptionalInt32) {
3602         output.WriteRawTag(8);
3603         output.WriteInt32(OptionalInt32);
3604       }
3605       if (HasOptionalInt64) {
3606         output.WriteRawTag(16);
3607         output.WriteInt64(OptionalInt64);
3608       }
3609       if (HasOptionalUint32) {
3610         output.WriteRawTag(24);
3611         output.WriteUInt32(OptionalUint32);
3612       }
3613       if (HasOptionalUint64) {
3614         output.WriteRawTag(32);
3615         output.WriteUInt64(OptionalUint64);
3616       }
3617       if (HasOptionalSint32) {
3618         output.WriteRawTag(40);
3619         output.WriteSInt32(OptionalSint32);
3620       }
3621       if (HasOptionalSint64) {
3622         output.WriteRawTag(48);
3623         output.WriteSInt64(OptionalSint64);
3624       }
3625       if (HasOptionalFixed32) {
3626         output.WriteRawTag(61);
3627         output.WriteFixed32(OptionalFixed32);
3628       }
3629       if (HasOptionalFixed64) {
3630         output.WriteRawTag(65);
3631         output.WriteFixed64(OptionalFixed64);
3632       }
3633       if (HasOptionalSfixed32) {
3634         output.WriteRawTag(77);
3635         output.WriteSFixed32(OptionalSfixed32);
3636       }
3637       if (HasOptionalSfixed64) {
3638         output.WriteRawTag(81);
3639         output.WriteSFixed64(OptionalSfixed64);
3640       }
3641       if (HasOptionalFloat) {
3642         output.WriteRawTag(93);
3643         output.WriteFloat(OptionalFloat);
3644       }
3645       if (HasOptionalDouble) {
3646         output.WriteRawTag(97);
3647         output.WriteDouble(OptionalDouble);
3648       }
3649       if (HasOptionalBool) {
3650         output.WriteRawTag(104);
3651         output.WriteBool(OptionalBool);
3652       }
3653       if (HasOptionalString) {
3654         output.WriteRawTag(114);
3655         output.WriteString(OptionalString);
3656       }
3657       if (HasOptionalBytes) {
3658         output.WriteRawTag(122);
3659         output.WriteBytes(OptionalBytes);
3660       }
3661       if (optionalNestedMessage_ != null) {
3662         output.WriteRawTag(146, 1);
3663         output.WriteMessage(OptionalNestedMessage);
3664       }
3665       if (optionalForeignMessage_ != null) {
3666         output.WriteRawTag(154, 1);
3667         output.WriteMessage(OptionalForeignMessage);
3668       }
3669       if (HasOptionalNestedEnum) {
3670         output.WriteRawTag(168, 1);
3671         output.WriteEnum((int) OptionalNestedEnum);
3672       }
3673       if (HasOptionalForeignEnum) {
3674         output.WriteRawTag(176, 1);
3675         output.WriteEnum((int) OptionalForeignEnum);
3676       }
3677       if (HasOptionalStringPiece) {
3678         output.WriteRawTag(194, 1);
3679         output.WriteString(OptionalStringPiece);
3680       }
3681       if (HasOptionalCord) {
3682         output.WriteRawTag(202, 1);
3683         output.WriteString(OptionalCord);
3684       }
3685       if (recursiveMessage_ != null) {
3686         output.WriteRawTag(218, 1);
3687         output.WriteMessage(RecursiveMessage);
3688       }
3689       repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
3690       repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
3691       repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec);
3692       repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
3693       repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec);
3694       repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec);
3695       repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
3696       repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
3697       repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec);
3698       repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec);
3699       repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
3700       repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec);
3701       repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec);
3702       repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec);
3703       repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec);
3704       repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec);
3705       repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec);
3706       repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec);
3707       repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec);
3708       repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec);
3709       repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec);
3710       mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
3711       mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
3712       mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
3713       mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
3714       mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
3715       mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
3716       mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
3717       mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
3718       mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
3719       mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
3720       mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
3721       mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
3722       mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
3723       mapStringString_.WriteTo(ref output, _map_mapStringString_codec);
3724       mapStringBytes_.WriteTo(ref output, _map_mapStringBytes_codec);
3725       mapStringNestedMessage_.WriteTo(ref output, _map_mapStringNestedMessage_codec);
3726       mapStringForeignMessage_.WriteTo(ref output, _map_mapStringForeignMessage_codec);
3727       mapStringNestedEnum_.WriteTo(ref output, _map_mapStringNestedEnum_codec);
3728       mapStringForeignEnum_.WriteTo(ref output, _map_mapStringForeignEnum_codec);
3729       packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
3730       packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec);
3731       packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec);
3732       packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec);
3733       packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec);
3734       packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec);
3735       packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec);
3736       packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec);
3737       packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec);
3738       packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec);
3739       packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec);
3740       packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec);
3741       packedBool_.WriteTo(ref output, _repeated_packedBool_codec);
3742       packedNestedEnum_.WriteTo(ref output, _repeated_packedNestedEnum_codec);
3743       unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec);
3744       unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec);
3745       unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec);
3746       unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec);
3747       unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec);
3748       unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec);
3749       unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec);
3750       unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec);
3751       unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec);
3752       unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec);
3753       unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec);
3754       unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec);
3755       unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec);
3756       unpackedNestedEnum_.WriteTo(ref output, _repeated_unpackedNestedEnum_codec);
3757       if (HasOneofUint32) {
3758         output.WriteRawTag(248, 6);
3759         output.WriteUInt32(OneofUint32);
3760       }
3761       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3762         output.WriteRawTag(130, 7);
3763         output.WriteMessage(OneofNestedMessage);
3764       }
3765       if (HasOneofString) {
3766         output.WriteRawTag(138, 7);
3767         output.WriteString(OneofString);
3768       }
3769       if (HasOneofBytes) {
3770         output.WriteRawTag(146, 7);
3771         output.WriteBytes(OneofBytes);
3772       }
3773       if (HasOneofBool) {
3774         output.WriteRawTag(152, 7);
3775         output.WriteBool(OneofBool);
3776       }
3777       if (HasOneofUint64) {
3778         output.WriteRawTag(160, 7);
3779         output.WriteUInt64(OneofUint64);
3780       }
3781       if (HasOneofFloat) {
3782         output.WriteRawTag(173, 7);
3783         output.WriteFloat(OneofFloat);
3784       }
3785       if (HasOneofDouble) {
3786         output.WriteRawTag(177, 7);
3787         output.WriteDouble(OneofDouble);
3788       }
3789       if (HasOneofEnum) {
3790         output.WriteRawTag(184, 7);
3791         output.WriteEnum((int) OneofEnum);
3792       }
3793       if (HasData) {
3794         output.WriteRawTag(203, 12);
3795         output.WriteGroup(Data);
3796         output.WriteRawTag(204, 12);
3797       }
3798       if (HasDefaultInt32) {
3799         output.WriteRawTag(136, 15);
3800         output.WriteInt32(DefaultInt32);
3801       }
3802       if (HasDefaultInt64) {
3803         output.WriteRawTag(144, 15);
3804         output.WriteInt64(DefaultInt64);
3805       }
3806       if (HasDefaultUint32) {
3807         output.WriteRawTag(152, 15);
3808         output.WriteUInt32(DefaultUint32);
3809       }
3810       if (HasDefaultUint64) {
3811         output.WriteRawTag(160, 15);
3812         output.WriteUInt64(DefaultUint64);
3813       }
3814       if (HasDefaultSint32) {
3815         output.WriteRawTag(168, 15);
3816         output.WriteSInt32(DefaultSint32);
3817       }
3818       if (HasDefaultSint64) {
3819         output.WriteRawTag(176, 15);
3820         output.WriteSInt64(DefaultSint64);
3821       }
3822       if (HasDefaultFixed32) {
3823         output.WriteRawTag(189, 15);
3824         output.WriteFixed32(DefaultFixed32);
3825       }
3826       if (HasDefaultFixed64) {
3827         output.WriteRawTag(193, 15);
3828         output.WriteFixed64(DefaultFixed64);
3829       }
3830       if (HasDefaultSfixed32) {
3831         output.WriteRawTag(205, 15);
3832         output.WriteSFixed32(DefaultSfixed32);
3833       }
3834       if (HasDefaultSfixed64) {
3835         output.WriteRawTag(209, 15);
3836         output.WriteSFixed64(DefaultSfixed64);
3837       }
3838       if (HasDefaultFloat) {
3839         output.WriteRawTag(221, 15);
3840         output.WriteFloat(DefaultFloat);
3841       }
3842       if (HasDefaultDouble) {
3843         output.WriteRawTag(225, 15);
3844         output.WriteDouble(DefaultDouble);
3845       }
3846       if (HasDefaultBool) {
3847         output.WriteRawTag(232, 15);
3848         output.WriteBool(DefaultBool);
3849       }
3850       if (HasDefaultString) {
3851         output.WriteRawTag(242, 15);
3852         output.WriteString(DefaultString);
3853       }
3854       if (HasDefaultBytes) {
3855         output.WriteRawTag(250, 15);
3856         output.WriteBytes(DefaultBytes);
3857       }
3858       if (HasFieldname1) {
3859         output.WriteRawTag(136, 25);
3860         output.WriteInt32(Fieldname1);
3861       }
3862       if (HasFieldName2) {
3863         output.WriteRawTag(144, 25);
3864         output.WriteInt32(FieldName2);
3865       }
3866       if (HasFieldName3) {
3867         output.WriteRawTag(152, 25);
3868         output.WriteInt32(FieldName3);
3869       }
3870       if (HasFieldName4) {
3871         output.WriteRawTag(160, 25);
3872         output.WriteInt32(FieldName4);
3873       }
3874       if (HasField0Name5) {
3875         output.WriteRawTag(168, 25);
3876         output.WriteInt32(Field0Name5);
3877       }
3878       if (HasField0Name6) {
3879         output.WriteRawTag(176, 25);
3880         output.WriteInt32(Field0Name6);
3881       }
3882       if (HasFieldName7) {
3883         output.WriteRawTag(184, 25);
3884         output.WriteInt32(FieldName7);
3885       }
3886       if (HasFieldName8) {
3887         output.WriteRawTag(192, 25);
3888         output.WriteInt32(FieldName8);
3889       }
3890       if (HasFieldName9) {
3891         output.WriteRawTag(200, 25);
3892         output.WriteInt32(FieldName9);
3893       }
3894       if (HasFieldName10) {
3895         output.WriteRawTag(208, 25);
3896         output.WriteInt32(FieldName10);
3897       }
3898       if (HasFIELDNAME11) {
3899         output.WriteRawTag(216, 25);
3900         output.WriteInt32(FIELDNAME11);
3901       }
3902       if (HasFIELDName12) {
3903         output.WriteRawTag(224, 25);
3904         output.WriteInt32(FIELDName12);
3905       }
3906       if (HasFieldName13) {
3907         output.WriteRawTag(232, 25);
3908         output.WriteInt32(FieldName13);
3909       }
3910       if (HasFieldName14) {
3911         output.WriteRawTag(240, 25);
3912         output.WriteInt32(FieldName14);
3913       }
3914       if (HasFieldName15) {
3915         output.WriteRawTag(248, 25);
3916         output.WriteInt32(FieldName15);
3917       }
3918       if (HasFieldName16) {
3919         output.WriteRawTag(128, 26);
3920         output.WriteInt32(FieldName16);
3921       }
3922       if (HasFieldName17) {
3923         output.WriteRawTag(136, 26);
3924         output.WriteInt32(FieldName17);
3925       }
3926       if (HasFieldName18) {
3927         output.WriteRawTag(144, 26);
3928         output.WriteInt32(FieldName18);
3929       }
3930       if (_extensions != null) {
3931         _extensions.WriteTo(ref output);
3932       }
3933       if (_unknownFields != null) {
3934         _unknownFields.WriteTo(ref output);
3935       }
3936     }
3937     #endif
3938 
3939     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3940     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()3941     public int CalculateSize() {
3942       int size = 0;
3943       if (HasOptionalInt32) {
3944         size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
3945       }
3946       if (HasOptionalInt64) {
3947         size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
3948       }
3949       if (HasOptionalUint32) {
3950         size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
3951       }
3952       if (HasOptionalUint64) {
3953         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
3954       }
3955       if (HasOptionalSint32) {
3956         size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
3957       }
3958       if (HasOptionalSint64) {
3959         size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
3960       }
3961       if (HasOptionalFixed32) {
3962         size += 1 + 4;
3963       }
3964       if (HasOptionalFixed64) {
3965         size += 1 + 8;
3966       }
3967       if (HasOptionalSfixed32) {
3968         size += 1 + 4;
3969       }
3970       if (HasOptionalSfixed64) {
3971         size += 1 + 8;
3972       }
3973       if (HasOptionalFloat) {
3974         size += 1 + 4;
3975       }
3976       if (HasOptionalDouble) {
3977         size += 1 + 8;
3978       }
3979       if (HasOptionalBool) {
3980         size += 1 + 1;
3981       }
3982       if (HasOptionalString) {
3983         size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
3984       }
3985       if (HasOptionalBytes) {
3986         size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
3987       }
3988       if (optionalNestedMessage_ != null) {
3989         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
3990       }
3991       if (optionalForeignMessage_ != null) {
3992         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
3993       }
3994       if (HasOptionalNestedEnum) {
3995         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
3996       }
3997       if (HasOptionalForeignEnum) {
3998         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
3999       }
4000       if (HasOptionalStringPiece) {
4001         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
4002       }
4003       if (HasOptionalCord) {
4004         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
4005       }
4006       if (recursiveMessage_ != null) {
4007         size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage);
4008       }
4009       size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
4010       size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
4011       size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
4012       size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
4013       size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
4014       size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
4015       size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
4016       size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
4017       size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
4018       size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
4019       size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
4020       size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
4021       size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
4022       size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
4023       size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
4024       size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
4025       size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
4026       size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
4027       size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
4028       size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
4029       size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
4030       size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
4031       size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
4032       size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
4033       size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
4034       size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
4035       size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
4036       size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
4037       size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
4038       size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
4039       size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
4040       size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
4041       size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
4042       size += packedBool_.CalculateSize(_repeated_packedBool_codec);
4043       size += packedNestedEnum_.CalculateSize(_repeated_packedNestedEnum_codec);
4044       size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
4045       size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
4046       size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
4047       size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
4048       size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
4049       size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
4050       size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
4051       size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
4052       size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
4053       size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
4054       size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
4055       size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
4056       size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
4057       size += unpackedNestedEnum_.CalculateSize(_repeated_unpackedNestedEnum_codec);
4058       size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
4059       size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
4060       size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
4061       size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
4062       size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
4063       size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
4064       size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
4065       size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
4066       size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
4067       size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
4068       size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
4069       size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
4070       size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
4071       size += mapStringString_.CalculateSize(_map_mapStringString_codec);
4072       size += mapStringBytes_.CalculateSize(_map_mapStringBytes_codec);
4073       size += mapStringNestedMessage_.CalculateSize(_map_mapStringNestedMessage_codec);
4074       size += mapStringForeignMessage_.CalculateSize(_map_mapStringForeignMessage_codec);
4075       size += mapStringNestedEnum_.CalculateSize(_map_mapStringNestedEnum_codec);
4076       size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec);
4077       if (HasOneofUint32) {
4078         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
4079       }
4080       if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
4081         size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
4082       }
4083       if (HasOneofString) {
4084         size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
4085       }
4086       if (HasOneofBytes) {
4087         size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
4088       }
4089       if (HasOneofBool) {
4090         size += 2 + 1;
4091       }
4092       if (HasOneofUint64) {
4093         size += 2 + pb::CodedOutputStream.ComputeUInt64Size(OneofUint64);
4094       }
4095       if (HasOneofFloat) {
4096         size += 2 + 4;
4097       }
4098       if (HasOneofDouble) {
4099         size += 2 + 8;
4100       }
4101       if (HasOneofEnum) {
4102         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OneofEnum);
4103       }
4104       if (HasData) {
4105         size += 4 + pb::CodedOutputStream.ComputeGroupSize(Data);
4106       }
4107       if (HasDefaultInt32) {
4108         size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32);
4109       }
4110       if (HasDefaultInt64) {
4111         size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64);
4112       }
4113       if (HasDefaultUint32) {
4114         size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32);
4115       }
4116       if (HasDefaultUint64) {
4117         size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64);
4118       }
4119       if (HasDefaultSint32) {
4120         size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32);
4121       }
4122       if (HasDefaultSint64) {
4123         size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64);
4124       }
4125       if (HasDefaultFixed32) {
4126         size += 2 + 4;
4127       }
4128       if (HasDefaultFixed64) {
4129         size += 2 + 8;
4130       }
4131       if (HasDefaultSfixed32) {
4132         size += 2 + 4;
4133       }
4134       if (HasDefaultSfixed64) {
4135         size += 2 + 8;
4136       }
4137       if (HasDefaultFloat) {
4138         size += 2 + 4;
4139       }
4140       if (HasDefaultDouble) {
4141         size += 2 + 8;
4142       }
4143       if (HasDefaultBool) {
4144         size += 2 + 1;
4145       }
4146       if (HasDefaultString) {
4147         size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString);
4148       }
4149       if (HasDefaultBytes) {
4150         size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes);
4151       }
4152       if (HasFieldname1) {
4153         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Fieldname1);
4154       }
4155       if (HasFieldName2) {
4156         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
4157       }
4158       if (HasFieldName3) {
4159         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
4160       }
4161       if (HasFieldName4) {
4162         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
4163       }
4164       if (HasField0Name5) {
4165         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name5);
4166       }
4167       if (HasField0Name6) {
4168         size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name6);
4169       }
4170       if (HasFieldName7) {
4171         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName7);
4172       }
4173       if (HasFieldName8) {
4174         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName8);
4175       }
4176       if (HasFieldName9) {
4177         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName9);
4178       }
4179       if (HasFieldName10) {
4180         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName10);
4181       }
4182       if (HasFIELDNAME11) {
4183         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME11);
4184       }
4185       if (HasFIELDName12) {
4186         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDName12);
4187       }
4188       if (HasFieldName13) {
4189         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName13);
4190       }
4191       if (HasFieldName14) {
4192         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName14);
4193       }
4194       if (HasFieldName15) {
4195         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName15);
4196       }
4197       if (HasFieldName16) {
4198         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName16);
4199       }
4200       if (HasFieldName17) {
4201         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName17);
4202       }
4203       if (HasFieldName18) {
4204         size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName18);
4205       }
4206       if (_extensions != null) {
4207         size += _extensions.CalculateSize();
4208       }
4209       if (_unknownFields != null) {
4210         size += _unknownFields.CalculateSize();
4211       }
4212       return size;
4213     }
4214 
4215     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4216     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestAllTypesProto2 other)4217     public void MergeFrom(TestAllTypesProto2 other) {
4218       if (other == null) {
4219         return;
4220       }
4221       if (other.HasOptionalInt32) {
4222         OptionalInt32 = other.OptionalInt32;
4223       }
4224       if (other.HasOptionalInt64) {
4225         OptionalInt64 = other.OptionalInt64;
4226       }
4227       if (other.HasOptionalUint32) {
4228         OptionalUint32 = other.OptionalUint32;
4229       }
4230       if (other.HasOptionalUint64) {
4231         OptionalUint64 = other.OptionalUint64;
4232       }
4233       if (other.HasOptionalSint32) {
4234         OptionalSint32 = other.OptionalSint32;
4235       }
4236       if (other.HasOptionalSint64) {
4237         OptionalSint64 = other.OptionalSint64;
4238       }
4239       if (other.HasOptionalFixed32) {
4240         OptionalFixed32 = other.OptionalFixed32;
4241       }
4242       if (other.HasOptionalFixed64) {
4243         OptionalFixed64 = other.OptionalFixed64;
4244       }
4245       if (other.HasOptionalSfixed32) {
4246         OptionalSfixed32 = other.OptionalSfixed32;
4247       }
4248       if (other.HasOptionalSfixed64) {
4249         OptionalSfixed64 = other.OptionalSfixed64;
4250       }
4251       if (other.HasOptionalFloat) {
4252         OptionalFloat = other.OptionalFloat;
4253       }
4254       if (other.HasOptionalDouble) {
4255         OptionalDouble = other.OptionalDouble;
4256       }
4257       if (other.HasOptionalBool) {
4258         OptionalBool = other.OptionalBool;
4259       }
4260       if (other.HasOptionalString) {
4261         OptionalString = other.OptionalString;
4262       }
4263       if (other.HasOptionalBytes) {
4264         OptionalBytes = other.OptionalBytes;
4265       }
4266       if (other.optionalNestedMessage_ != null) {
4267         if (optionalNestedMessage_ == null) {
4268           OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
4269         }
4270         OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
4271       }
4272       if (other.optionalForeignMessage_ != null) {
4273         if (optionalForeignMessage_ == null) {
4274           OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
4275         }
4276         OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
4277       }
4278       if (other.HasOptionalNestedEnum) {
4279         OptionalNestedEnum = other.OptionalNestedEnum;
4280       }
4281       if (other.HasOptionalForeignEnum) {
4282         OptionalForeignEnum = other.OptionalForeignEnum;
4283       }
4284       if (other.HasOptionalStringPiece) {
4285         OptionalStringPiece = other.OptionalStringPiece;
4286       }
4287       if (other.HasOptionalCord) {
4288         OptionalCord = other.OptionalCord;
4289       }
4290       if (other.recursiveMessage_ != null) {
4291         if (recursiveMessage_ == null) {
4292           RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
4293         }
4294         RecursiveMessage.MergeFrom(other.RecursiveMessage);
4295       }
4296       repeatedInt32_.Add(other.repeatedInt32_);
4297       repeatedInt64_.Add(other.repeatedInt64_);
4298       repeatedUint32_.Add(other.repeatedUint32_);
4299       repeatedUint64_.Add(other.repeatedUint64_);
4300       repeatedSint32_.Add(other.repeatedSint32_);
4301       repeatedSint64_.Add(other.repeatedSint64_);
4302       repeatedFixed32_.Add(other.repeatedFixed32_);
4303       repeatedFixed64_.Add(other.repeatedFixed64_);
4304       repeatedSfixed32_.Add(other.repeatedSfixed32_);
4305       repeatedSfixed64_.Add(other.repeatedSfixed64_);
4306       repeatedFloat_.Add(other.repeatedFloat_);
4307       repeatedDouble_.Add(other.repeatedDouble_);
4308       repeatedBool_.Add(other.repeatedBool_);
4309       repeatedString_.Add(other.repeatedString_);
4310       repeatedBytes_.Add(other.repeatedBytes_);
4311       repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
4312       repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
4313       repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
4314       repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
4315       repeatedStringPiece_.Add(other.repeatedStringPiece_);
4316       repeatedCord_.Add(other.repeatedCord_);
4317       packedInt32_.Add(other.packedInt32_);
4318       packedInt64_.Add(other.packedInt64_);
4319       packedUint32_.Add(other.packedUint32_);
4320       packedUint64_.Add(other.packedUint64_);
4321       packedSint32_.Add(other.packedSint32_);
4322       packedSint64_.Add(other.packedSint64_);
4323       packedFixed32_.Add(other.packedFixed32_);
4324       packedFixed64_.Add(other.packedFixed64_);
4325       packedSfixed32_.Add(other.packedSfixed32_);
4326       packedSfixed64_.Add(other.packedSfixed64_);
4327       packedFloat_.Add(other.packedFloat_);
4328       packedDouble_.Add(other.packedDouble_);
4329       packedBool_.Add(other.packedBool_);
4330       packedNestedEnum_.Add(other.packedNestedEnum_);
4331       unpackedInt32_.Add(other.unpackedInt32_);
4332       unpackedInt64_.Add(other.unpackedInt64_);
4333       unpackedUint32_.Add(other.unpackedUint32_);
4334       unpackedUint64_.Add(other.unpackedUint64_);
4335       unpackedSint32_.Add(other.unpackedSint32_);
4336       unpackedSint64_.Add(other.unpackedSint64_);
4337       unpackedFixed32_.Add(other.unpackedFixed32_);
4338       unpackedFixed64_.Add(other.unpackedFixed64_);
4339       unpackedSfixed32_.Add(other.unpackedSfixed32_);
4340       unpackedSfixed64_.Add(other.unpackedSfixed64_);
4341       unpackedFloat_.Add(other.unpackedFloat_);
4342       unpackedDouble_.Add(other.unpackedDouble_);
4343       unpackedBool_.Add(other.unpackedBool_);
4344       unpackedNestedEnum_.Add(other.unpackedNestedEnum_);
4345       mapInt32Int32_.Add(other.mapInt32Int32_);
4346       mapInt64Int64_.Add(other.mapInt64Int64_);
4347       mapUint32Uint32_.Add(other.mapUint32Uint32_);
4348       mapUint64Uint64_.Add(other.mapUint64Uint64_);
4349       mapSint32Sint32_.Add(other.mapSint32Sint32_);
4350       mapSint64Sint64_.Add(other.mapSint64Sint64_);
4351       mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
4352       mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
4353       mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
4354       mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
4355       mapInt32Float_.Add(other.mapInt32Float_);
4356       mapInt32Double_.Add(other.mapInt32Double_);
4357       mapBoolBool_.Add(other.mapBoolBool_);
4358       mapStringString_.Add(other.mapStringString_);
4359       mapStringBytes_.Add(other.mapStringBytes_);
4360       mapStringNestedMessage_.Add(other.mapStringNestedMessage_);
4361       mapStringForeignMessage_.Add(other.mapStringForeignMessage_);
4362       mapStringNestedEnum_.Add(other.mapStringNestedEnum_);
4363       mapStringForeignEnum_.Add(other.mapStringForeignEnum_);
4364       if (other.HasData) {
4365         if (!HasData) {
4366           Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data();
4367         }
4368         Data.MergeFrom(other.Data);
4369       }
4370       if (other.HasDefaultInt32) {
4371         DefaultInt32 = other.DefaultInt32;
4372       }
4373       if (other.HasDefaultInt64) {
4374         DefaultInt64 = other.DefaultInt64;
4375       }
4376       if (other.HasDefaultUint32) {
4377         DefaultUint32 = other.DefaultUint32;
4378       }
4379       if (other.HasDefaultUint64) {
4380         DefaultUint64 = other.DefaultUint64;
4381       }
4382       if (other.HasDefaultSint32) {
4383         DefaultSint32 = other.DefaultSint32;
4384       }
4385       if (other.HasDefaultSint64) {
4386         DefaultSint64 = other.DefaultSint64;
4387       }
4388       if (other.HasDefaultFixed32) {
4389         DefaultFixed32 = other.DefaultFixed32;
4390       }
4391       if (other.HasDefaultFixed64) {
4392         DefaultFixed64 = other.DefaultFixed64;
4393       }
4394       if (other.HasDefaultSfixed32) {
4395         DefaultSfixed32 = other.DefaultSfixed32;
4396       }
4397       if (other.HasDefaultSfixed64) {
4398         DefaultSfixed64 = other.DefaultSfixed64;
4399       }
4400       if (other.HasDefaultFloat) {
4401         DefaultFloat = other.DefaultFloat;
4402       }
4403       if (other.HasDefaultDouble) {
4404         DefaultDouble = other.DefaultDouble;
4405       }
4406       if (other.HasDefaultBool) {
4407         DefaultBool = other.DefaultBool;
4408       }
4409       if (other.HasDefaultString) {
4410         DefaultString = other.DefaultString;
4411       }
4412       if (other.HasDefaultBytes) {
4413         DefaultBytes = other.DefaultBytes;
4414       }
4415       if (other.HasFieldname1) {
4416         Fieldname1 = other.Fieldname1;
4417       }
4418       if (other.HasFieldName2) {
4419         FieldName2 = other.FieldName2;
4420       }
4421       if (other.HasFieldName3) {
4422         FieldName3 = other.FieldName3;
4423       }
4424       if (other.HasFieldName4) {
4425         FieldName4 = other.FieldName4;
4426       }
4427       if (other.HasField0Name5) {
4428         Field0Name5 = other.Field0Name5;
4429       }
4430       if (other.HasField0Name6) {
4431         Field0Name6 = other.Field0Name6;
4432       }
4433       if (other.HasFieldName7) {
4434         FieldName7 = other.FieldName7;
4435       }
4436       if (other.HasFieldName8) {
4437         FieldName8 = other.FieldName8;
4438       }
4439       if (other.HasFieldName9) {
4440         FieldName9 = other.FieldName9;
4441       }
4442       if (other.HasFieldName10) {
4443         FieldName10 = other.FieldName10;
4444       }
4445       if (other.HasFIELDNAME11) {
4446         FIELDNAME11 = other.FIELDNAME11;
4447       }
4448       if (other.HasFIELDName12) {
4449         FIELDName12 = other.FIELDName12;
4450       }
4451       if (other.HasFieldName13) {
4452         FieldName13 = other.FieldName13;
4453       }
4454       if (other.HasFieldName14) {
4455         FieldName14 = other.FieldName14;
4456       }
4457       if (other.HasFieldName15) {
4458         FieldName15 = other.FieldName15;
4459       }
4460       if (other.HasFieldName16) {
4461         FieldName16 = other.FieldName16;
4462       }
4463       if (other.HasFieldName17) {
4464         FieldName17 = other.FieldName17;
4465       }
4466       if (other.HasFieldName18) {
4467         FieldName18 = other.FieldName18;
4468       }
4469       switch (other.OneofFieldCase) {
4470         case OneofFieldOneofCase.OneofUint32:
4471           OneofUint32 = other.OneofUint32;
4472           break;
4473         case OneofFieldOneofCase.OneofNestedMessage:
4474           if (OneofNestedMessage == null) {
4475             OneofNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
4476           }
4477           OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
4478           break;
4479         case OneofFieldOneofCase.OneofString:
4480           OneofString = other.OneofString;
4481           break;
4482         case OneofFieldOneofCase.OneofBytes:
4483           OneofBytes = other.OneofBytes;
4484           break;
4485         case OneofFieldOneofCase.OneofBool:
4486           OneofBool = other.OneofBool;
4487           break;
4488         case OneofFieldOneofCase.OneofUint64:
4489           OneofUint64 = other.OneofUint64;
4490           break;
4491         case OneofFieldOneofCase.OneofFloat:
4492           OneofFloat = other.OneofFloat;
4493           break;
4494         case OneofFieldOneofCase.OneofDouble:
4495           OneofDouble = other.OneofDouble;
4496           break;
4497         case OneofFieldOneofCase.OneofEnum:
4498           OneofEnum = other.OneofEnum;
4499           break;
4500       }
4501 
4502       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
4503       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4504     }
4505 
4506     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4507     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)4508     public void MergeFrom(pb::CodedInputStream input) {
4509     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4510       input.ReadRawMessage(this);
4511     #else
4512       uint tag;
4513       while ((tag = input.ReadTag()) != 0) {
4514         switch(tag) {
4515           default:
4516             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
4517               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4518             }
4519             break;
4520           case 8: {
4521             OptionalInt32 = input.ReadInt32();
4522             break;
4523           }
4524           case 16: {
4525             OptionalInt64 = input.ReadInt64();
4526             break;
4527           }
4528           case 24: {
4529             OptionalUint32 = input.ReadUInt32();
4530             break;
4531           }
4532           case 32: {
4533             OptionalUint64 = input.ReadUInt64();
4534             break;
4535           }
4536           case 40: {
4537             OptionalSint32 = input.ReadSInt32();
4538             break;
4539           }
4540           case 48: {
4541             OptionalSint64 = input.ReadSInt64();
4542             break;
4543           }
4544           case 61: {
4545             OptionalFixed32 = input.ReadFixed32();
4546             break;
4547           }
4548           case 65: {
4549             OptionalFixed64 = input.ReadFixed64();
4550             break;
4551           }
4552           case 77: {
4553             OptionalSfixed32 = input.ReadSFixed32();
4554             break;
4555           }
4556           case 81: {
4557             OptionalSfixed64 = input.ReadSFixed64();
4558             break;
4559           }
4560           case 93: {
4561             OptionalFloat = input.ReadFloat();
4562             break;
4563           }
4564           case 97: {
4565             OptionalDouble = input.ReadDouble();
4566             break;
4567           }
4568           case 104: {
4569             OptionalBool = input.ReadBool();
4570             break;
4571           }
4572           case 114: {
4573             OptionalString = input.ReadString();
4574             break;
4575           }
4576           case 122: {
4577             OptionalBytes = input.ReadBytes();
4578             break;
4579           }
4580           case 146: {
4581             if (optionalNestedMessage_ == null) {
4582               OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
4583             }
4584             input.ReadMessage(OptionalNestedMessage);
4585             break;
4586           }
4587           case 154: {
4588             if (optionalForeignMessage_ == null) {
4589               OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
4590             }
4591             input.ReadMessage(OptionalForeignMessage);
4592             break;
4593           }
4594           case 168: {
4595             OptionalNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum();
4596             break;
4597           }
4598           case 176: {
4599             OptionalForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum();
4600             break;
4601           }
4602           case 194: {
4603             OptionalStringPiece = input.ReadString();
4604             break;
4605           }
4606           case 202: {
4607             OptionalCord = input.ReadString();
4608             break;
4609           }
4610           case 218: {
4611             if (recursiveMessage_ == null) {
4612               RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
4613             }
4614             input.ReadMessage(RecursiveMessage);
4615             break;
4616           }
4617           case 250:
4618           case 248: {
4619             repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
4620             break;
4621           }
4622           case 258:
4623           case 256: {
4624             repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
4625             break;
4626           }
4627           case 266:
4628           case 264: {
4629             repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
4630             break;
4631           }
4632           case 274:
4633           case 272: {
4634             repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
4635             break;
4636           }
4637           case 282:
4638           case 280: {
4639             repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
4640             break;
4641           }
4642           case 290:
4643           case 288: {
4644             repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
4645             break;
4646           }
4647           case 298:
4648           case 301: {
4649             repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
4650             break;
4651           }
4652           case 306:
4653           case 305: {
4654             repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
4655             break;
4656           }
4657           case 314:
4658           case 317: {
4659             repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
4660             break;
4661           }
4662           case 322:
4663           case 321: {
4664             repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
4665             break;
4666           }
4667           case 330:
4668           case 333: {
4669             repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
4670             break;
4671           }
4672           case 338:
4673           case 337: {
4674             repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
4675             break;
4676           }
4677           case 346:
4678           case 344: {
4679             repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
4680             break;
4681           }
4682           case 354: {
4683             repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
4684             break;
4685           }
4686           case 362: {
4687             repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
4688             break;
4689           }
4690           case 386: {
4691             repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
4692             break;
4693           }
4694           case 394: {
4695             repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
4696             break;
4697           }
4698           case 410:
4699           case 408: {
4700             repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
4701             break;
4702           }
4703           case 418:
4704           case 416: {
4705             repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
4706             break;
4707           }
4708           case 434: {
4709             repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
4710             break;
4711           }
4712           case 442: {
4713             repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
4714             break;
4715           }
4716           case 450: {
4717             mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
4718             break;
4719           }
4720           case 458: {
4721             mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
4722             break;
4723           }
4724           case 466: {
4725             mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
4726             break;
4727           }
4728           case 474: {
4729             mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
4730             break;
4731           }
4732           case 482: {
4733             mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
4734             break;
4735           }
4736           case 490: {
4737             mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
4738             break;
4739           }
4740           case 498: {
4741             mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
4742             break;
4743           }
4744           case 506: {
4745             mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
4746             break;
4747           }
4748           case 514: {
4749             mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
4750             break;
4751           }
4752           case 522: {
4753             mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
4754             break;
4755           }
4756           case 530: {
4757             mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
4758             break;
4759           }
4760           case 538: {
4761             mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
4762             break;
4763           }
4764           case 546: {
4765             mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
4766             break;
4767           }
4768           case 554: {
4769             mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
4770             break;
4771           }
4772           case 562: {
4773             mapStringBytes_.AddEntriesFrom(input, _map_mapStringBytes_codec);
4774             break;
4775           }
4776           case 570: {
4777             mapStringNestedMessage_.AddEntriesFrom(input, _map_mapStringNestedMessage_codec);
4778             break;
4779           }
4780           case 578: {
4781             mapStringForeignMessage_.AddEntriesFrom(input, _map_mapStringForeignMessage_codec);
4782             break;
4783           }
4784           case 586: {
4785             mapStringNestedEnum_.AddEntriesFrom(input, _map_mapStringNestedEnum_codec);
4786             break;
4787           }
4788           case 594: {
4789             mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec);
4790             break;
4791           }
4792           case 602:
4793           case 600: {
4794             packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
4795             break;
4796           }
4797           case 610:
4798           case 608: {
4799             packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
4800             break;
4801           }
4802           case 618:
4803           case 616: {
4804             packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
4805             break;
4806           }
4807           case 626:
4808           case 624: {
4809             packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
4810             break;
4811           }
4812           case 634:
4813           case 632: {
4814             packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
4815             break;
4816           }
4817           case 642:
4818           case 640: {
4819             packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
4820             break;
4821           }
4822           case 650:
4823           case 653: {
4824             packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
4825             break;
4826           }
4827           case 658:
4828           case 657: {
4829             packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
4830             break;
4831           }
4832           case 666:
4833           case 669: {
4834             packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
4835             break;
4836           }
4837           case 674:
4838           case 673: {
4839             packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
4840             break;
4841           }
4842           case 682:
4843           case 685: {
4844             packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
4845             break;
4846           }
4847           case 690:
4848           case 689: {
4849             packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
4850             break;
4851           }
4852           case 698:
4853           case 696: {
4854             packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
4855             break;
4856           }
4857           case 706:
4858           case 704: {
4859             packedNestedEnum_.AddEntriesFrom(input, _repeated_packedNestedEnum_codec);
4860             break;
4861           }
4862           case 714:
4863           case 712: {
4864             unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
4865             break;
4866           }
4867           case 722:
4868           case 720: {
4869             unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
4870             break;
4871           }
4872           case 730:
4873           case 728: {
4874             unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
4875             break;
4876           }
4877           case 738:
4878           case 736: {
4879             unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
4880             break;
4881           }
4882           case 746:
4883           case 744: {
4884             unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
4885             break;
4886           }
4887           case 754:
4888           case 752: {
4889             unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
4890             break;
4891           }
4892           case 762:
4893           case 765: {
4894             unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
4895             break;
4896           }
4897           case 770:
4898           case 769: {
4899             unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
4900             break;
4901           }
4902           case 778:
4903           case 781: {
4904             unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
4905             break;
4906           }
4907           case 786:
4908           case 785: {
4909             unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
4910             break;
4911           }
4912           case 794:
4913           case 797: {
4914             unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
4915             break;
4916           }
4917           case 802:
4918           case 801: {
4919             unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
4920             break;
4921           }
4922           case 810:
4923           case 808: {
4924             unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
4925             break;
4926           }
4927           case 818:
4928           case 816: {
4929             unpackedNestedEnum_.AddEntriesFrom(input, _repeated_unpackedNestedEnum_codec);
4930             break;
4931           }
4932           case 888: {
4933             OneofUint32 = input.ReadUInt32();
4934             break;
4935           }
4936           case 898: {
4937             global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
4938             if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
4939               subBuilder.MergeFrom(OneofNestedMessage);
4940             }
4941             input.ReadMessage(subBuilder);
4942             OneofNestedMessage = subBuilder;
4943             break;
4944           }
4945           case 906: {
4946             OneofString = input.ReadString();
4947             break;
4948           }
4949           case 914: {
4950             OneofBytes = input.ReadBytes();
4951             break;
4952           }
4953           case 920: {
4954             OneofBool = input.ReadBool();
4955             break;
4956           }
4957           case 928: {
4958             OneofUint64 = input.ReadUInt64();
4959             break;
4960           }
4961           case 941: {
4962             OneofFloat = input.ReadFloat();
4963             break;
4964           }
4965           case 945: {
4966             OneofDouble = input.ReadDouble();
4967             break;
4968           }
4969           case 952: {
4970             oneofField_ = input.ReadEnum();
4971             oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
4972             break;
4973           }
4974           case 1611: {
4975             if (!HasData) {
4976               Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data();
4977             }
4978             input.ReadGroup(Data);
4979             break;
4980           }
4981           case 1928: {
4982             DefaultInt32 = input.ReadInt32();
4983             break;
4984           }
4985           case 1936: {
4986             DefaultInt64 = input.ReadInt64();
4987             break;
4988           }
4989           case 1944: {
4990             DefaultUint32 = input.ReadUInt32();
4991             break;
4992           }
4993           case 1952: {
4994             DefaultUint64 = input.ReadUInt64();
4995             break;
4996           }
4997           case 1960: {
4998             DefaultSint32 = input.ReadSInt32();
4999             break;
5000           }
5001           case 1968: {
5002             DefaultSint64 = input.ReadSInt64();
5003             break;
5004           }
5005           case 1981: {
5006             DefaultFixed32 = input.ReadFixed32();
5007             break;
5008           }
5009           case 1985: {
5010             DefaultFixed64 = input.ReadFixed64();
5011             break;
5012           }
5013           case 1997: {
5014             DefaultSfixed32 = input.ReadSFixed32();
5015             break;
5016           }
5017           case 2001: {
5018             DefaultSfixed64 = input.ReadSFixed64();
5019             break;
5020           }
5021           case 2013: {
5022             DefaultFloat = input.ReadFloat();
5023             break;
5024           }
5025           case 2017: {
5026             DefaultDouble = input.ReadDouble();
5027             break;
5028           }
5029           case 2024: {
5030             DefaultBool = input.ReadBool();
5031             break;
5032           }
5033           case 2034: {
5034             DefaultString = input.ReadString();
5035             break;
5036           }
5037           case 2042: {
5038             DefaultBytes = input.ReadBytes();
5039             break;
5040           }
5041           case 3208: {
5042             Fieldname1 = input.ReadInt32();
5043             break;
5044           }
5045           case 3216: {
5046             FieldName2 = input.ReadInt32();
5047             break;
5048           }
5049           case 3224: {
5050             FieldName3 = input.ReadInt32();
5051             break;
5052           }
5053           case 3232: {
5054             FieldName4 = input.ReadInt32();
5055             break;
5056           }
5057           case 3240: {
5058             Field0Name5 = input.ReadInt32();
5059             break;
5060           }
5061           case 3248: {
5062             Field0Name6 = input.ReadInt32();
5063             break;
5064           }
5065           case 3256: {
5066             FieldName7 = input.ReadInt32();
5067             break;
5068           }
5069           case 3264: {
5070             FieldName8 = input.ReadInt32();
5071             break;
5072           }
5073           case 3272: {
5074             FieldName9 = input.ReadInt32();
5075             break;
5076           }
5077           case 3280: {
5078             FieldName10 = input.ReadInt32();
5079             break;
5080           }
5081           case 3288: {
5082             FIELDNAME11 = input.ReadInt32();
5083             break;
5084           }
5085           case 3296: {
5086             FIELDName12 = input.ReadInt32();
5087             break;
5088           }
5089           case 3304: {
5090             FieldName13 = input.ReadInt32();
5091             break;
5092           }
5093           case 3312: {
5094             FieldName14 = input.ReadInt32();
5095             break;
5096           }
5097           case 3320: {
5098             FieldName15 = input.ReadInt32();
5099             break;
5100           }
5101           case 3328: {
5102             FieldName16 = input.ReadInt32();
5103             break;
5104           }
5105           case 3336: {
5106             FieldName17 = input.ReadInt32();
5107             break;
5108           }
5109           case 3344: {
5110             FieldName18 = input.ReadInt32();
5111             break;
5112           }
5113         }
5114       }
5115     #endif
5116     }
5117 
5118     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5120     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5121     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5122       uint tag;
5123       while ((tag = input.ReadTag()) != 0) {
5124         switch(tag) {
5125           default:
5126             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
5127               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5128             }
5129             break;
5130           case 8: {
5131             OptionalInt32 = input.ReadInt32();
5132             break;
5133           }
5134           case 16: {
5135             OptionalInt64 = input.ReadInt64();
5136             break;
5137           }
5138           case 24: {
5139             OptionalUint32 = input.ReadUInt32();
5140             break;
5141           }
5142           case 32: {
5143             OptionalUint64 = input.ReadUInt64();
5144             break;
5145           }
5146           case 40: {
5147             OptionalSint32 = input.ReadSInt32();
5148             break;
5149           }
5150           case 48: {
5151             OptionalSint64 = input.ReadSInt64();
5152             break;
5153           }
5154           case 61: {
5155             OptionalFixed32 = input.ReadFixed32();
5156             break;
5157           }
5158           case 65: {
5159             OptionalFixed64 = input.ReadFixed64();
5160             break;
5161           }
5162           case 77: {
5163             OptionalSfixed32 = input.ReadSFixed32();
5164             break;
5165           }
5166           case 81: {
5167             OptionalSfixed64 = input.ReadSFixed64();
5168             break;
5169           }
5170           case 93: {
5171             OptionalFloat = input.ReadFloat();
5172             break;
5173           }
5174           case 97: {
5175             OptionalDouble = input.ReadDouble();
5176             break;
5177           }
5178           case 104: {
5179             OptionalBool = input.ReadBool();
5180             break;
5181           }
5182           case 114: {
5183             OptionalString = input.ReadString();
5184             break;
5185           }
5186           case 122: {
5187             OptionalBytes = input.ReadBytes();
5188             break;
5189           }
5190           case 146: {
5191             if (optionalNestedMessage_ == null) {
5192               OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
5193             }
5194             input.ReadMessage(OptionalNestedMessage);
5195             break;
5196           }
5197           case 154: {
5198             if (optionalForeignMessage_ == null) {
5199               OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
5200             }
5201             input.ReadMessage(OptionalForeignMessage);
5202             break;
5203           }
5204           case 168: {
5205             OptionalNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum();
5206             break;
5207           }
5208           case 176: {
5209             OptionalForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum();
5210             break;
5211           }
5212           case 194: {
5213             OptionalStringPiece = input.ReadString();
5214             break;
5215           }
5216           case 202: {
5217             OptionalCord = input.ReadString();
5218             break;
5219           }
5220           case 218: {
5221             if (recursiveMessage_ == null) {
5222               RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
5223             }
5224             input.ReadMessage(RecursiveMessage);
5225             break;
5226           }
5227           case 250:
5228           case 248: {
5229             repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
5230             break;
5231           }
5232           case 258:
5233           case 256: {
5234             repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
5235             break;
5236           }
5237           case 266:
5238           case 264: {
5239             repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec);
5240             break;
5241           }
5242           case 274:
5243           case 272: {
5244             repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
5245             break;
5246           }
5247           case 282:
5248           case 280: {
5249             repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec);
5250             break;
5251           }
5252           case 290:
5253           case 288: {
5254             repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec);
5255             break;
5256           }
5257           case 298:
5258           case 301: {
5259             repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
5260             break;
5261           }
5262           case 306:
5263           case 305: {
5264             repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
5265             break;
5266           }
5267           case 314:
5268           case 317: {
5269             repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec);
5270             break;
5271           }
5272           case 322:
5273           case 321: {
5274             repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec);
5275             break;
5276           }
5277           case 330:
5278           case 333: {
5279             repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
5280             break;
5281           }
5282           case 338:
5283           case 337: {
5284             repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec);
5285             break;
5286           }
5287           case 346:
5288           case 344: {
5289             repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec);
5290             break;
5291           }
5292           case 354: {
5293             repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec);
5294             break;
5295           }
5296           case 362: {
5297             repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec);
5298             break;
5299           }
5300           case 386: {
5301             repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec);
5302             break;
5303           }
5304           case 394: {
5305             repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec);
5306             break;
5307           }
5308           case 410:
5309           case 408: {
5310             repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec);
5311             break;
5312           }
5313           case 418:
5314           case 416: {
5315             repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec);
5316             break;
5317           }
5318           case 434: {
5319             repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec);
5320             break;
5321           }
5322           case 442: {
5323             repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec);
5324             break;
5325           }
5326           case 450: {
5327             mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
5328             break;
5329           }
5330           case 458: {
5331             mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
5332             break;
5333           }
5334           case 466: {
5335             mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
5336             break;
5337           }
5338           case 474: {
5339             mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
5340             break;
5341           }
5342           case 482: {
5343             mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
5344             break;
5345           }
5346           case 490: {
5347             mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
5348             break;
5349           }
5350           case 498: {
5351             mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
5352             break;
5353           }
5354           case 506: {
5355             mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
5356             break;
5357           }
5358           case 514: {
5359             mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
5360             break;
5361           }
5362           case 522: {
5363             mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
5364             break;
5365           }
5366           case 530: {
5367             mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
5368             break;
5369           }
5370           case 538: {
5371             mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
5372             break;
5373           }
5374           case 546: {
5375             mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
5376             break;
5377           }
5378           case 554: {
5379             mapStringString_.AddEntriesFrom(ref input, _map_mapStringString_codec);
5380             break;
5381           }
5382           case 562: {
5383             mapStringBytes_.AddEntriesFrom(ref input, _map_mapStringBytes_codec);
5384             break;
5385           }
5386           case 570: {
5387             mapStringNestedMessage_.AddEntriesFrom(ref input, _map_mapStringNestedMessage_codec);
5388             break;
5389           }
5390           case 578: {
5391             mapStringForeignMessage_.AddEntriesFrom(ref input, _map_mapStringForeignMessage_codec);
5392             break;
5393           }
5394           case 586: {
5395             mapStringNestedEnum_.AddEntriesFrom(ref input, _map_mapStringNestedEnum_codec);
5396             break;
5397           }
5398           case 594: {
5399             mapStringForeignEnum_.AddEntriesFrom(ref input, _map_mapStringForeignEnum_codec);
5400             break;
5401           }
5402           case 602:
5403           case 600: {
5404             packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
5405             break;
5406           }
5407           case 610:
5408           case 608: {
5409             packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec);
5410             break;
5411           }
5412           case 618:
5413           case 616: {
5414             packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec);
5415             break;
5416           }
5417           case 626:
5418           case 624: {
5419             packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec);
5420             break;
5421           }
5422           case 634:
5423           case 632: {
5424             packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec);
5425             break;
5426           }
5427           case 642:
5428           case 640: {
5429             packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec);
5430             break;
5431           }
5432           case 650:
5433           case 653: {
5434             packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec);
5435             break;
5436           }
5437           case 658:
5438           case 657: {
5439             packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec);
5440             break;
5441           }
5442           case 666:
5443           case 669: {
5444             packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec);
5445             break;
5446           }
5447           case 674:
5448           case 673: {
5449             packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec);
5450             break;
5451           }
5452           case 682:
5453           case 685: {
5454             packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec);
5455             break;
5456           }
5457           case 690:
5458           case 689: {
5459             packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec);
5460             break;
5461           }
5462           case 698:
5463           case 696: {
5464             packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec);
5465             break;
5466           }
5467           case 706:
5468           case 704: {
5469             packedNestedEnum_.AddEntriesFrom(ref input, _repeated_packedNestedEnum_codec);
5470             break;
5471           }
5472           case 714:
5473           case 712: {
5474             unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec);
5475             break;
5476           }
5477           case 722:
5478           case 720: {
5479             unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec);
5480             break;
5481           }
5482           case 730:
5483           case 728: {
5484             unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec);
5485             break;
5486           }
5487           case 738:
5488           case 736: {
5489             unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec);
5490             break;
5491           }
5492           case 746:
5493           case 744: {
5494             unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec);
5495             break;
5496           }
5497           case 754:
5498           case 752: {
5499             unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec);
5500             break;
5501           }
5502           case 762:
5503           case 765: {
5504             unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec);
5505             break;
5506           }
5507           case 770:
5508           case 769: {
5509             unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec);
5510             break;
5511           }
5512           case 778:
5513           case 781: {
5514             unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec);
5515             break;
5516           }
5517           case 786:
5518           case 785: {
5519             unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec);
5520             break;
5521           }
5522           case 794:
5523           case 797: {
5524             unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec);
5525             break;
5526           }
5527           case 802:
5528           case 801: {
5529             unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec);
5530             break;
5531           }
5532           case 810:
5533           case 808: {
5534             unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec);
5535             break;
5536           }
5537           case 818:
5538           case 816: {
5539             unpackedNestedEnum_.AddEntriesFrom(ref input, _repeated_unpackedNestedEnum_codec);
5540             break;
5541           }
5542           case 888: {
5543             OneofUint32 = input.ReadUInt32();
5544             break;
5545           }
5546           case 898: {
5547             global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
5548             if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
5549               subBuilder.MergeFrom(OneofNestedMessage);
5550             }
5551             input.ReadMessage(subBuilder);
5552             OneofNestedMessage = subBuilder;
5553             break;
5554           }
5555           case 906: {
5556             OneofString = input.ReadString();
5557             break;
5558           }
5559           case 914: {
5560             OneofBytes = input.ReadBytes();
5561             break;
5562           }
5563           case 920: {
5564             OneofBool = input.ReadBool();
5565             break;
5566           }
5567           case 928: {
5568             OneofUint64 = input.ReadUInt64();
5569             break;
5570           }
5571           case 941: {
5572             OneofFloat = input.ReadFloat();
5573             break;
5574           }
5575           case 945: {
5576             OneofDouble = input.ReadDouble();
5577             break;
5578           }
5579           case 952: {
5580             oneofField_ = input.ReadEnum();
5581             oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
5582             break;
5583           }
5584           case 1611: {
5585             if (!HasData) {
5586               Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data();
5587             }
5588             input.ReadGroup(Data);
5589             break;
5590           }
5591           case 1928: {
5592             DefaultInt32 = input.ReadInt32();
5593             break;
5594           }
5595           case 1936: {
5596             DefaultInt64 = input.ReadInt64();
5597             break;
5598           }
5599           case 1944: {
5600             DefaultUint32 = input.ReadUInt32();
5601             break;
5602           }
5603           case 1952: {
5604             DefaultUint64 = input.ReadUInt64();
5605             break;
5606           }
5607           case 1960: {
5608             DefaultSint32 = input.ReadSInt32();
5609             break;
5610           }
5611           case 1968: {
5612             DefaultSint64 = input.ReadSInt64();
5613             break;
5614           }
5615           case 1981: {
5616             DefaultFixed32 = input.ReadFixed32();
5617             break;
5618           }
5619           case 1985: {
5620             DefaultFixed64 = input.ReadFixed64();
5621             break;
5622           }
5623           case 1997: {
5624             DefaultSfixed32 = input.ReadSFixed32();
5625             break;
5626           }
5627           case 2001: {
5628             DefaultSfixed64 = input.ReadSFixed64();
5629             break;
5630           }
5631           case 2013: {
5632             DefaultFloat = input.ReadFloat();
5633             break;
5634           }
5635           case 2017: {
5636             DefaultDouble = input.ReadDouble();
5637             break;
5638           }
5639           case 2024: {
5640             DefaultBool = input.ReadBool();
5641             break;
5642           }
5643           case 2034: {
5644             DefaultString = input.ReadString();
5645             break;
5646           }
5647           case 2042: {
5648             DefaultBytes = input.ReadBytes();
5649             break;
5650           }
5651           case 3208: {
5652             Fieldname1 = input.ReadInt32();
5653             break;
5654           }
5655           case 3216: {
5656             FieldName2 = input.ReadInt32();
5657             break;
5658           }
5659           case 3224: {
5660             FieldName3 = input.ReadInt32();
5661             break;
5662           }
5663           case 3232: {
5664             FieldName4 = input.ReadInt32();
5665             break;
5666           }
5667           case 3240: {
5668             Field0Name5 = input.ReadInt32();
5669             break;
5670           }
5671           case 3248: {
5672             Field0Name6 = input.ReadInt32();
5673             break;
5674           }
5675           case 3256: {
5676             FieldName7 = input.ReadInt32();
5677             break;
5678           }
5679           case 3264: {
5680             FieldName8 = input.ReadInt32();
5681             break;
5682           }
5683           case 3272: {
5684             FieldName9 = input.ReadInt32();
5685             break;
5686           }
5687           case 3280: {
5688             FieldName10 = input.ReadInt32();
5689             break;
5690           }
5691           case 3288: {
5692             FIELDNAME11 = input.ReadInt32();
5693             break;
5694           }
5695           case 3296: {
5696             FIELDName12 = input.ReadInt32();
5697             break;
5698           }
5699           case 3304: {
5700             FieldName13 = input.ReadInt32();
5701             break;
5702           }
5703           case 3312: {
5704             FieldName14 = input.ReadInt32();
5705             break;
5706           }
5707           case 3320: {
5708             FieldName15 = input.ReadInt32();
5709             break;
5710           }
5711           case 3328: {
5712             FieldName16 = input.ReadInt32();
5713             break;
5714           }
5715           case 3336: {
5716             FieldName17 = input.ReadInt32();
5717             break;
5718           }
5719           case 3344: {
5720             FieldName18 = input.ReadInt32();
5721             break;
5722           }
5723         }
5724       }
5725     }
5726     #endif
5727 
GetExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5728     public TValue GetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
5729       return pb::ExtensionSet.Get(ref _extensions, extension);
5730     }
GetExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5731     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
5732       return pb::ExtensionSet.Get(ref _extensions, extension);
5733     }
GetOrInitializeExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5734     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
5735       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
5736     }
SetExtension(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value)5737     public void SetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value) {
5738       pb::ExtensionSet.Set(ref _extensions, extension, value);
5739     }
HasExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5740     public bool HasExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
5741       return pb::ExtensionSet.Has(ref _extensions, extension);
5742     }
ClearExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5743     public void ClearExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
5744       pb::ExtensionSet.Clear(ref _extensions, extension);
5745     }
ClearExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5746     public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
5747       pb::ExtensionSet.Clear(ref _extensions, extension);
5748     }
5749 
5750     #region Nested types
5751     /// <summary>Container for nested types declared in the TestAllTypesProto2 message type.</summary>
5752     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5753     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5754     public static partial class Types {
5755       public enum NestedEnum {
5756         [pbr::OriginalName("FOO")] Foo = 0,
5757         [pbr::OriginalName("BAR")] Bar = 1,
5758         [pbr::OriginalName("BAZ")] Baz = 2,
5759         /// <summary>
5760         /// Intentionally negative.
5761         /// </summary>
5762         [pbr::OriginalName("NEG")] Neg = -1,
5763       }
5764 
5765       public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
5766       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5767           , pb::IBufferMessage
5768       #endif
5769       {
5770         private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
5771         private pb::UnknownFieldSet _unknownFields;
5772         private int _hasBits0;
5773         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5774         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5775         public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
5776 
5777         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5778         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5779         public static pbr::MessageDescriptor Descriptor {
5780           get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[0]; }
5781         }
5782 
5783         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5784         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5785         pbr::MessageDescriptor pb::IMessage.Descriptor {
5786           get { return Descriptor; }
5787         }
5788 
5789         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5790         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage()5791         public NestedMessage() {
5792           OnConstruction();
5793         }
5794 
OnConstruction()5795         partial void OnConstruction();
5796 
5797         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5798         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NestedMessage(NestedMessage other)5799         public NestedMessage(NestedMessage other) : this() {
5800           _hasBits0 = other._hasBits0;
5801           a_ = other.a_;
5802           corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null;
5803           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5804         }
5805 
5806         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5807         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5808         public NestedMessage Clone() {
5809           return new NestedMessage(this);
5810         }
5811 
5812         /// <summary>Field number for the "a" field.</summary>
5813         public const int AFieldNumber = 1;
5814         private readonly static int ADefaultValue = 0;
5815 
5816         private int a_;
5817         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5818         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5819         public int A {
5820           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
5821           set {
5822             _hasBits0 |= 1;
5823             a_ = value;
5824           }
5825         }
5826         /// <summary>Gets whether the "a" field is set</summary>
5827         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5828         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5829         public bool HasA {
5830           get { return (_hasBits0 & 1) != 0; }
5831         }
5832         /// <summary>Clears the value of the "a" field</summary>
5833         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5834         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()5835         public void ClearA() {
5836           _hasBits0 &= ~1;
5837         }
5838 
5839         /// <summary>Field number for the "corecursive" field.</summary>
5840         public const int CorecursiveFieldNumber = 2;
5841         private global::ProtobufTestMessages.Proto2.TestAllTypesProto2 corecursive_;
5842         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5843         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5844         public global::ProtobufTestMessages.Proto2.TestAllTypesProto2 Corecursive {
5845           get { return corecursive_; }
5846           set {
5847             corecursive_ = value;
5848           }
5849         }
5850 
5851         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5852         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5853         public override bool Equals(object other) {
5854           return Equals(other as NestedMessage);
5855         }
5856 
5857         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5858         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NestedMessage other)5859         public bool Equals(NestedMessage other) {
5860           if (ReferenceEquals(other, null)) {
5861             return false;
5862           }
5863           if (ReferenceEquals(other, this)) {
5864             return true;
5865           }
5866           if (A != other.A) return false;
5867           if (!object.Equals(Corecursive, other.Corecursive)) return false;
5868           return Equals(_unknownFields, other._unknownFields);
5869         }
5870 
5871         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5872         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5873         public override int GetHashCode() {
5874           int hash = 1;
5875           if (HasA) hash ^= A.GetHashCode();
5876           if (corecursive_ != null) hash ^= Corecursive.GetHashCode();
5877           if (_unknownFields != null) {
5878             hash ^= _unknownFields.GetHashCode();
5879           }
5880           return hash;
5881         }
5882 
5883         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5884         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5885         public override string ToString() {
5886           return pb::JsonFormatter.ToDiagnosticString(this);
5887         }
5888 
5889         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5890         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5891         public void WriteTo(pb::CodedOutputStream output) {
5892         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5893           output.WriteRawMessage(this);
5894         #else
5895           if (HasA) {
5896             output.WriteRawTag(8);
5897             output.WriteInt32(A);
5898           }
5899           if (corecursive_ != null) {
5900             output.WriteRawTag(18);
5901             output.WriteMessage(Corecursive);
5902           }
5903           if (_unknownFields != null) {
5904             _unknownFields.WriteTo(output);
5905           }
5906         #endif
5907         }
5908 
5909         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5910         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5911         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5912         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5913           if (HasA) {
5914             output.WriteRawTag(8);
5915             output.WriteInt32(A);
5916           }
5917           if (corecursive_ != null) {
5918             output.WriteRawTag(18);
5919             output.WriteMessage(Corecursive);
5920           }
5921           if (_unknownFields != null) {
5922             _unknownFields.WriteTo(ref output);
5923           }
5924         }
5925         #endif
5926 
5927         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5928         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5929         public int CalculateSize() {
5930           int size = 0;
5931           if (HasA) {
5932             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
5933           }
5934           if (corecursive_ != null) {
5935             size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive);
5936           }
5937           if (_unknownFields != null) {
5938             size += _unknownFields.CalculateSize();
5939           }
5940           return size;
5941         }
5942 
5943         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5944         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NestedMessage other)5945         public void MergeFrom(NestedMessage other) {
5946           if (other == null) {
5947             return;
5948           }
5949           if (other.HasA) {
5950             A = other.A;
5951           }
5952           if (other.corecursive_ != null) {
5953             if (corecursive_ == null) {
5954               Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
5955             }
5956             Corecursive.MergeFrom(other.Corecursive);
5957           }
5958           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5959         }
5960 
5961         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5962         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5963         public void MergeFrom(pb::CodedInputStream input) {
5964         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5965           input.ReadRawMessage(this);
5966         #else
5967           uint tag;
5968           while ((tag = input.ReadTag()) != 0) {
5969             switch(tag) {
5970               default:
5971                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5972                 break;
5973               case 8: {
5974                 A = input.ReadInt32();
5975                 break;
5976               }
5977               case 18: {
5978                 if (corecursive_ == null) {
5979                   Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
5980                 }
5981                 input.ReadMessage(Corecursive);
5982                 break;
5983               }
5984             }
5985           }
5986         #endif
5987         }
5988 
5989         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5990         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5991         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5992         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5993           uint tag;
5994           while ((tag = input.ReadTag()) != 0) {
5995             switch(tag) {
5996               default:
5997                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5998                 break;
5999               case 8: {
6000                 A = input.ReadInt32();
6001                 break;
6002               }
6003               case 18: {
6004                 if (corecursive_ == null) {
6005                   Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
6006                 }
6007                 input.ReadMessage(Corecursive);
6008                 break;
6009               }
6010             }
6011           }
6012         }
6013         #endif
6014 
6015       }
6016 
6017       /// <summary>
6018       /// groups
6019       /// </summary>
6020       public sealed partial class Data : pb::IMessage<Data>
6021       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6022           , pb::IBufferMessage
6023       #endif
6024       {
6025         private static readonly pb::MessageParser<Data> _parser = new pb::MessageParser<Data>(() => new Data());
6026         private pb::UnknownFieldSet _unknownFields;
6027         private int _hasBits0;
6028         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6029         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6030         public static pb::MessageParser<Data> Parser { get { return _parser; } }
6031 
6032         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6033         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6034         public static pbr::MessageDescriptor Descriptor {
6035           get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[20]; }
6036         }
6037 
6038         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6039         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6040         pbr::MessageDescriptor pb::IMessage.Descriptor {
6041           get { return Descriptor; }
6042         }
6043 
6044         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6045         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Data()6046         public Data() {
6047           OnConstruction();
6048         }
6049 
OnConstruction()6050         partial void OnConstruction();
6051 
6052         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6053         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Data(Data other)6054         public Data(Data other) : this() {
6055           _hasBits0 = other._hasBits0;
6056           groupInt32_ = other.groupInt32_;
6057           groupUint32_ = other.groupUint32_;
6058           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6059         }
6060 
6061         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6062         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6063         public Data Clone() {
6064           return new Data(this);
6065         }
6066 
6067         /// <summary>Field number for the "group_int32" field.</summary>
6068         public const int GroupInt32FieldNumber = 202;
6069         private readonly static int GroupInt32DefaultValue = 0;
6070 
6071         private int groupInt32_;
6072         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6073         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6074         public int GroupInt32 {
6075           get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } }
6076           set {
6077             _hasBits0 |= 1;
6078             groupInt32_ = value;
6079           }
6080         }
6081         /// <summary>Gets whether the "group_int32" field is set</summary>
6082         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6083         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6084         public bool HasGroupInt32 {
6085           get { return (_hasBits0 & 1) != 0; }
6086         }
6087         /// <summary>Clears the value of the "group_int32" field</summary>
6088         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6089         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupInt32()6090         public void ClearGroupInt32() {
6091           _hasBits0 &= ~1;
6092         }
6093 
6094         /// <summary>Field number for the "group_uint32" field.</summary>
6095         public const int GroupUint32FieldNumber = 203;
6096         private readonly static uint GroupUint32DefaultValue = 0;
6097 
6098         private uint groupUint32_;
6099         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6100         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6101         public uint GroupUint32 {
6102           get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } }
6103           set {
6104             _hasBits0 |= 2;
6105             groupUint32_ = value;
6106           }
6107         }
6108         /// <summary>Gets whether the "group_uint32" field is set</summary>
6109         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6110         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6111         public bool HasGroupUint32 {
6112           get { return (_hasBits0 & 2) != 0; }
6113         }
6114         /// <summary>Clears the value of the "group_uint32" field</summary>
6115         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6116         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGroupUint32()6117         public void ClearGroupUint32() {
6118           _hasBits0 &= ~2;
6119         }
6120 
6121         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6122         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6123         public override bool Equals(object other) {
6124           return Equals(other as Data);
6125         }
6126 
6127         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6128         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Data other)6129         public bool Equals(Data other) {
6130           if (ReferenceEquals(other, null)) {
6131             return false;
6132           }
6133           if (ReferenceEquals(other, this)) {
6134             return true;
6135           }
6136           if (GroupInt32 != other.GroupInt32) return false;
6137           if (GroupUint32 != other.GroupUint32) return false;
6138           return Equals(_unknownFields, other._unknownFields);
6139         }
6140 
6141         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6142         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6143         public override int GetHashCode() {
6144           int hash = 1;
6145           if (HasGroupInt32) hash ^= GroupInt32.GetHashCode();
6146           if (HasGroupUint32) hash ^= GroupUint32.GetHashCode();
6147           if (_unknownFields != null) {
6148             hash ^= _unknownFields.GetHashCode();
6149           }
6150           return hash;
6151         }
6152 
6153         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6154         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6155         public override string ToString() {
6156           return pb::JsonFormatter.ToDiagnosticString(this);
6157         }
6158 
6159         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6160         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6161         public void WriteTo(pb::CodedOutputStream output) {
6162         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6163           output.WriteRawMessage(this);
6164         #else
6165           if (HasGroupInt32) {
6166             output.WriteRawTag(208, 12);
6167             output.WriteInt32(GroupInt32);
6168           }
6169           if (HasGroupUint32) {
6170             output.WriteRawTag(216, 12);
6171             output.WriteUInt32(GroupUint32);
6172           }
6173           if (_unknownFields != null) {
6174             _unknownFields.WriteTo(output);
6175           }
6176         #endif
6177         }
6178 
6179         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6180         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6181         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6182         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6183           if (HasGroupInt32) {
6184             output.WriteRawTag(208, 12);
6185             output.WriteInt32(GroupInt32);
6186           }
6187           if (HasGroupUint32) {
6188             output.WriteRawTag(216, 12);
6189             output.WriteUInt32(GroupUint32);
6190           }
6191           if (_unknownFields != null) {
6192             _unknownFields.WriteTo(ref output);
6193           }
6194         }
6195         #endif
6196 
6197         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6198         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6199         public int CalculateSize() {
6200           int size = 0;
6201           if (HasGroupInt32) {
6202             size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32);
6203           }
6204           if (HasGroupUint32) {
6205             size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32);
6206           }
6207           if (_unknownFields != null) {
6208             size += _unknownFields.CalculateSize();
6209           }
6210           return size;
6211         }
6212 
6213         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6214         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Data other)6215         public void MergeFrom(Data other) {
6216           if (other == null) {
6217             return;
6218           }
6219           if (other.HasGroupInt32) {
6220             GroupInt32 = other.GroupInt32;
6221           }
6222           if (other.HasGroupUint32) {
6223             GroupUint32 = other.GroupUint32;
6224           }
6225           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6226         }
6227 
6228         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6229         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6230         public void MergeFrom(pb::CodedInputStream input) {
6231         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6232           input.ReadRawMessage(this);
6233         #else
6234           uint tag;
6235           while ((tag = input.ReadTag()) != 0) {
6236             switch(tag) {
6237               case 1612:
6238                 return;
6239               default:
6240                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6241                 break;
6242               case 1616: {
6243                 GroupInt32 = input.ReadInt32();
6244                 break;
6245               }
6246               case 1624: {
6247                 GroupUint32 = input.ReadUInt32();
6248                 break;
6249               }
6250             }
6251           }
6252         #endif
6253         }
6254 
6255         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6256         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6257         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6258         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6259           uint tag;
6260           while ((tag = input.ReadTag()) != 0) {
6261             switch(tag) {
6262               case 1612:
6263                 return;
6264               default:
6265                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6266                 break;
6267               case 1616: {
6268                 GroupInt32 = input.ReadInt32();
6269                 break;
6270               }
6271               case 1624: {
6272                 GroupUint32 = input.ReadUInt32();
6273                 break;
6274               }
6275             }
6276           }
6277         }
6278         #endif
6279 
6280       }
6281 
6282       /// <summary>
6283       /// message_set test case.
6284       /// </summary>
6285       public sealed partial class MessageSetCorrect : pb::IExtendableMessage<MessageSetCorrect>
6286       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6287           , pb::IBufferMessage
6288       #endif
6289       {
6290         private static readonly pb::MessageParser<MessageSetCorrect> _parser = new pb::MessageParser<MessageSetCorrect>(() => new MessageSetCorrect());
6291         private pb::UnknownFieldSet _unknownFields;
6292         private pb::ExtensionSet<MessageSetCorrect> _extensions;
6293         private pb::ExtensionSet<MessageSetCorrect> _Extensions { get { return _extensions; } }
6294         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6295         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6296         public static pb::MessageParser<MessageSetCorrect> Parser { get { return _parser; } }
6297 
6298         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6299         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6300         public static pbr::MessageDescriptor Descriptor {
6301           get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[21]; }
6302         }
6303 
6304         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6305         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6306         pbr::MessageDescriptor pb::IMessage.Descriptor {
6307           get { return Descriptor; }
6308         }
6309 
6310         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6311         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrect()6312         public MessageSetCorrect() {
6313           OnConstruction();
6314         }
6315 
OnConstruction()6316         partial void OnConstruction();
6317 
6318         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6319         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrect(MessageSetCorrect other)6320         public MessageSetCorrect(MessageSetCorrect other) : this() {
6321           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6322           _extensions = pb::ExtensionSet.Clone(other._extensions);
6323         }
6324 
6325         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6326         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6327         public MessageSetCorrect Clone() {
6328           return new MessageSetCorrect(this);
6329         }
6330 
6331         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6332         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6333         public override bool Equals(object other) {
6334           return Equals(other as MessageSetCorrect);
6335         }
6336 
6337         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6338         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrect other)6339         public bool Equals(MessageSetCorrect other) {
6340           if (ReferenceEquals(other, null)) {
6341             return false;
6342           }
6343           if (ReferenceEquals(other, this)) {
6344             return true;
6345           }
6346           if (!Equals(_extensions, other._extensions)) {
6347             return false;
6348           }
6349           return Equals(_unknownFields, other._unknownFields);
6350         }
6351 
6352         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6353         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6354         public override int GetHashCode() {
6355           int hash = 1;
6356           if (_extensions != null) {
6357             hash ^= _extensions.GetHashCode();
6358           }
6359           if (_unknownFields != null) {
6360             hash ^= _unknownFields.GetHashCode();
6361           }
6362           return hash;
6363         }
6364 
6365         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6366         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6367         public override string ToString() {
6368           return pb::JsonFormatter.ToDiagnosticString(this);
6369         }
6370 
6371         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6372         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6373         public void WriteTo(pb::CodedOutputStream output) {
6374         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6375           output.WriteRawMessage(this);
6376         #else
6377           if (_extensions != null) {
6378             _extensions.WriteTo(output);
6379           }
6380           if (_unknownFields != null) {
6381             _unknownFields.WriteTo(output);
6382           }
6383         #endif
6384         }
6385 
6386         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6387         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6388         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6389         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6390           if (_extensions != null) {
6391             _extensions.WriteTo(ref output);
6392           }
6393           if (_unknownFields != null) {
6394             _unknownFields.WriteTo(ref output);
6395           }
6396         }
6397         #endif
6398 
6399         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6400         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6401         public int CalculateSize() {
6402           int size = 0;
6403           if (_extensions != null) {
6404             size += _extensions.CalculateSize();
6405           }
6406           if (_unknownFields != null) {
6407             size += _unknownFields.CalculateSize();
6408           }
6409           return size;
6410         }
6411 
6412         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6413         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrect other)6414         public void MergeFrom(MessageSetCorrect other) {
6415           if (other == null) {
6416             return;
6417           }
6418           pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6419           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6420         }
6421 
6422         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6423         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6424         public void MergeFrom(pb::CodedInputStream input) {
6425         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6426           input.ReadRawMessage(this);
6427         #else
6428           uint tag;
6429           while ((tag = input.ReadTag()) != 0) {
6430             switch(tag) {
6431               default:
6432                 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6433                   _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6434                 }
6435                 break;
6436             }
6437           }
6438         #endif
6439         }
6440 
6441         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6442         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6443         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6444         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6445           uint tag;
6446           while ((tag = input.ReadTag()) != 0) {
6447             switch(tag) {
6448               default:
6449                 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
6450                   _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6451                 }
6452                 break;
6453             }
6454           }
6455         }
6456         #endif
6457 
GetExtension(pb::Extension<MessageSetCorrect, TValue> extension)6458         public TValue GetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
6459           return pb::ExtensionSet.Get(ref _extensions, extension);
6460         }
GetExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6461         public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
6462           return pb::ExtensionSet.Get(ref _extensions, extension);
6463         }
GetOrInitializeExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6464         public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
6465           return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
6466         }
SetExtension(pb::Extension<MessageSetCorrect, TValue> extension, TValue value)6467         public void SetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension, TValue value) {
6468           pb::ExtensionSet.Set(ref _extensions, extension, value);
6469         }
HasExtension(pb::Extension<MessageSetCorrect, TValue> extension)6470         public bool HasExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
6471           return pb::ExtensionSet.Has(ref _extensions, extension);
6472         }
ClearExtension(pb::Extension<MessageSetCorrect, TValue> extension)6473         public void ClearExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
6474           pb::ExtensionSet.Clear(ref _extensions, extension);
6475         }
ClearExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6476         public void ClearExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
6477           pb::ExtensionSet.Clear(ref _extensions, extension);
6478         }
6479 
6480       }
6481 
6482       public sealed partial class MessageSetCorrectExtension1 : pb::IMessage<MessageSetCorrectExtension1>
6483       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6484           , pb::IBufferMessage
6485       #endif
6486       {
6487         private static readonly pb::MessageParser<MessageSetCorrectExtension1> _parser = new pb::MessageParser<MessageSetCorrectExtension1>(() => new MessageSetCorrectExtension1());
6488         private pb::UnknownFieldSet _unknownFields;
6489         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6490         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6491         public static pb::MessageParser<MessageSetCorrectExtension1> Parser { get { return _parser; } }
6492 
6493         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6494         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6495         public static pbr::MessageDescriptor Descriptor {
6496           get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[22]; }
6497         }
6498 
6499         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6500         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6501         pbr::MessageDescriptor pb::IMessage.Descriptor {
6502           get { return Descriptor; }
6503         }
6504 
6505         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6506         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension1()6507         public MessageSetCorrectExtension1() {
6508           OnConstruction();
6509         }
6510 
OnConstruction()6511         partial void OnConstruction();
6512 
6513         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6514         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension1(MessageSetCorrectExtension1 other)6515         public MessageSetCorrectExtension1(MessageSetCorrectExtension1 other) : this() {
6516           str_ = other.str_;
6517           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6518         }
6519 
6520         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6521         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6522         public MessageSetCorrectExtension1 Clone() {
6523           return new MessageSetCorrectExtension1(this);
6524         }
6525 
6526         /// <summary>Field number for the "str" field.</summary>
6527         public const int StrFieldNumber = 25;
6528         private readonly static string StrDefaultValue = "";
6529 
6530         private string str_;
6531         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6532         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6533         public string Str {
6534           get { return str_ ?? StrDefaultValue; }
6535           set {
6536             str_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6537           }
6538         }
6539         /// <summary>Gets whether the "str" field is set</summary>
6540         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6541         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6542         public bool HasStr {
6543           get { return str_ != null; }
6544         }
6545         /// <summary>Clears the value of the "str" field</summary>
6546         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6547         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStr()6548         public void ClearStr() {
6549           str_ = null;
6550         }
6551 
6552         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6553         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6554         public override bool Equals(object other) {
6555           return Equals(other as MessageSetCorrectExtension1);
6556         }
6557 
6558         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6559         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrectExtension1 other)6560         public bool Equals(MessageSetCorrectExtension1 other) {
6561           if (ReferenceEquals(other, null)) {
6562             return false;
6563           }
6564           if (ReferenceEquals(other, this)) {
6565             return true;
6566           }
6567           if (Str != other.Str) return false;
6568           return Equals(_unknownFields, other._unknownFields);
6569         }
6570 
6571         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6572         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6573         public override int GetHashCode() {
6574           int hash = 1;
6575           if (HasStr) hash ^= Str.GetHashCode();
6576           if (_unknownFields != null) {
6577             hash ^= _unknownFields.GetHashCode();
6578           }
6579           return hash;
6580         }
6581 
6582         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6583         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6584         public override string ToString() {
6585           return pb::JsonFormatter.ToDiagnosticString(this);
6586         }
6587 
6588         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6589         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6590         public void WriteTo(pb::CodedOutputStream output) {
6591         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6592           output.WriteRawMessage(this);
6593         #else
6594           if (HasStr) {
6595             output.WriteRawTag(202, 1);
6596             output.WriteString(Str);
6597           }
6598           if (_unknownFields != null) {
6599             _unknownFields.WriteTo(output);
6600           }
6601         #endif
6602         }
6603 
6604         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6605         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6606         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6607         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6608           if (HasStr) {
6609             output.WriteRawTag(202, 1);
6610             output.WriteString(Str);
6611           }
6612           if (_unknownFields != null) {
6613             _unknownFields.WriteTo(ref output);
6614           }
6615         }
6616         #endif
6617 
6618         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6619         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6620         public int CalculateSize() {
6621           int size = 0;
6622           if (HasStr) {
6623             size += 2 + pb::CodedOutputStream.ComputeStringSize(Str);
6624           }
6625           if (_unknownFields != null) {
6626             size += _unknownFields.CalculateSize();
6627           }
6628           return size;
6629         }
6630 
6631         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6632         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrectExtension1 other)6633         public void MergeFrom(MessageSetCorrectExtension1 other) {
6634           if (other == null) {
6635             return;
6636           }
6637           if (other.HasStr) {
6638             Str = other.Str;
6639           }
6640           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6641         }
6642 
6643         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6644         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6645         public void MergeFrom(pb::CodedInputStream input) {
6646         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6647           input.ReadRawMessage(this);
6648         #else
6649           uint tag;
6650           while ((tag = input.ReadTag()) != 0) {
6651             switch(tag) {
6652               default:
6653                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6654                 break;
6655               case 202: {
6656                 Str = input.ReadString();
6657                 break;
6658               }
6659             }
6660           }
6661         #endif
6662         }
6663 
6664         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6665         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6666         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6667         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6668           uint tag;
6669           while ((tag = input.ReadTag()) != 0) {
6670             switch(tag) {
6671               default:
6672                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6673                 break;
6674               case 202: {
6675                 Str = input.ReadString();
6676                 break;
6677               }
6678             }
6679           }
6680         }
6681         #endif
6682 
6683         #region Extensions
6684         /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.</summary>
6685         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6686         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6687         public static partial class Extensions {
6688           public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1> MessageSetExtension =
6689             new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1>(1547769, pb::FieldCodec.ForMessage(12382154, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser));
6690         }
6691         #endregion
6692 
6693       }
6694 
6695       public sealed partial class MessageSetCorrectExtension2 : pb::IMessage<MessageSetCorrectExtension2>
6696       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6697           , pb::IBufferMessage
6698       #endif
6699       {
6700         private static readonly pb::MessageParser<MessageSetCorrectExtension2> _parser = new pb::MessageParser<MessageSetCorrectExtension2>(() => new MessageSetCorrectExtension2());
6701         private pb::UnknownFieldSet _unknownFields;
6702         private int _hasBits0;
6703         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6704         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6705         public static pb::MessageParser<MessageSetCorrectExtension2> Parser { get { return _parser; } }
6706 
6707         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6708         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6709         public static pbr::MessageDescriptor Descriptor {
6710           get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[23]; }
6711         }
6712 
6713         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6714         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6715         pbr::MessageDescriptor pb::IMessage.Descriptor {
6716           get { return Descriptor; }
6717         }
6718 
6719         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6720         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension2()6721         public MessageSetCorrectExtension2() {
6722           OnConstruction();
6723         }
6724 
OnConstruction()6725         partial void OnConstruction();
6726 
6727         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6728         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageSetCorrectExtension2(MessageSetCorrectExtension2 other)6729         public MessageSetCorrectExtension2(MessageSetCorrectExtension2 other) : this() {
6730           _hasBits0 = other._hasBits0;
6731           i_ = other.i_;
6732           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6733         }
6734 
6735         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6736         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6737         public MessageSetCorrectExtension2 Clone() {
6738           return new MessageSetCorrectExtension2(this);
6739         }
6740 
6741         /// <summary>Field number for the "i" field.</summary>
6742         public const int IFieldNumber = 9;
6743         private readonly static int IDefaultValue = 0;
6744 
6745         private int i_;
6746         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6747         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6748         public int I {
6749           get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
6750           set {
6751             _hasBits0 |= 1;
6752             i_ = value;
6753           }
6754         }
6755         /// <summary>Gets whether the "i" field is set</summary>
6756         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6757         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6758         public bool HasI {
6759           get { return (_hasBits0 & 1) != 0; }
6760         }
6761         /// <summary>Clears the value of the "i" field</summary>
6762         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6763         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearI()6764         public void ClearI() {
6765           _hasBits0 &= ~1;
6766         }
6767 
6768         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6769         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6770         public override bool Equals(object other) {
6771           return Equals(other as MessageSetCorrectExtension2);
6772         }
6773 
6774         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6775         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageSetCorrectExtension2 other)6776         public bool Equals(MessageSetCorrectExtension2 other) {
6777           if (ReferenceEquals(other, null)) {
6778             return false;
6779           }
6780           if (ReferenceEquals(other, this)) {
6781             return true;
6782           }
6783           if (I != other.I) return false;
6784           return Equals(_unknownFields, other._unknownFields);
6785         }
6786 
6787         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6788         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6789         public override int GetHashCode() {
6790           int hash = 1;
6791           if (HasI) hash ^= I.GetHashCode();
6792           if (_unknownFields != null) {
6793             hash ^= _unknownFields.GetHashCode();
6794           }
6795           return hash;
6796         }
6797 
6798         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6799         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6800         public override string ToString() {
6801           return pb::JsonFormatter.ToDiagnosticString(this);
6802         }
6803 
6804         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6805         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6806         public void WriteTo(pb::CodedOutputStream output) {
6807         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6808           output.WriteRawMessage(this);
6809         #else
6810           if (HasI) {
6811             output.WriteRawTag(72);
6812             output.WriteInt32(I);
6813           }
6814           if (_unknownFields != null) {
6815             _unknownFields.WriteTo(output);
6816           }
6817         #endif
6818         }
6819 
6820         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6821         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6822         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6823         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6824           if (HasI) {
6825             output.WriteRawTag(72);
6826             output.WriteInt32(I);
6827           }
6828           if (_unknownFields != null) {
6829             _unknownFields.WriteTo(ref output);
6830           }
6831         }
6832         #endif
6833 
6834         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6835         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6836         public int CalculateSize() {
6837           int size = 0;
6838           if (HasI) {
6839             size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
6840           }
6841           if (_unknownFields != null) {
6842             size += _unknownFields.CalculateSize();
6843           }
6844           return size;
6845         }
6846 
6847         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6848         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageSetCorrectExtension2 other)6849         public void MergeFrom(MessageSetCorrectExtension2 other) {
6850           if (other == null) {
6851             return;
6852           }
6853           if (other.HasI) {
6854             I = other.I;
6855           }
6856           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6857         }
6858 
6859         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6860         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)6861         public void MergeFrom(pb::CodedInputStream input) {
6862         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6863           input.ReadRawMessage(this);
6864         #else
6865           uint tag;
6866           while ((tag = input.ReadTag()) != 0) {
6867             switch(tag) {
6868               default:
6869                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6870                 break;
6871               case 72: {
6872                 I = input.ReadInt32();
6873                 break;
6874               }
6875             }
6876           }
6877         #endif
6878         }
6879 
6880         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6881         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6882         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6883         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6884           uint tag;
6885           while ((tag = input.ReadTag()) != 0) {
6886             switch(tag) {
6887               default:
6888                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6889                 break;
6890               case 72: {
6891                 I = input.ReadInt32();
6892                 break;
6893               }
6894             }
6895           }
6896         }
6897         #endif
6898 
6899         #region Extensions
6900         /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.</summary>
6901         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6902         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6903         public static partial class Extensions {
6904           public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2> MessageSetExtension =
6905             new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2>(4135312, pb::FieldCodec.ForMessage(33082498, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser));
6906         }
6907         #endregion
6908 
6909       }
6910 
6911     }
6912     #endregion
6913 
6914   }
6915 
6916   public sealed partial class ForeignMessageProto2 : pb::IMessage<ForeignMessageProto2>
6917   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6918       , pb::IBufferMessage
6919   #endif
6920   {
6921     private static readonly pb::MessageParser<ForeignMessageProto2> _parser = new pb::MessageParser<ForeignMessageProto2>(() => new ForeignMessageProto2());
6922     private pb::UnknownFieldSet _unknownFields;
6923     private int _hasBits0;
6924     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6925     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6926     public static pb::MessageParser<ForeignMessageProto2> Parser { get { return _parser; } }
6927 
6928     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6929     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6930     public static pbr::MessageDescriptor Descriptor {
6931       get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[1]; }
6932     }
6933 
6934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6935     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6936     pbr::MessageDescriptor pb::IMessage.Descriptor {
6937       get { return Descriptor; }
6938     }
6939 
6940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6941     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ForeignMessageProto2()6942     public ForeignMessageProto2() {
6943       OnConstruction();
6944     }
6945 
OnConstruction()6946     partial void OnConstruction();
6947 
6948     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6949     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ForeignMessageProto2(ForeignMessageProto2 other)6950     public ForeignMessageProto2(ForeignMessageProto2 other) : this() {
6951       _hasBits0 = other._hasBits0;
6952       c_ = other.c_;
6953       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6954     }
6955 
6956     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6957     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6958     public ForeignMessageProto2 Clone() {
6959       return new ForeignMessageProto2(this);
6960     }
6961 
6962     /// <summary>Field number for the "c" field.</summary>
6963     public const int CFieldNumber = 1;
6964     private readonly static int CDefaultValue = 0;
6965 
6966     private int c_;
6967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6968     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6969     public int C {
6970       get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } }
6971       set {
6972         _hasBits0 |= 1;
6973         c_ = value;
6974       }
6975     }
6976     /// <summary>Gets whether the "c" field is set</summary>
6977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6979     public bool HasC {
6980       get { return (_hasBits0 & 1) != 0; }
6981     }
6982     /// <summary>Clears the value of the "c" field</summary>
6983     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6984     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearC()6985     public void ClearC() {
6986       _hasBits0 &= ~1;
6987     }
6988 
6989     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6990     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6991     public override bool Equals(object other) {
6992       return Equals(other as ForeignMessageProto2);
6993     }
6994 
6995     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6996     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ForeignMessageProto2 other)6997     public bool Equals(ForeignMessageProto2 other) {
6998       if (ReferenceEquals(other, null)) {
6999         return false;
7000       }
7001       if (ReferenceEquals(other, this)) {
7002         return true;
7003       }
7004       if (C != other.C) return false;
7005       return Equals(_unknownFields, other._unknownFields);
7006     }
7007 
7008     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7009     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7010     public override int GetHashCode() {
7011       int hash = 1;
7012       if (HasC) hash ^= C.GetHashCode();
7013       if (_unknownFields != null) {
7014         hash ^= _unknownFields.GetHashCode();
7015       }
7016       return hash;
7017     }
7018 
7019     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7020     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7021     public override string ToString() {
7022       return pb::JsonFormatter.ToDiagnosticString(this);
7023     }
7024 
7025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7026     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7027     public void WriteTo(pb::CodedOutputStream output) {
7028     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7029       output.WriteRawMessage(this);
7030     #else
7031       if (HasC) {
7032         output.WriteRawTag(8);
7033         output.WriteInt32(C);
7034       }
7035       if (_unknownFields != null) {
7036         _unknownFields.WriteTo(output);
7037       }
7038     #endif
7039     }
7040 
7041     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7042     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7043     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7044     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7045       if (HasC) {
7046         output.WriteRawTag(8);
7047         output.WriteInt32(C);
7048       }
7049       if (_unknownFields != null) {
7050         _unknownFields.WriteTo(ref output);
7051       }
7052     }
7053     #endif
7054 
7055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7056     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7057     public int CalculateSize() {
7058       int size = 0;
7059       if (HasC) {
7060         size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
7061       }
7062       if (_unknownFields != null) {
7063         size += _unknownFields.CalculateSize();
7064       }
7065       return size;
7066     }
7067 
7068     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7069     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ForeignMessageProto2 other)7070     public void MergeFrom(ForeignMessageProto2 other) {
7071       if (other == null) {
7072         return;
7073       }
7074       if (other.HasC) {
7075         C = other.C;
7076       }
7077       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7078     }
7079 
7080     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7081     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7082     public void MergeFrom(pb::CodedInputStream input) {
7083     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7084       input.ReadRawMessage(this);
7085     #else
7086       uint tag;
7087       while ((tag = input.ReadTag()) != 0) {
7088         switch(tag) {
7089           default:
7090             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7091             break;
7092           case 8: {
7093             C = input.ReadInt32();
7094             break;
7095           }
7096         }
7097       }
7098     #endif
7099     }
7100 
7101     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7103     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7104     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7105       uint tag;
7106       while ((tag = input.ReadTag()) != 0) {
7107         switch(tag) {
7108           default:
7109             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7110             break;
7111           case 8: {
7112             C = input.ReadInt32();
7113             break;
7114           }
7115         }
7116       }
7117     }
7118     #endif
7119 
7120   }
7121 
7122   public sealed partial class UnknownToTestAllTypes : pb::IMessage<UnknownToTestAllTypes>
7123   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7124       , pb::IBufferMessage
7125   #endif
7126   {
7127     private static readonly pb::MessageParser<UnknownToTestAllTypes> _parser = new pb::MessageParser<UnknownToTestAllTypes>(() => new UnknownToTestAllTypes());
7128     private pb::UnknownFieldSet _unknownFields;
7129     private int _hasBits0;
7130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7131     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7132     public static pb::MessageParser<UnknownToTestAllTypes> Parser { get { return _parser; } }
7133 
7134     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7135     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7136     public static pbr::MessageDescriptor Descriptor {
7137       get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[2]; }
7138     }
7139 
7140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7141     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7142     pbr::MessageDescriptor pb::IMessage.Descriptor {
7143       get { return Descriptor; }
7144     }
7145 
7146     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7147     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
UnknownToTestAllTypes()7148     public UnknownToTestAllTypes() {
7149       OnConstruction();
7150     }
7151 
OnConstruction()7152     partial void OnConstruction();
7153 
7154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7155     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
UnknownToTestAllTypes(UnknownToTestAllTypes other)7156     public UnknownToTestAllTypes(UnknownToTestAllTypes other) : this() {
7157       _hasBits0 = other._hasBits0;
7158       optionalInt32_ = other.optionalInt32_;
7159       optionalString_ = other.optionalString_;
7160       nestedMessage_ = other.nestedMessage_ != null ? other.nestedMessage_.Clone() : null;
7161       optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
7162       optionalBool_ = other.optionalBool_;
7163       repeatedInt32_ = other.repeatedInt32_.Clone();
7164       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7165     }
7166 
7167     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7168     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7169     public UnknownToTestAllTypes Clone() {
7170       return new UnknownToTestAllTypes(this);
7171     }
7172 
7173     /// <summary>Field number for the "optional_int32" field.</summary>
7174     public const int OptionalInt32FieldNumber = 1001;
7175     private readonly static int OptionalInt32DefaultValue = 0;
7176 
7177     private int optionalInt32_;
7178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7180     public int OptionalInt32 {
7181       get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
7182       set {
7183         _hasBits0 |= 1;
7184         optionalInt32_ = value;
7185       }
7186     }
7187     /// <summary>Gets whether the "optional_int32" field is set</summary>
7188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7189     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7190     public bool HasOptionalInt32 {
7191       get { return (_hasBits0 & 1) != 0; }
7192     }
7193     /// <summary>Clears the value of the "optional_int32" field</summary>
7194     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7195     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalInt32()7196     public void ClearOptionalInt32() {
7197       _hasBits0 &= ~1;
7198     }
7199 
7200     /// <summary>Field number for the "optional_string" field.</summary>
7201     public const int OptionalStringFieldNumber = 1002;
7202     private readonly static string OptionalStringDefaultValue = "";
7203 
7204     private string optionalString_;
7205     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7206     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7207     public string OptionalString {
7208       get { return optionalString_ ?? OptionalStringDefaultValue; }
7209       set {
7210         optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7211       }
7212     }
7213     /// <summary>Gets whether the "optional_string" field is set</summary>
7214     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7215     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7216     public bool HasOptionalString {
7217       get { return optionalString_ != null; }
7218     }
7219     /// <summary>Clears the value of the "optional_string" field</summary>
7220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7221     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalString()7222     public void ClearOptionalString() {
7223       optionalString_ = null;
7224     }
7225 
7226     /// <summary>Field number for the "nested_message" field.</summary>
7227     public const int NestedMessageFieldNumber = 1003;
7228     private global::ProtobufTestMessages.Proto2.ForeignMessageProto2 nestedMessage_;
7229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7230     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7231     public global::ProtobufTestMessages.Proto2.ForeignMessageProto2 NestedMessage {
7232       get { return nestedMessage_; }
7233       set {
7234         nestedMessage_ = value;
7235       }
7236     }
7237 
7238     /// <summary>Field number for the "optionalgroup" field.</summary>
7239     public const int OptionalGroupFieldNumber = 1004;
7240     private global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup optionalGroup_;
7241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7242     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7243     public global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup OptionalGroup {
7244       get { return optionalGroup_; }
7245       set {
7246         optionalGroup_ = value;
7247       }
7248     }
7249     /// <summary>Gets whether the optionalgroup field is set</summary>
7250     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7251     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7252     public bool HasOptionalGroup {
7253       get { return optionalGroup_ != null; }
7254     }
7255     /// <summary>Clears the value of the optionalgroup field</summary>
7256     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7257     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalGroup()7258     public void ClearOptionalGroup() {
7259       optionalGroup_ = null;
7260     }
7261 
7262     /// <summary>Field number for the "optional_bool" field.</summary>
7263     public const int OptionalBoolFieldNumber = 1006;
7264     private readonly static bool OptionalBoolDefaultValue = false;
7265 
7266     private bool optionalBool_;
7267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7268     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7269     public bool OptionalBool {
7270       get { if ((_hasBits0 & 2) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
7271       set {
7272         _hasBits0 |= 2;
7273         optionalBool_ = value;
7274       }
7275     }
7276     /// <summary>Gets whether the "optional_bool" field is set</summary>
7277     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7278     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7279     public bool HasOptionalBool {
7280       get { return (_hasBits0 & 2) != 0; }
7281     }
7282     /// <summary>Clears the value of the "optional_bool" field</summary>
7283     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7284     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptionalBool()7285     public void ClearOptionalBool() {
7286       _hasBits0 &= ~2;
7287     }
7288 
7289     /// <summary>Field number for the "repeated_int32" field.</summary>
7290     public const int RepeatedInt32FieldNumber = 1011;
7291     private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
7292         = pb::FieldCodec.ForInt32(8088);
7293     private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
7294     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7295     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7296     public pbc::RepeatedField<int> RepeatedInt32 {
7297       get { return repeatedInt32_; }
7298     }
7299 
7300     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7301     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7302     public override bool Equals(object other) {
7303       return Equals(other as UnknownToTestAllTypes);
7304     }
7305 
7306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7307     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(UnknownToTestAllTypes other)7308     public bool Equals(UnknownToTestAllTypes other) {
7309       if (ReferenceEquals(other, null)) {
7310         return false;
7311       }
7312       if (ReferenceEquals(other, this)) {
7313         return true;
7314       }
7315       if (OptionalInt32 != other.OptionalInt32) return false;
7316       if (OptionalString != other.OptionalString) return false;
7317       if (!object.Equals(NestedMessage, other.NestedMessage)) return false;
7318       if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
7319       if (OptionalBool != other.OptionalBool) return false;
7320       if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
7321       return Equals(_unknownFields, other._unknownFields);
7322     }
7323 
7324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7325     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7326     public override int GetHashCode() {
7327       int hash = 1;
7328       if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
7329       if (HasOptionalString) hash ^= OptionalString.GetHashCode();
7330       if (nestedMessage_ != null) hash ^= NestedMessage.GetHashCode();
7331       if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
7332       if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
7333       hash ^= repeatedInt32_.GetHashCode();
7334       if (_unknownFields != null) {
7335         hash ^= _unknownFields.GetHashCode();
7336       }
7337       return hash;
7338     }
7339 
7340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7341     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7342     public override string ToString() {
7343       return pb::JsonFormatter.ToDiagnosticString(this);
7344     }
7345 
7346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7348     public void WriteTo(pb::CodedOutputStream output) {
7349     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7350       output.WriteRawMessage(this);
7351     #else
7352       if (HasOptionalInt32) {
7353         output.WriteRawTag(200, 62);
7354         output.WriteInt32(OptionalInt32);
7355       }
7356       if (HasOptionalString) {
7357         output.WriteRawTag(210, 62);
7358         output.WriteString(OptionalString);
7359       }
7360       if (nestedMessage_ != null) {
7361         output.WriteRawTag(218, 62);
7362         output.WriteMessage(NestedMessage);
7363       }
7364       if (HasOptionalGroup) {
7365         output.WriteRawTag(227, 62);
7366         output.WriteGroup(OptionalGroup);
7367         output.WriteRawTag(228, 62);
7368       }
7369       if (HasOptionalBool) {
7370         output.WriteRawTag(240, 62);
7371         output.WriteBool(OptionalBool);
7372       }
7373       repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
7374       if (_unknownFields != null) {
7375         _unknownFields.WriteTo(output);
7376       }
7377     #endif
7378     }
7379 
7380     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7381     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7382     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7383     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7384       if (HasOptionalInt32) {
7385         output.WriteRawTag(200, 62);
7386         output.WriteInt32(OptionalInt32);
7387       }
7388       if (HasOptionalString) {
7389         output.WriteRawTag(210, 62);
7390         output.WriteString(OptionalString);
7391       }
7392       if (nestedMessage_ != null) {
7393         output.WriteRawTag(218, 62);
7394         output.WriteMessage(NestedMessage);
7395       }
7396       if (HasOptionalGroup) {
7397         output.WriteRawTag(227, 62);
7398         output.WriteGroup(OptionalGroup);
7399         output.WriteRawTag(228, 62);
7400       }
7401       if (HasOptionalBool) {
7402         output.WriteRawTag(240, 62);
7403         output.WriteBool(OptionalBool);
7404       }
7405       repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
7406       if (_unknownFields != null) {
7407         _unknownFields.WriteTo(ref output);
7408       }
7409     }
7410     #endif
7411 
7412     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7413     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7414     public int CalculateSize() {
7415       int size = 0;
7416       if (HasOptionalInt32) {
7417         size += 2 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
7418       }
7419       if (HasOptionalString) {
7420         size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
7421       }
7422       if (nestedMessage_ != null) {
7423         size += 2 + pb::CodedOutputStream.ComputeMessageSize(NestedMessage);
7424       }
7425       if (HasOptionalGroup) {
7426         size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
7427       }
7428       if (HasOptionalBool) {
7429         size += 2 + 1;
7430       }
7431       size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
7432       if (_unknownFields != null) {
7433         size += _unknownFields.CalculateSize();
7434       }
7435       return size;
7436     }
7437 
7438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7439     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(UnknownToTestAllTypes other)7440     public void MergeFrom(UnknownToTestAllTypes other) {
7441       if (other == null) {
7442         return;
7443       }
7444       if (other.HasOptionalInt32) {
7445         OptionalInt32 = other.OptionalInt32;
7446       }
7447       if (other.HasOptionalString) {
7448         OptionalString = other.OptionalString;
7449       }
7450       if (other.nestedMessage_ != null) {
7451         if (nestedMessage_ == null) {
7452           NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
7453         }
7454         NestedMessage.MergeFrom(other.NestedMessage);
7455       }
7456       if (other.HasOptionalGroup) {
7457         if (!HasOptionalGroup) {
7458           OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
7459         }
7460         OptionalGroup.MergeFrom(other.OptionalGroup);
7461       }
7462       if (other.HasOptionalBool) {
7463         OptionalBool = other.OptionalBool;
7464       }
7465       repeatedInt32_.Add(other.repeatedInt32_);
7466       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7467     }
7468 
7469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7471     public void MergeFrom(pb::CodedInputStream input) {
7472     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7473       input.ReadRawMessage(this);
7474     #else
7475       uint tag;
7476       while ((tag = input.ReadTag()) != 0) {
7477         switch(tag) {
7478           default:
7479             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7480             break;
7481           case 8008: {
7482             OptionalInt32 = input.ReadInt32();
7483             break;
7484           }
7485           case 8018: {
7486             OptionalString = input.ReadString();
7487             break;
7488           }
7489           case 8026: {
7490             if (nestedMessage_ == null) {
7491               NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
7492             }
7493             input.ReadMessage(NestedMessage);
7494             break;
7495           }
7496           case 8035: {
7497             if (!HasOptionalGroup) {
7498               OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
7499             }
7500             input.ReadGroup(OptionalGroup);
7501             break;
7502           }
7503           case 8048: {
7504             OptionalBool = input.ReadBool();
7505             break;
7506           }
7507           case 8090:
7508           case 8088: {
7509             repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
7510             break;
7511           }
7512         }
7513       }
7514     #endif
7515     }
7516 
7517     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7519     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7520     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7521       uint tag;
7522       while ((tag = input.ReadTag()) != 0) {
7523         switch(tag) {
7524           default:
7525             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7526             break;
7527           case 8008: {
7528             OptionalInt32 = input.ReadInt32();
7529             break;
7530           }
7531           case 8018: {
7532             OptionalString = input.ReadString();
7533             break;
7534           }
7535           case 8026: {
7536             if (nestedMessage_ == null) {
7537               NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
7538             }
7539             input.ReadMessage(NestedMessage);
7540             break;
7541           }
7542           case 8035: {
7543             if (!HasOptionalGroup) {
7544               OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
7545             }
7546             input.ReadGroup(OptionalGroup);
7547             break;
7548           }
7549           case 8048: {
7550             OptionalBool = input.ReadBool();
7551             break;
7552           }
7553           case 8090:
7554           case 8088: {
7555             repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
7556             break;
7557           }
7558         }
7559       }
7560     }
7561     #endif
7562 
7563     #region Nested types
7564     /// <summary>Container for nested types declared in the UnknownToTestAllTypes message type.</summary>
7565     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7566     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7567     public static partial class Types {
7568       public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
7569       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7570           , pb::IBufferMessage
7571       #endif
7572       {
7573         private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
7574         private pb::UnknownFieldSet _unknownFields;
7575         private int _hasBits0;
7576         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7577         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7578         public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
7579 
7580         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7581         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7582         public static pbr::MessageDescriptor Descriptor {
7583           get { return global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Descriptor.NestedTypes[0]; }
7584         }
7585 
7586         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7587         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7588         pbr::MessageDescriptor pb::IMessage.Descriptor {
7589           get { return Descriptor; }
7590         }
7591 
7592         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7593         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup()7594         public OptionalGroup() {
7595           OnConstruction();
7596         }
7597 
OnConstruction()7598         partial void OnConstruction();
7599 
7600         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7601         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OptionalGroup(OptionalGroup other)7602         public OptionalGroup(OptionalGroup other) : this() {
7603           _hasBits0 = other._hasBits0;
7604           a_ = other.a_;
7605           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7606         }
7607 
7608         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7609         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7610         public OptionalGroup Clone() {
7611           return new OptionalGroup(this);
7612         }
7613 
7614         /// <summary>Field number for the "a" field.</summary>
7615         public const int AFieldNumber = 1;
7616         private readonly static int ADefaultValue = 0;
7617 
7618         private int a_;
7619         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7620         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7621         public int A {
7622           get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
7623           set {
7624             _hasBits0 |= 1;
7625             a_ = value;
7626           }
7627         }
7628         /// <summary>Gets whether the "a" field is set</summary>
7629         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7630         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7631         public bool HasA {
7632           get { return (_hasBits0 & 1) != 0; }
7633         }
7634         /// <summary>Clears the value of the "a" field</summary>
7635         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7636         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearA()7637         public void ClearA() {
7638           _hasBits0 &= ~1;
7639         }
7640 
7641         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7642         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7643         public override bool Equals(object other) {
7644           return Equals(other as OptionalGroup);
7645         }
7646 
7647         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7648         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OptionalGroup other)7649         public bool Equals(OptionalGroup other) {
7650           if (ReferenceEquals(other, null)) {
7651             return false;
7652           }
7653           if (ReferenceEquals(other, this)) {
7654             return true;
7655           }
7656           if (A != other.A) return false;
7657           return Equals(_unknownFields, other._unknownFields);
7658         }
7659 
7660         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7661         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7662         public override int GetHashCode() {
7663           int hash = 1;
7664           if (HasA) hash ^= A.GetHashCode();
7665           if (_unknownFields != null) {
7666             hash ^= _unknownFields.GetHashCode();
7667           }
7668           return hash;
7669         }
7670 
7671         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7672         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7673         public override string ToString() {
7674           return pb::JsonFormatter.ToDiagnosticString(this);
7675         }
7676 
7677         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7678         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7679         public void WriteTo(pb::CodedOutputStream output) {
7680         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7681           output.WriteRawMessage(this);
7682         #else
7683           if (HasA) {
7684             output.WriteRawTag(8);
7685             output.WriteInt32(A);
7686           }
7687           if (_unknownFields != null) {
7688             _unknownFields.WriteTo(output);
7689           }
7690         #endif
7691         }
7692 
7693         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7694         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7695         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7696         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7697           if (HasA) {
7698             output.WriteRawTag(8);
7699             output.WriteInt32(A);
7700           }
7701           if (_unknownFields != null) {
7702             _unknownFields.WriteTo(ref output);
7703           }
7704         }
7705         #endif
7706 
7707         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7708         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7709         public int CalculateSize() {
7710           int size = 0;
7711           if (HasA) {
7712             size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
7713           }
7714           if (_unknownFields != null) {
7715             size += _unknownFields.CalculateSize();
7716           }
7717           return size;
7718         }
7719 
7720         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7721         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OptionalGroup other)7722         public void MergeFrom(OptionalGroup other) {
7723           if (other == null) {
7724             return;
7725           }
7726           if (other.HasA) {
7727             A = other.A;
7728           }
7729           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7730         }
7731 
7732         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7733         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7734         public void MergeFrom(pb::CodedInputStream input) {
7735         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7736           input.ReadRawMessage(this);
7737         #else
7738           uint tag;
7739           while ((tag = input.ReadTag()) != 0) {
7740             switch(tag) {
7741               case 8036:
7742                 return;
7743               default:
7744                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7745                 break;
7746               case 8: {
7747                 A = input.ReadInt32();
7748                 break;
7749               }
7750             }
7751           }
7752         #endif
7753         }
7754 
7755         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7756         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7757         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7758         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7759           uint tag;
7760           while ((tag = input.ReadTag()) != 0) {
7761             switch(tag) {
7762               case 8036:
7763                 return;
7764               default:
7765                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7766                 break;
7767               case 8: {
7768                 A = input.ReadInt32();
7769                 break;
7770               }
7771             }
7772           }
7773         }
7774         #endif
7775 
7776       }
7777 
7778     }
7779     #endregion
7780 
7781   }
7782 
7783   public sealed partial class NullHypothesisProto2 : pb::IMessage<NullHypothesisProto2>
7784   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7785       , pb::IBufferMessage
7786   #endif
7787   {
7788     private static readonly pb::MessageParser<NullHypothesisProto2> _parser = new pb::MessageParser<NullHypothesisProto2>(() => new NullHypothesisProto2());
7789     private pb::UnknownFieldSet _unknownFields;
7790     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7791     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7792     public static pb::MessageParser<NullHypothesisProto2> Parser { get { return _parser; } }
7793 
7794     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7795     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7796     public static pbr::MessageDescriptor Descriptor {
7797       get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[3]; }
7798     }
7799 
7800     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7801     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7802     pbr::MessageDescriptor pb::IMessage.Descriptor {
7803       get { return Descriptor; }
7804     }
7805 
7806     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7807     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NullHypothesisProto2()7808     public NullHypothesisProto2() {
7809       OnConstruction();
7810     }
7811 
OnConstruction()7812     partial void OnConstruction();
7813 
7814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7815     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NullHypothesisProto2(NullHypothesisProto2 other)7816     public NullHypothesisProto2(NullHypothesisProto2 other) : this() {
7817       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7818     }
7819 
7820     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7821     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7822     public NullHypothesisProto2 Clone() {
7823       return new NullHypothesisProto2(this);
7824     }
7825 
7826     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7827     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7828     public override bool Equals(object other) {
7829       return Equals(other as NullHypothesisProto2);
7830     }
7831 
7832     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7833     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NullHypothesisProto2 other)7834     public bool Equals(NullHypothesisProto2 other) {
7835       if (ReferenceEquals(other, null)) {
7836         return false;
7837       }
7838       if (ReferenceEquals(other, this)) {
7839         return true;
7840       }
7841       return Equals(_unknownFields, other._unknownFields);
7842     }
7843 
7844     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7845     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7846     public override int GetHashCode() {
7847       int hash = 1;
7848       if (_unknownFields != null) {
7849         hash ^= _unknownFields.GetHashCode();
7850       }
7851       return hash;
7852     }
7853 
7854     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7855     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7856     public override string ToString() {
7857       return pb::JsonFormatter.ToDiagnosticString(this);
7858     }
7859 
7860     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7861     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7862     public void WriteTo(pb::CodedOutputStream output) {
7863     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7864       output.WriteRawMessage(this);
7865     #else
7866       if (_unknownFields != null) {
7867         _unknownFields.WriteTo(output);
7868       }
7869     #endif
7870     }
7871 
7872     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7873     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7874     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7875     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7876       if (_unknownFields != null) {
7877         _unknownFields.WriteTo(ref output);
7878       }
7879     }
7880     #endif
7881 
7882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7884     public int CalculateSize() {
7885       int size = 0;
7886       if (_unknownFields != null) {
7887         size += _unknownFields.CalculateSize();
7888       }
7889       return size;
7890     }
7891 
7892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7893     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NullHypothesisProto2 other)7894     public void MergeFrom(NullHypothesisProto2 other) {
7895       if (other == null) {
7896         return;
7897       }
7898       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7899     }
7900 
7901     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7902     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7903     public void MergeFrom(pb::CodedInputStream input) {
7904     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7905       input.ReadRawMessage(this);
7906     #else
7907       uint tag;
7908       while ((tag = input.ReadTag()) != 0) {
7909         switch(tag) {
7910           default:
7911             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7912             break;
7913         }
7914       }
7915     #endif
7916     }
7917 
7918     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7919     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7920     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7921     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7922       uint tag;
7923       while ((tag = input.ReadTag()) != 0) {
7924         switch(tag) {
7925           default:
7926             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7927             break;
7928         }
7929       }
7930     }
7931     #endif
7932 
7933   }
7934 
7935   public sealed partial class EnumOnlyProto2 : pb::IMessage<EnumOnlyProto2>
7936   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7937       , pb::IBufferMessage
7938   #endif
7939   {
7940     private static readonly pb::MessageParser<EnumOnlyProto2> _parser = new pb::MessageParser<EnumOnlyProto2>(() => new EnumOnlyProto2());
7941     private pb::UnknownFieldSet _unknownFields;
7942     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7943     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7944     public static pb::MessageParser<EnumOnlyProto2> Parser { get { return _parser; } }
7945 
7946     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7947     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7948     public static pbr::MessageDescriptor Descriptor {
7949       get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[4]; }
7950     }
7951 
7952     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7953     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7954     pbr::MessageDescriptor pb::IMessage.Descriptor {
7955       get { return Descriptor; }
7956     }
7957 
7958     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7959     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumOnlyProto2()7960     public EnumOnlyProto2() {
7961       OnConstruction();
7962     }
7963 
OnConstruction()7964     partial void OnConstruction();
7965 
7966     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7967     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumOnlyProto2(EnumOnlyProto2 other)7968     public EnumOnlyProto2(EnumOnlyProto2 other) : this() {
7969       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7970     }
7971 
7972     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7973     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7974     public EnumOnlyProto2 Clone() {
7975       return new EnumOnlyProto2(this);
7976     }
7977 
7978     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7979     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7980     public override bool Equals(object other) {
7981       return Equals(other as EnumOnlyProto2);
7982     }
7983 
7984     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7985     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EnumOnlyProto2 other)7986     public bool Equals(EnumOnlyProto2 other) {
7987       if (ReferenceEquals(other, null)) {
7988         return false;
7989       }
7990       if (ReferenceEquals(other, this)) {
7991         return true;
7992       }
7993       return Equals(_unknownFields, other._unknownFields);
7994     }
7995 
7996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7997     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7998     public override int GetHashCode() {
7999       int hash = 1;
8000       if (_unknownFields != null) {
8001         hash ^= _unknownFields.GetHashCode();
8002       }
8003       return hash;
8004     }
8005 
8006     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8007     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8008     public override string ToString() {
8009       return pb::JsonFormatter.ToDiagnosticString(this);
8010     }
8011 
8012     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8013     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8014     public void WriteTo(pb::CodedOutputStream output) {
8015     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8016       output.WriteRawMessage(this);
8017     #else
8018       if (_unknownFields != null) {
8019         _unknownFields.WriteTo(output);
8020       }
8021     #endif
8022     }
8023 
8024     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8026     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8027     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8028       if (_unknownFields != null) {
8029         _unknownFields.WriteTo(ref output);
8030       }
8031     }
8032     #endif
8033 
8034     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8035     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()8036     public int CalculateSize() {
8037       int size = 0;
8038       if (_unknownFields != null) {
8039         size += _unknownFields.CalculateSize();
8040       }
8041       return size;
8042     }
8043 
8044     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8045     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EnumOnlyProto2 other)8046     public void MergeFrom(EnumOnlyProto2 other) {
8047       if (other == null) {
8048         return;
8049       }
8050       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8051     }
8052 
8053     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8054     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)8055     public void MergeFrom(pb::CodedInputStream input) {
8056     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8057       input.ReadRawMessage(this);
8058     #else
8059       uint tag;
8060       while ((tag = input.ReadTag()) != 0) {
8061         switch(tag) {
8062           default:
8063             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8064             break;
8065         }
8066       }
8067     #endif
8068     }
8069 
8070     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8071     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8072     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8073     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8074       uint tag;
8075       while ((tag = input.ReadTag()) != 0) {
8076         switch(tag) {
8077           default:
8078             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8079             break;
8080         }
8081       }
8082     }
8083     #endif
8084 
8085     #region Nested types
8086     /// <summary>Container for nested types declared in the EnumOnlyProto2 message type.</summary>
8087     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8088     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8089     public static partial class Types {
8090       public enum Bool {
8091         [pbr::OriginalName("kFalse")] KFalse = 0,
8092         [pbr::OriginalName("kTrue")] KTrue = 1,
8093       }
8094 
8095     }
8096     #endregion
8097 
8098   }
8099 
8100   public sealed partial class OneStringProto2 : pb::IMessage<OneStringProto2>
8101   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8102       , pb::IBufferMessage
8103   #endif
8104   {
8105     private static readonly pb::MessageParser<OneStringProto2> _parser = new pb::MessageParser<OneStringProto2>(() => new OneStringProto2());
8106     private pb::UnknownFieldSet _unknownFields;
8107     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8108     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8109     public static pb::MessageParser<OneStringProto2> Parser { get { return _parser; } }
8110 
8111     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8112     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8113     public static pbr::MessageDescriptor Descriptor {
8114       get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[5]; }
8115     }
8116 
8117     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8118     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8119     pbr::MessageDescriptor pb::IMessage.Descriptor {
8120       get { return Descriptor; }
8121     }
8122 
8123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8124     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneStringProto2()8125     public OneStringProto2() {
8126       OnConstruction();
8127     }
8128 
OnConstruction()8129     partial void OnConstruction();
8130 
8131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8132     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneStringProto2(OneStringProto2 other)8133     public OneStringProto2(OneStringProto2 other) : this() {
8134       data_ = other.data_;
8135       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8136     }
8137 
8138     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8139     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()8140     public OneStringProto2 Clone() {
8141       return new OneStringProto2(this);
8142     }
8143 
8144     /// <summary>Field number for the "data" field.</summary>
8145     public const int DataFieldNumber = 1;
8146     private readonly static string DataDefaultValue = "";
8147 
8148     private string data_;
8149     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8150     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8151     public string Data {
8152       get { return data_ ?? DataDefaultValue; }
8153       set {
8154         data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
8155       }
8156     }
8157     /// <summary>Gets whether the "data" field is set</summary>
8158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8159     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8160     public bool HasData {
8161       get { return data_ != null; }
8162     }
8163     /// <summary>Clears the value of the "data" field</summary>
8164     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8165     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearData()8166     public void ClearData() {
8167       data_ = null;
8168     }
8169 
8170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8171     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)8172     public override bool Equals(object other) {
8173       return Equals(other as OneStringProto2);
8174     }
8175 
8176     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8177     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OneStringProto2 other)8178     public bool Equals(OneStringProto2 other) {
8179       if (ReferenceEquals(other, null)) {
8180         return false;
8181       }
8182       if (ReferenceEquals(other, this)) {
8183         return true;
8184       }
8185       if (Data != other.Data) return false;
8186       return Equals(_unknownFields, other._unknownFields);
8187     }
8188 
8189     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8190     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()8191     public override int GetHashCode() {
8192       int hash = 1;
8193       if (HasData) hash ^= Data.GetHashCode();
8194       if (_unknownFields != null) {
8195         hash ^= _unknownFields.GetHashCode();
8196       }
8197       return hash;
8198     }
8199 
8200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8202     public override string ToString() {
8203       return pb::JsonFormatter.ToDiagnosticString(this);
8204     }
8205 
8206     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8207     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8208     public void WriteTo(pb::CodedOutputStream output) {
8209     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8210       output.WriteRawMessage(this);
8211     #else
8212       if (HasData) {
8213         output.WriteRawTag(10);
8214         output.WriteString(Data);
8215       }
8216       if (_unknownFields != null) {
8217         _unknownFields.WriteTo(output);
8218       }
8219     #endif
8220     }
8221 
8222     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8223     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8224     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8225     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8226       if (HasData) {
8227         output.WriteRawTag(10);
8228         output.WriteString(Data);
8229       }
8230       if (_unknownFields != null) {
8231         _unknownFields.WriteTo(ref output);
8232       }
8233     }
8234     #endif
8235 
8236     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8237     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()8238     public int CalculateSize() {
8239       int size = 0;
8240       if (HasData) {
8241         size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
8242       }
8243       if (_unknownFields != null) {
8244         size += _unknownFields.CalculateSize();
8245       }
8246       return size;
8247     }
8248 
8249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8250     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OneStringProto2 other)8251     public void MergeFrom(OneStringProto2 other) {
8252       if (other == null) {
8253         return;
8254       }
8255       if (other.HasData) {
8256         Data = other.Data;
8257       }
8258       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8259     }
8260 
8261     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8262     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)8263     public void MergeFrom(pb::CodedInputStream input) {
8264     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8265       input.ReadRawMessage(this);
8266     #else
8267       uint tag;
8268       while ((tag = input.ReadTag()) != 0) {
8269         switch(tag) {
8270           default:
8271             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8272             break;
8273           case 10: {
8274             Data = input.ReadString();
8275             break;
8276           }
8277         }
8278       }
8279     #endif
8280     }
8281 
8282     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8283     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8284     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8285     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8286       uint tag;
8287       while ((tag = input.ReadTag()) != 0) {
8288         switch(tag) {
8289           default:
8290             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8291             break;
8292           case 10: {
8293             Data = input.ReadString();
8294             break;
8295           }
8296         }
8297       }
8298     }
8299     #endif
8300 
8301   }
8302 
8303   #endregion
8304 
8305 }
8306 
8307 #endregion Designer generated code
8308